/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; overflow-x: hidden; }

/* ── Navigation ── */
#nav {
  background: rgba(253, 252, 248, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(16, 185, 129, 0.08);
  transition: box-shadow 0.3s ease;
}
#nav.scrolled {
  box-shadow: 0 4px 30px rgba(6, 78, 59, 0.08);
}

/* ── Menu Tabs ── */
.menu-tab {
  background: transparent;
  color: #065F46;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}
.menu-tab:hover {
  background: #ECFDF5;
  border-color: #A7F3D0;
}
.menu-tab.active {
  background: #059669;
  color: #fff;
  border-color: #059669;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

/* ── Hero Animations ── */
.hero-anim {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}
.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.25s; }
.hero-anim:nth-child(3) { animation-delay: 0.4s; }
.hero-anim:nth-child(4) { animation-delay: 0.55s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-float-1 { animation: float1 6s ease-in-out infinite; }
.hero-float-2 { animation: float2 5s ease-in-out infinite; }
.hero-float-3 { animation: float3 7s ease-in-out infinite; }
.hero-float-4 { animation: float4 5.5s ease-in-out infinite; }

@keyframes float1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-14px) rotate(0.5deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-10px) scale(1.02); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-12px) rotate(-1deg); }
}
@keyframes float4 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-anim { opacity: 1; animation: none; }
  .hero-float-1, .hero-float-2, .hero-float-3, .hero-float-4 { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Mobile Menu ── */
.mobile-link {
  display: block;
  transition: color 0.2s ease;
}
.mobile-link:hover { color: #059669; }

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FDFCF8; }
::-webkit-scrollbar-thumb { background: #A7F3D0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #6EE7B7; }
