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

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

  body {
    margin: 0;
    background-color: #0a1628;
  }

  ::selection {
    background-color: rgba(168, 230, 207, 0.2);
    color: #a8e6cf;
  }

  /* Scroll reveal base — content always visible, JS adds animated state */
  .reveal {
    will-change: transform, opacity;
  }

  @media (prefers-reduced-motion: no-preference) {
    .reveal.is-visible {
      animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .reveal.is-visible {
      animation: none;
    }
  }

  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Header scroll state */
  #header.scrolled {
    background-color: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(168, 230, 207, 0.06);
  }

  /* Menu item hover */
  li.group:hover span:first-child {
    color: #a8e6cf;
  }

  li.group:hover .text-mint-400\/60 {
    color: rgba(168, 230, 207, 0.4);
  }

  /* Mobile menu transitions */
  #mobile-menu.open {
    opacity: 1;
    pointer-events: all;
  }

  /* Menu toggle animation */
  #mobile-menu.open .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  #mobile-menu.open .menu-line:nth-child(2) {
    opacity: 0;
  }
  #mobile-menu.open .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.25rem;
  }

  /* Focus styles */
  input:focus, textarea:focus, button:focus {
    outline: none;
  }

  input:focus, textarea:focus {
    border-bottom-color: #a8e6cf !important;
  }

  /* Subtle image hover */
  .reveal img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .reveal:hover img {
    transform: scale(1.02);
  }

  /* Staggered reveal delays */
  .reveal:nth-child(2) { animation-delay: 0.1s; }
  .reveal:nth-child(3) { animation-delay: 0.2s; }
  .reveal:nth-child(4) { animation-delay: 0.3s; }
