  /* Base styles & custom properties */
  :root {
    --emerald-50: #f0f7f4;
    --emerald-900: #0e2d26;
    --cream-50: #fefdf8;
    --cream-100: #fdf9ed;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    overflow-x: hidden;
  }

  /* Scroll reveal animations — progressive enhancement */
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                  transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

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

    /* Hidden state applied by JS for progressive enhancement */
    .reveal-hidden {
      opacity: 0;
      transform: translateY(30px);
    }
  }

  /* Fallback: ensure content is always visible if JS is disabled */
  .reveal {
    opacity: 1;
    transform: translateY(0);
  }

  /* Navbar glass effect */
  #navbar.scrolled {
    background: rgba(14, 45, 38, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  }

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

  ::-webkit-scrollbar-track {
    background: var(--emerald-950);
  }

  ::-webkit-scrollbar-thumb {
    background: var(--emerald-700);
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: var(--emerald-600);
  }

  /* Selection color */
  ::selection {
    background: rgba(45, 125, 106, 0.3);
    color: var(--cream-50);
  }

  /* Image hover effects */
  .group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
  }

  /* Smooth image loading */
  img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }

  /* Mobile menu animation */
  #mobile-menu {
    animation: slideDown 0.3s ease-out;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Button focus styles */
  a:focus-visible,
  button:focus-visible {
    outline: 2px solid rgba(253, 249, 237, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
  }

  /* Print styles */
  @media print {
    #navbar,
    .animate-bounce,
    #mobile-menu-btn {
      display: none !important;
    }

    body {
      color: #000;
      background: #fff;
    }

    a {
      color: #000;
    }
  }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }

    html {
      scroll-behavior: auto;
    }

    .animate-bounce {
      animation: none;
    }
  }
