  *, *::before, *::after { box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    overflow-x: hidden;
  }

  /* HERO */
  .hero-bg {
    position: absolute;
    inset: 0;
  }

  .hero-overlay {
    background: linear-gradient(135deg, rgba(26, 16, 48, 0.82) 0%, rgba(91, 58, 140, 0.70) 50%, rgba(26, 16, 48, 0.78) 100%);
  }

  /* PARTICLES */
  @keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
  }
  @keyframes float-delayed {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-25px, 25px) scale(1.08); }
    66% { transform: translate(15px, -15px) scale(0.92); }
  }
  @keyframes float-slow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
  }
  .particle { animation: float 8s ease-in-out infinite; }
  .animate-float-delayed { animation: float-delayed 10s ease-in-out infinite; }
  .animate-float-slow { animation: float-slow 12s ease-in-out infinite; }

  /* SCROLL INDICATOR */
  .scroll-indicator { animation: bounceDown 2s ease-in-out infinite; }
  @keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
  }

  /* NAV */
  #nav {
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
  }
  #nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(91, 58, 140, 0.08);
  }
  #nav.scrolled .nav-link { color: #4A2E78; }
  #nav.scrolled .font-serif { color: #3A2360; }

  .nav-link {
    position: relative;
  }
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F5A623;
    transition: width 0.3s ease;
  }
  .nav-link:hover::after { width: 100%; }

  /* MOBILE MENU */
  #mobileMenu.open { opacity: 1; pointer-events: all; }
  .menu-line { transition: all 0.3s ease; }
  #menuBtn.active .menu-line:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
  #menuBtn.active .menu-line:nth-child(2) { opacity: 0; }
  #menuBtn.active .menu-line:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); width: 20px; }

  /* SERVICE CARDS */
  .service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .service-card.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* GALLERY */
  .gallery-item {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .gallery-item.visible {
    opacity: 1;
    transform: scale(1);
  }

  /* FADE-IN SECTIONS */
  .fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* MOBILE LINKS */
  .mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  #mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
  }
  #mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
  #mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
  #mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
  #mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
  #mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

  /* HERO ANIMATIONS */
  .hero-badge {
    opacity: 0;
    animation: heroFadeUp 0.8s ease forwards 0.2s;
  }
  .hero-badge { animation: heroFadeUp 0.8s ease forwards 0.2s; }
  @keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  h1 {
    opacity: 0;
    animation: heroFadeUp 0.8s ease forwards 0.4s;
  }
  h1 { animation: heroFadeUp 0.8s ease forwards 0.4s; }
  section > .max-w-7xl > div > div:first-child > p,
  section > .max-w-7xl > div > div:first-child > h2 {
    opacity: 0;
    animation: heroFadeUp 0.8s ease forwards;
  }
  /* Override with more specific selectors */
  .hero-section-content > * {
    opacity: 0;
    animation: heroFadeUp 0.8s ease forwards;
  }
  .hero-section-content > *:nth-child(1) { animation-delay: 0.2s; }
  .hero-section-content > *:nth-child(2) { animation-delay: 0.4s; }
  .hero-section-content > *:nth-child(3) { animation-delay: 0.6s; }
  .hero-section-content > *:nth-child(4) { animation-delay: 0.8s; }

  /* FORM */
  input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
  }

  /* SMOOTH SCROLL OFFSET */
  section[id] {
    scroll-margin-top: 80px;
  }

  /* RESPONSIVE */
  @media (max-width: 768px) {
    .font-serif.text-4xl { font-size: 2.25rem; }
    .font-serif.text-5xl { font-size: 2.5rem; }
  }
