  /* Custom styles that extend Tailwind */
  :root {
    scroll-behavior: smooth;
  }

  @media (prefers-reduced-motion: no-preference) {
    html {
      scroll-behavior: smooth;
    }
  }

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

  /* Only apply hidden state when JS is available and motion preferred */
  @media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
      opacity: 1;
      transform: translateY(0);
    }
    .scroll-reveal.reveal-hidden {
      opacity: 0;
      transform: translateY(24px);
    }
  }

  /* Nav active state */
  .nav-link.active {
    color: #f0bc54;
    background: rgba(139, 36, 134, 0.2);
  }

  /* Mobile nav active */
  .mobile-nav-link.active {
    color: #f0bc54;
    background: rgba(139, 36, 134, 0.2);
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #0b0b12;
  }
  ::-webkit-scrollbar-thumb {
    background: #5e175b;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #8b2486;
  }

  /* Selection color */
  ::selection {
    background: rgba(184, 84, 168, 0.4);
    color: #f9f0fa;
  }

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

  /* Input autofill */
  input:-webkit-autofill,
  textarea:-webkit-autofill,
  select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1c1c27 inset !important;
    -webkit-text-fill-color: #ffffff !important;
  }
