/* ─── Custom animations ─── */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes float-medium {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}
@keyframes float-fast {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(3deg); }
}

.animate-float-slow { animation: float-slow 4s ease-in-out infinite; }
.animate-float-medium { animation: float-medium 3s ease-in-out infinite; }
.animate-float-fast { animation: float-fast 2.5s ease-in-out infinite; }

/* ─── Scroll reveal ─── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.5s; }

/* ─── Nav scroll state ─── */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 1px 20px rgba(91, 44, 111, 0.08) !important;
}
.nav-scrolled .nav-link { color: #5B2C6F !important; }
.nav-scrolled .nav-link:hover { background: #E8DDE8 !important; color: #3D1D4A !important; }
.nav-scrolled .font-display { color: #3D1D4A !important; }

/* ─── Smooth scroll ─── */
html { scroll-behavior: smooth; }

/* ─── Mobile menu transitions ─── */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
#mobile-menu.open {
  max-height: 400px;
}

/* ─── Selection color ─── */
::selection {
  background: #F59E0B;
  color: #451A03;
}

/* ─── Focus visible ─── */
:focus-visible {
  outline: 2px solid #F59E0B;
  outline-offset: 2px;
}

/* ─── Custom scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F5F0FA; }
::-webkit-scrollbar-thumb { background: #D4BFD4; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #B894B8; }
