/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ─── Navbar shrink on scroll ─── */
header.scrolled nav {
  box-shadow: 0 1px 20px rgba(27, 94, 32, 0.08);
}

/* ─── Smooth focus ─── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #1B5E20;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── Custom scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #faf8f4; }
::-webkit-scrollbar-thumb { background: #b1d9b1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #7dbf7d; }

/* ─── Selection ─── */
::selection { background: #d6ecd6; color: #0f3810; }

/* ─── Floating card animation ─── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}
.reveal-delay-1 { animation: float 4s ease-in-out infinite; }
.reveal-delay-1 { animation-delay: 0.5s; }
.reveal-delay-2 { animation: float 4s ease-in-out infinite; animation-delay: 1s; }
