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

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

/* Scroll reveal — progressive enhancement, hidden by default for JS-enhanced state */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stat card floating animation */
@media (prefers-reduced-motion: no-preference) {
  .stat-card {
    animation: float 4s ease-in-out infinite;
  }
  .stat-card:nth-child(2) {
    animation-delay: -1.3s;
  }
  .stat-card:nth-child(3) {
    animation-delay: -2.6s;
  }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
}

/* Nav active state */
.nav-link-active {
  color: rgb(123, 45, 142);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: rgb(245, 240, 247);
}
::-webkit-scrollbar-thumb {
  background: rgb(180, 142, 186);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgb(123, 45, 142);
}
