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

body {
  overflow-x: hidden;
}

/* ── Stat Cards Float Animation ── */
.stat-card {
  animation: float 4s ease-in-out infinite;
}

.stat-card:nth-child(2) {
  animation-delay: -1s;
}

.stat-card:nth-child(3) {
  animation-delay: -2s;
}

.stat-card:nth-child(4) {
  animation-delay: -3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ── Scroll Reveal ── */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* ── Service Card Hover ── */
.service-card {
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-4px);
}

/* ── Header Scroll State ── */
header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(26, 49, 114, 0.08);
}

/* ── Mobile Menu ── */
#mobile-menu a {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(26, 49, 114, 0.06);
}

#mobile-menu a:last-child {
  border-bottom: none;
}

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

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

::-webkit-scrollbar-thumb {
  background: #a9dfc8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #78c9ab;
}

/* ── Form Focus States ── */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(82, 179, 140, 0.15);
}

/* ── Selection ── */
::selection {
  background: #d0eedf;
  color: #1a3172;
}
