  /* ===== BASE & RESET ===== */
  *, *::before, *::after {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body {
    overflow-x: hidden;
  }

  ::selection {
    background: rgba(94, 234, 212, 0.3);
    color: #f0f4f8;
  }

  /* ===== NAVBAR ===== */
  #navbar {
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
  }

  #navbar.scrolled {
    background: rgba(6, 14, 26, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(94, 234, 212, 0.08);
  }

  .nav-link {
    position: relative;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #5eead4;
    transition: width 0.3s ease;
  }

  .nav-link:hover::after {
    width: 100%;
  }

  /* ===== MOBILE MENU ===== */
  .menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  #menuToggle.active .menu-line:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg);
  }

  #menuToggle.active .menu-line:nth-child(2) {
    opacity: 0;
  }

  #menuToggle.active .menu-line:nth-child(3) {
    transform: translateY(-3.5px) rotate(-45deg);
    width: 1.25rem;
  }

  .mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  /* ===== HERO STAT CARDS ===== */
  .stat-card {
    opacity: 0;
    transform: translateY(20px);
    animation: floatIn 0.6s ease forwards;
  }

  .stat-card[data-delay="0"] { animation-delay: 0.3s; }
  .stat-card[data-delay="150"] { animation-delay: 0.6s; }
  .stat-card[data-delay="300"] { animation-delay: 0.9s; }

  @keyframes floatIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* ===== MARQUEE ===== */
  @keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  .animate-marquee {
    animation: marquee 25s linear infinite;
  }

  /* ===== SERVICE CARDS ===== */
  .service-card {
    opacity: 0;
    transform: translateY(30px);
  }

  .service-card.revealed {
    animation: revealUp 0.6s ease forwards;
  }

  .service-card:nth-child(1).revealed { animation-delay: 0.05s; }
  .service-card:nth-child(2).revealed { animation-delay: 0.1s; }
  .service-card:nth-child(3).revealed { animation-delay: 0.15s; }
  .service-card:nth-child(4).revealed { animation-delay: 0.2s; }
  .service-card:nth-child(5).revealed { animation-delay: 0.25s; }
  .service-card:nth-child(6).revealed { animation-delay: 0.3s; }

  @keyframes revealUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* ===== GALLERY ===== */
  .gallery-item {
    opacity: 0;
    transform: scale(0.95);
  }

  .gallery-item.revealed {
    animation: galleryIn 0.6s ease forwards;
  }

  @keyframes galleryIn {
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  /* ===== TESTIMONIALS ===== */
  .testimonial-card {
    opacity: 0;
    transform: translateY(30px);
  }

  .testimonial-card.revealed {
    animation: revealUp 0.6s ease forwards;
  }

  .testimonial-card:nth-child(1).revealed { animation-delay: 0.1s; }
  .testimonial-card:nth-child(2).revealed { animation-delay: 0.2s; }
  .testimonial-card:nth-child(3).revealed { animation-delay: 0.3s; }

  /* ===== SCROLL REVEAL (below-fold only) ===== */
  .reveal-section {
    will-change: auto;
  }

  /* Respect reduced motion preference */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }

    html {
      scroll-behavior: auto;
    }

    .animate-marquee {
      animation: none;
    }

    .stat-card {
      opacity: 1;
      transform: none;
    }
  }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 768px) {
    .font-serif {
      line-height: 1.15;
    }
  }
