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

/* ── Navbar ── */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #10b981;
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

#navbar.scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

.nav-text-color { color: #065f46; }

/* ── Scroll reveal ── */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  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);
  }
}

/* ── Mobile menu ── */
.mobile-link { transition: background 0.15s ease; }

/* ── Button ripple on tap ── */
button, a { -webkit-tap-highlight-color: transparent; }

/* ── Selection ── */
::selection { background: #a7f3d0; color: #064e3b; }

/* ── Focus visible ── */
:focus-visible { outline: 2px solid #10b981; outline-offset: 2px; }

/* ── Smooth image loading ── */
img { display: block; max-width: 100%; }

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #ecfdf5; }
::-webkit-scrollbar-thumb { background: #059669; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #047857; }
