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

/* ─── Navbar scroll state ─── */
#nav { background: transparent; }
#nav.scrolled { background: rgba(253, 252, 247, 0.92); backdrop-blur-md; box-shadow: 0 1px 20px rgba(34, 54, 30, 0.08); }

/* ─── Blobs ─── */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: blobFloat 20s ease-in-out infinite;
}
.blob-1 { width: 500px; height: 500px; background: #c6dbbd; top: -100px; right: -100px; animation-delay: 0s; }
.blob-2 { width: 400px; height: 400px; background: #e3eddd; bottom: -50px; left: -100px; animation-delay: -7s; }
.blob-3 { width: 250px; height: 250px; background: #f5f0dc; top: 40%; left: 45%; animation-delay: -14s; }

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ─── Floating cards ─── */
.float-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-blur-md;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 8px 32px rgba(34, 54, 30, 0.12);
  animation: floatY 6s ease-in-out infinite;
}
.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: -1.5s; }
.card-3 { animation-delay: -3s; }
.card-4 { animation-delay: -4.5s; }

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

/* ─── Category cards ─── */
.cat-card { cursor: default; }

/* ─── Scroll reveal (below fold only) ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ─── Mobile menu ─── */
#mobileMenu { animation: slideDown 0.25s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #faf8ef; }
::-webkit-scrollbar-thumb { background: #c6dbbd; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #9cc08e; }
