/* Base & Utilities */
html {
  scroll-behavior: smooth;
}

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

/* Scroll animation base — visible by default for progressive enhancement */
.scroll-animate {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-animate {
    opacity: 0;
    transform: translateY(24px);
  }
  .scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Nav active state */
nav.scrolled {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1a1a2e;
}
::-webkit-scrollbar-thumb {
  background: #3a3a62;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FF6B4A;
}

/* Selection */
::selection {
  background: rgba(255, 107, 74, 0.3);
  color: #fff;
}
