  /* Base & Reset */
  *, *::before, *::after {
    box-sizing: border-box;
  }

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

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

  /* Selection */
  ::selection {
    background: #b0e3c7;
    color: #0d1b2a;
  }

  /* Scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #f2faf5;
  }
  ::-webkit-scrollbar-thumb {
    background: #b0e3c7;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #7dd1a7;
  }

  /* Navbar scroll state */
  #navbar.scrolled {
    background: rgba(242, 250, 245, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(13, 27, 42, 0.06);
  }

  /* Nav links underline animation */
  .nav-link {
    position: relative;
  }
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #349a6c;
    transition: width 0.3s ease;
  }
  .nav-link:hover::after {
    width: 100%;
  }

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

  .mobile-link {
    position: relative;
  }
  .mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #349a6c;
    transition: width 0.3s ease;
  }
  .mobile-link:hover::after {
    width: 80%;
  }

  /* Scroll indicator line animation */
  @keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
  }
  .animate-scroll-line {
    animation: scrollLine 1.8s ease-in-out infinite;
  }

  /* Scroll reveal (progressive enhancement) */
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
      opacity: 1;
      transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
  }

  /* For reduced motion: ensure everything is visible */
  @media (prefers-reduced-motion: reduce) {
    .reveal {
      opacity: 1;
      transform: none;
    }
    html {
      scroll-behavior: auto;
    }
    .animate-scroll-line {
      animation: none;
    }
  }

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

  /* Smooth image loading */
  img {
    background-color: #d5f0e0;
  }
