/* ── Base & Utilities ── */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

::selection { background: #059669; color: #FDF8F0; }

/* ── Scroll Reveal ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    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);
  }
  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }
  .reveal:nth-child(5) { transition-delay: 0.35s; }
  .reveal:nth-child(6) { transition-delay: 0.4s; }
}

/* ── Stat Cards Float ── */
@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(0px); }
  50% { transform: translateY(-8px); }
}

/* ── Navbar Scroll State ── */
#site-header.scrolled {
  background: rgba(253, 248, 240, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(6, 95, 70, 0.08), 0 4px 20px rgba(6, 95, 70, 0.06);
}

/* ── Mobile Link Active ── */
.mobile-link.active {
  background: rgba(5, 150, 105, 0.08);
  color: #059669 !important;
}

/* ── Focus Styles ── */
input:focus, select:focus, textarea:focus {
  border-color: #34D399 !important;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2) !important;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FDF8F0; }
::-webkit-scrollbar-thumb { background: #065F46; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #047857; }
</style>
