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

/* ── Nav scroll state ── */
#site-header {
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
#site-header.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(123,45,142,0.08);
}

/* ── Nav links ── */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #7B2D8E, #E8A020);
  border-radius: 2px;
  transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }

/* ── Mobile menu ── */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0dff5;
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-link:hover { color: #7B2D8E; padding-left: 0.5rem; }

/* ── Floating animations ── */
@keyframes float-fast {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes float-medium {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}
.animate-float-fast { animation: float-fast 3s ease-in-out infinite; }
.animate-float-medium { animation: float-medium 4.5s ease-in-out infinite; }
.animate-float-slow { animation: float-slow 6s ease-in-out infinite; }

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

/* ── Stagger children ── */
.reveal-grid > * { transition-delay: calc(var(--i, 0) * 0.1s); }

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F9F0FB; }
::-webkit-scrollbar-thumb { background: #D49BDA; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #B86FC0; }

/* ── Focus visible ── */
:focus-visible { outline: 2px solid #7B2D8E; outline-offset: 2px; border-radius: 4px; }

/* ── Form styles ── */
input::placeholder, textarea::placeholder { color: #d4b8e0; }
</style>
