  /* Base & utilities */
  html {
    scroll-behavior: smooth;
  }

  body {
    overflow-x: hidden;
  }

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

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

    .scroll-reveal.revealed {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Navbar transition */
  #navbar.scrolled {
    background: rgba(12, 23, 51, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  }

  /* Mobile menu animation */
  #mobileMenu {
    animation: slideDown 0.25s ease;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      max-height: 0;
    }
    to {
      opacity: 1;
      max-height: 400px;
    }
  }

  #mobileMenu.open {
    animation: slideDown 0.25s ease;
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: #f0fdf9;
  }

  ::-webkit-scrollbar-thumb {
    background: #99f6e0;
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #5eead4;
  }

  /* Selection color */
  ::selection {
    background: #99f6e0;
    color: #042f2e;
  }

  /* Focus visible */
  :focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
  }
