/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

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

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

/* ── Nav scroll state ── */
#nav.scrolled {
  background: rgba(253, 248, 244, 0.9);
  backdrop-blur-xl;
  box-shadow: 0 1px 20px rgba(123, 45, 139, 0.08);
}

/* ── Mobile menu ── */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(123, 45, 139, 0.08);
  transition: color 0.2s;
}
.mobile-link:last-child { border-bottom: none; }
.mobile-link:hover { color: #7B2D8B; }

/* ── Selection ── */
::selection {
  background: rgba(123, 45, 139, 0.15);
  color: #571e62;
}

/* ── Smooth reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FDF8F4; }
::-webkit-scrollbar-thumb { background: #e497dd; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #d16ec8; }
