/* ============================================================
   MASE KICKS — ANIMATIONS
   ============================================================ */

/* ── Core Keyframes ────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ── Hero Shoe Animations ──────────────────────────────────── */
@keyframes shoeSlideLeft {
  0% {
    transform: translateX(-120px) rotate(-14deg);
    opacity: 0;
  }
  100% {
    transform: translateX(40px) rotate(-6deg);
    opacity: 1;
  }
}

@keyframes shoeSlideRight {
  0% {
    transform: translateX(120px) rotate(14deg) scaleX(-1);
    opacity: 0;
  }
  100% {
    transform: translateX(-40px) rotate(6deg) scaleX(-1);
    opacity: 1;
  }
}

@keyframes shoeFloat {
  0%, 100% { transform: translateX(40px) rotate(-6deg) translateY(0); }
  50%       { transform: translateX(40px) rotate(-6deg) translateY(-12px); }
}

@keyframes shoeFloatRight {
  0%, 100% { transform: translateX(-40px) rotate(6deg) scaleX(-1) translateY(0); }
  50%       { transform: translateX(-40px) rotate(6deg) scaleX(-1) translateY(-8px); }
}

/* After entrance, float gently */
.hero-shoe-left.loaded  { animation: shoeFloat 6s ease-in-out infinite; }
.hero-shoe-right.loaded { animation: shoeFloatRight 6s ease-in-out 0.8s infinite; }

/* ── Grid Background ─────────────────────────────────────── */
@keyframes gridMove {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 60px 60px, 60px 60px; }
}

/* ── Scroll Hint ─────────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-8px); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.6; scaleY: 1; }
  50%       { opacity: 1; transform: scaleY(1.15); }
}

/* ── Ticker ─────────────────────────────────────────────── */
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Pulse / Glow ─────────────────────────────────────── */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(63,202,206,0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(63,202,206,0.5), 0 0 80px rgba(63,202,206,0.15);
  }
}

@keyframes goldGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(63,202,206,0.4)); }
  50%       { filter: drop-shadow(0 0 24px rgba(63,202,206,0.8)); }
}

/* ── Shimmer (skeleton) ─────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ── Toast ───────────────────────────────────────────────── */
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(40px);
  }
}

/* ── Spin ────────────────────────────────────────────────── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Bounce ──────────────────────────────────────────────── */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  25%       { transform: translateY(-6px); }
  50%       { transform: translateY(-12px); }
  75%       { transform: translateY(-6px); }
}

/* ── Card hover lift ─────────────────────────────────────── */
@keyframes cardLift {
  to {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  }
}

/* ── Size button pop ─────────────────────────────────────── */
@keyframes sizePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.18) translateY(-4px); }
  70%  { transform: scale(0.96) translateY(0); }
  100% { transform: scale(1) translateY(-3px); }
}
.size-btn.popping { animation: sizePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* ── Number counter ──────────────────────────────────────── */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Nav slide in ─────────────────────────────────────────── */
@keyframes navSlideIn {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Particle dots ──────────────────────────────────────── */
.particle-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat var(--dur, 8s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(100%) translateX(var(--x, 0));
  }
  10% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% {
    opacity: 0;
    transform: translateY(-100vh) translateX(calc(var(--x, 0) + 30px));
  }
}

/* ── Scan line (hero) ─────────────────────────────────────── */
.hero-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(63,202,206,0.3), transparent);
  animation: scanLine 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scanLine {
  0%   { top: 0%; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ── Image zoom on card hover ─────────────────────────────── */
.card-image-wrap { overflow: hidden; }
.card-shoe-svg { transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* ── Stagger children ─────────────────────────────────────── */
.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.10s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.20s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.30s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.40s; }

/* ── Focus ring ───────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Cursor glow (optional) ───────────────────────────────── */
.cursor-glow {
  position: fixed;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63,202,206,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}
body:hover .cursor-glow { opacity: 1; }

/* ── Mobile menu animation ────────────────────────────────── */
@keyframes mobileMenuIn {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}
.nav-mobile-overlay.open {
  animation: mobileMenuIn 0.3s ease forwards;
}

/* ── Smooth section transitions ──────────────────────────── */
.transition-section {
  position: relative;
}
.transition-section::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--black));
  pointer-events: none;
}

/* ── Product card entrance ────────────────────────────────── */
.product-card {
  animation: scaleIn 0.4s ease both;
}

/* ── Checkout success ─────────────────────────────────────── */
@keyframes successPop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.success-icon { animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }

/* ── Marquee (alternative) ────────────────────────────────── */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
