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

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
  }

  body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* Scroll animation base — progressive enhancement via JS */
  .scroll-animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  @media (prefers-reduced-motion: no-preference) {
    .scroll-animate {
      opacity: 0;
      transform: translateY(24px);
    }

    .scroll-animate.is-visible {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Stagger children */
  .stagger-children .scroll-animate:nth-child(1) { transition-delay: 0.05s; }
  .stagger-children .scroll-animate:nth-child(2) { transition-delay: 0.1s; }
  .stagger-children .scroll-animate:nth-child(3) { transition-delay: 0.15s; }
  .stagger-children .scroll-animate:nth-child(4) { transition-delay: 0.2s; }
  .stagger-children .scroll-animate:nth-child(5) { transition-delay: 0.25s; }
  .stagger-children .scroll-animate:nth-child(6) { transition-delay: 0.3s; }

  /* Navbar scroll state */
  nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.04);
  }

  nav.scrolled a:not([class*="bg-"]) {
    color: #334155;
  }

  /* Decorative blobs */
  @keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.02); }
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #f0fdfa;
  }
  ::-webkit-scrollbar-thumb {
    background: #99f6e4;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #5eead4;
  }

  /* Selection */
  ::selection {
    background: #99f6e4;
    color: #134e4a;
  }
