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

/* ─── NAV ─── */
#nav {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
#nav.scrolled {
  background: rgba(253, 248, 240, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(5, 158, 105, 0.08);
}
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #059669;
  transition: width 0.3s ease;
  border-radius: 1px;
}
.nav-link:hover::after { width: 100%; }

/* ─── FLOATING CARDS ─── */
.floating-card {
  animation: float 6s ease-in-out infinite;
}
.floating-card:nth-child(1) { animation-delay: 0s; }
.floating-card:nth-child(2) { animation-delay: -2s; }
.floating-card:nth-child(3) { animation-delay: -4s; }

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

/* ─── SCROLL REVEAL (below fold only) ─── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 0;
  transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: none;
  }
}

/* ─── MOBILE MENU ─── */
.mobile-link {
  display: block;
}

/* ─── GEOMETRIC ACCENT SHAPES ─── */
.geo-diamond {
  width: 24px;
  height: 24px;
  background: #059669;
  transform: rotate(45deg);
  border-radius: 4px;
  opacity: 0.3;
}

/* ─── BUTTON HOVER GLOW ─── */
a:hover { outline: none; }

/* ─── CUSTOM SCROLLBAR ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FDF8F0; }
::-webkit-scrollbar-thumb { background: #a7f3d0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #34d399; }

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