  /* ===== CUSTOM STYLES ===== */
  :root {
    --terra-500: #C0603A;
    --terra-600: #a84e2e;
    --sand-100: #fdf6eb;
    --sand-50: #fefcf8;
  }

  * {
    scroll-behavior: smooth;
  }

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

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

  /* Navbar text color based on scroll state */
  #navbar.scrolled .navbar-text {
    color: #1c1917;
  }

  #navbar.scrolled .mobile-link {
    color: #1c1917;
  }

  /* Mobile link base color */
  .mobile-link {
    color: #1c1917;
  }

  /* Reveal animations (progressive enhancement) */
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    /* Stagger children */
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
  }

  /* Back to top button */
  #back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

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

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

  ::-webkit-scrollbar-thumb {
    background: #e4a84e;
    border-radius: 9999px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #C0603A;
  }

  /* Focus visible styles */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible {
    outline: 2px solid #C0603A;
    outline-offset: 2px;
    border-radius: 4px;
  }

  /* Selection color */
  ::selection {
    background: #f5c4b0;
    color: #5f2c21;
  }
