*, *::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.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
#nav.scrolled {
  background: rgba(250, 245, 255, 0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(124, 58, 237, 0.08);
}

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

.mobile-link { display: block; }

/* ── HERO ── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes float-dot {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
  50% { transform: translateY(-16px) scale(1.2); opacity: 1; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-float { animation: float 4s ease-in-out infinite; }
.animate-float-dot { animation: float-dot 3s ease-in-out infinite; }
.animate-fade-up { animation: fade-up 0.7s ease both; }

/* ── MENU CARDS ── */
.menu-card {
  will-change: transform;
}

/* ── TESTIMONIAL CARDS ── */
.testimonial-card {
  will-change: transform;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── UNDERLINE ANIMATION ── */
.underline-anim {
  position: relative;
  display: inline-block;
}
.underline-anim::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #7c3aed, #f59e0b);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.underline-anim:hover::after {
  transform: scaleX(1);
}

/* ── MOBILE MENU ANIM ── */
#mobile-menu {
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── SUBTLE PATTERN OVERLAY ── */
.section-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(124, 58, 237, 0.04) 1px, transparent 0);
  background-size: 24px 24px;
}

/* ── CUSTOM SCROLLBAR ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #faf5ff; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #c4b5fd, #fcd34d); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #a78bfa, #fbbf24); }

/* ── FOCUS VISIBLE ── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── RESPONSIVE TWEAKS ── */
@media (max-width: 768px) {
  .animate-float { animation-duration: 5s; }
}
