:root {
  --primary: #5a4af5;
  --primary-light: #7b6df9;
  --secondary: #ff4d7d;
  --secondary-light: #ff7a9d;
  --tertiary: #36D1DC;
  --dark: #1e1b4b;
  --light: #f5f7ff;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  --gradient-tertiary: linear-gradient(135deg, var(--dark) 0%, #0f0c29 100%);
  --testimonial-bg: linear-gradient(135deg, #4a36dc 0%, #2b1e9a 100%);
  --navbar-height: 70px;
  --mobile-vh: 100vh;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-height) + 20px);
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  overflow-x: hidden;
  line-height: 1.6;
  background-color: #f8f9fa;
  padding-top: var(--navbar-height);
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

/* Particle Canvas */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Hero Section */
.section-bg {
  background: var(--gradient-primary);
  color: white;
  padding: 100px 0;
  height: calc(var(--mobile-vh) - var(--navbar-height));
  min-height: 500px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0% 0%, 100% 0%, 100% 97%, 0% 100%);
}

.section-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,261.3C672,256,768,224,864,218.7C960,213,1056,235,1152,234.7C1248,235,1344,213,1392,202.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  z-index: -1;
}

.section-bg h1, .section-bg h2, .section-bg h3 {
  color: white;
}

.color {
  color: var(--secondary);
}

.btn-custom {
  background: var(--gradient-secondary);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 5px 15px rgba(255, 77, 125, 0.3);
}

.btn-custom:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(255, 77, 125, 0.4);
}

.img-custom {
  width: 100%;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  transform: perspective(1000px) rotateY(10deg);
  will-change: transform;
}

.img-custom:hover {
  transform: perspective(1000px) rotateY(0deg) translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.section-padding {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.stat-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(90, 74, 245, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
  animation: float 6s ease-in-out infinite;
}

.stat-icon:hover {
  transform: scale(1.1);
  background-color: rgba(90, 74, 245, 0.2);
}

.stat-icon i {
  color: var(--primary);
  font-size: 32px;
}

.text-muted-custom {
  color: var(--gray);
}

.section-services {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #eef2ff 100%);
  position: relative;
  overflow: hidden;
}

.service-card {
  background-color: #fff;
  border: none;
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--shadow);
  min-height: 300px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
  transform: translateY(0);
  will-change: transform;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-primary);
  transform: translateY(100%);
  transition: var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-10px);
}

.service-card:hover::after {
  transform: translateY(0);
}

.service-card i {
  color: var(--primary);
  font-size: 40px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover i {
  color: var(--secondary);
}

.list-unstyled li {
  margin-bottom: 10px;
  position: relative;
}

.section-about {
  padding: 100px 0;
  background: white;
}

.portfolio-card {
  background-color: #fff;
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  position: relative;
  will-change: transform;
}

.portfolio-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
  will-change: transform;
}

.portfolio-card-content {
  padding: 25px;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.hover-blue {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 30px;
  padding: 6px 15px;
  font-size: 14px;
  font-weight: 500;
  z-index: 2;
}

.portfolio-card:hover img {
  transform: scale(1.05);
}

.section-case {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #eef2ff 100%);
}

.case-study-card {
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  will-change: transform;
}

.case-study-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.case-study-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  will-change: transform;
}

.case-study-content {
  padding: 30px;
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 0;
  background: var(--testimonial-bg);
  position: relative;
  overflow: hidden;
}

.testimonials-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 50px;
}

.testimonial-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
  transition: all 0.5s ease;
}

.testimonial-item .star-rating {
  margin-bottom: 15px;
}

.testimonial-item .star-rating i {
  color: #ffd700;
  font-size: 18px;
}

.testimonial-item p {
  color: white;
  font-style: italic;
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  border: 2px solid white;
}

.author-info h5 {
  color: white;
  margin-bottom: 0;
  font-weight: 600;
  font-size: 1.2rem;
}

.author-info p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Testimonial Navigation */
.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.testimonial-nav:hover {
  background: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.testimonial-prev {
  left: 0;
}

.testimonial-next {
  right: 0;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dot.active {
  background: white;
  transform: scale(1.2);
}

.contact-section {
  padding: 100px 0;
  background: var(--gradient-tertiary);
  color: white;
  clip-path: polygon(0% 3%, 100% 0%, 100% 100%, 0% 100%);
  position: relative;
}

.contact-section h1, 
.contact-section h3, 
.contact-section h5 {
  color: white;
}

.contact-section .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

.form-section {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-control {
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 12px 15px;
  border-radius: 10px;
  transition: var(--transition);
}

.form-control:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.25rem rgba(90, 74, 245, 0.25);
  color: white;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  padding: 12px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(90, 74, 245, 0.3);
}

/* Image Hover Effects */
.img-hover-container {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.img-hover-container img {
  transition: transform 0.5s ease;
  will-change: transform;
}

.img-hover-container:hover img {
  transform: scale(1.05);
}

/* Animations */
.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 0.8s ease-out forwards;
}

@keyframes slideInLeft {
  to {
      opacity: 1;
      transform: translateX(0);
  }
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 0.8s ease-out forwards;
}

@keyframes slideInRight {
  to {
      opacity: 1;
      transform: translateX(0);
  }
}

.letter-spacing-reveal {
  opacity: 0;
  letter-spacing: -0.5em;
  animation: letterSpacingReveal 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes letterSpacingReveal {
  to {
      opacity: 1;
      letter-spacing: 0;
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  to {
      opacity: 1;
  }
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  animation: scaleIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleIn {
  to {
      opacity: 1;
      transform: scale(1);
  }
}

.bounce-in {
  opacity: 0;
  animation: bounceIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes bounceIn {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  80% { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}

.float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.rotate {
  animation: rotate 15s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.wave {
  animation: wave 3s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.blur-in {
  opacity: 0;
  filter: blur(10px);
  scale: 0.9;
  animation: blurIn 1s ease forwards;
}

@keyframes blurIn {
  to {
      opacity: 1;
      filter: blur(0);
      scale: 1;
  }
}

.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}
.delay-3 {
  animation-delay: 0.6s;
}

/* Navbar - FIXED */
.navbar {
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000; /* Increased z-index */
  transition: var(--transition);
  background: var(--dark); /* Solid color instead of transparent */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Added shadow for contrast */
  will-change: transform, background;
  height: var(--navbar-height);
}

.navbar-brand {
  font-weight: 700;
  font-size: 24px;
  color: white !important;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  margin: 0 15px;
  padding: 8px 0 !important;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--secondary);
  transition: var(--transition);
}

.nav-link:hover {
  color: white !important;
}

.nav-link:hover::after {
  width: 100%;
}

.navbar-toggler {
  border: none;
  outline: none;
  box-shadow: none;
  padding: 0.5rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 1.5em;
  height: 1.5em;
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}

.footer h5 {
  color: white;
  margin-bottom: 20px;
  font-size: 18px;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: white;
  text-decoration: underline;
}

.titleFooter{
  color: white;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  margin-right: 10px;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-5px);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 5px 15px rgba(90, 74, 245, 0.3);
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--secondary);
  transform: translateY(-5px);
}

/* Floating Bubbles - Generated by JS */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  animation: float 8s infinite ease-in-out;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}

/* Mobile optimization */
@media (max-width: 991px) {
  .section-bg {
      padding: 80px 0;
      height: auto;
      min-height: auto;
      clip-path: polygon(0% 0%, 100% 0%, 100% 98%, 0% 100%);
  }
  
  .section-padding, 
  .section-services, 
  .section-about, 
  .section-case, 
  .testimonials-section {
      padding: 70px 0;
  }
  
  .display-4 {
      font-size: 2.5rem;
  }
  
  .testimonials-container {
      padding: 0 30px;
  }
  
  .testimonial-nav {
      width: 40px;
      height: 40px;
      font-size: 1.2rem;
  }
  
  .hero-content {
      padding: 0 15px;
  }
  
  .section-padding, .section-services, 
  .section-about, .section-case {
      padding: 60px 0;
  }
  
  .mb-mobile-4 {
      margin-bottom: 1.5rem !important;
  }
  
  .service-card, .portfolio-card {
      min-height: auto;
  }
  
  .case-study-card img {
      height: 200px;
  }

  /* Improved mobile navbar */
  .navbar-collapse {
      background: var(--dark); /* Solid background */
      backdrop-filter: none; /* Remove blur */
      padding: 20px;
      margin-top: 10px;
      border-radius: 10px;
  }

  .nav-item {
      margin: 10px 0;
  }

  .nav-link {
      margin: 0;
      padding: 10px 0 !important;
  }
}

@media (max-width: 767px) {
  .section-bg {
      padding-top: 60px;
      padding-bottom: 60px;
      height: auto;
  }
  
  .contact-section {
      clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  }
  
  .display-4 {
      font-size: 2rem;
  }
  
  .testimonial-item {
      padding: 20px;
  }
  
  .testimonial-author img {
      width: 50px;
      height: 50px;
  }
  
  .testimonial-nav {
      transform: translateY(-50%);
      top: auto;
      bottom: -60px;
  }
  
  .testimonial-prev {
      left: 30%;
  }
  
  .testimonial-next {
      right: 30%;
  }
  
  .section-padding, .section-services, 
  .section-about, .section-case {
      padding: 50px 0;
  }
  
  .section-bg {
      padding: 70px 0;
  }
  
  .stat-icon {
      width: 60px;
      height: 60px;
  }
  
  .stat-icon i {
      font-size: 24px;
  }
  
  .img-custom {
      transform: perspective(1000px) rotateY(0deg);
  }
  
  .hero-content {
      padding: 0;
  }
  
  .mb-mobile-5 {
      margin-bottom: 3rem !important;
  }

  /* Case study cards */
  .case-study-card {
      flex-direction: column !important;
  }

  .case-study-card img {
      height: 200px;
      width: 100%;
  }

  /* Portfolio cards */
  .portfolio-card {
      margin-bottom: 30px;
  }

  /* Contact section */
  .contact-section .row > div {
      margin-bottom: 30px;
  }
}

@media (max-width: 575px) {
  .section-padding, .section-services, 
  .section-about, .section-case {
      padding: 40px 0;
  }
  
  .section-bg {
      padding: 50px 0;
      min-height: 400px;
  }
  
  .testimonials-section {
      padding: 50px 0;
  }
  
  .contact-section {
      padding: 60px 0;
  }
  
  .footer {
      padding: 40px 0 20px;
  }

  /* Hero section */
  .hero-content h1 {
      font-size: 2rem;
  }

  .hero-content p {
      font-size: 1rem;
  }

  /* Stats */
  .stat-icon {
      width: 50px;
      height: 50px;
  }

  .stat-icon i {
      font-size: 20px;
  }

  /* Testimonials */
  .testimonial-item p {
      font-size: 1rem;
  }

  .testimonial-author {
      flex-direction: column;
      text-align: center;
  }

  .testimonial-author img {
      margin-right: 0;
      margin-bottom: 10px;
  }

  /* Footer */
  .footer .col-lg-4,
  .footer .col-lg-3,
  .footer .col-lg-2 {
      margin-bottom: 30px;
  }
}

/* Mobile menu animation */
.navbar-collapse {
  transition: max-height 0.25s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
  max-height: 0;
}

.navbar-collapse.show {
  max-height: 1000px;
}

/* Performance optimizations */
.bubble {
  will-change: transform;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Prevents layout shift on mobile */
html {
  scroll-padding-top: 70px;
}
.footerhyper{
  color: rgba(255, 255, 255, 0.7) !important;
}
.navbar-collapse.show .nav-link {
  opacity: 1;
  transition-delay: 0.2s;
}
@media (min-width: 992px) {
  .navbar-collapse {
      max-height: none !important;
      overflow: visible !important;
      display: flex !important;
      transition: none !important;
  }
}