/* ═══════════════════════════════════════════════════
   ANIMATIONS — All @keyframes
   ═══════════════════════════════════════════════════ */

/* ── Pulse dot (availability badge) ──────────────── */
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,230,118,0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(0,230,118,0); }
}

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

@keyframes marquee-rev {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* ── Scroll indicator ────────────────────────────── */
@keyframes scroll-line {
  0%   { transform: scaleY(0); opacity: 0; transform-origin: top; }
  50%  { transform: scaleY(1); opacity: 1; transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); opacity: 0; transform-origin: bottom; }
}

/* ── Rotating ring ───────────────────────────────── */
@keyframes rotate-ring {
  to { transform: rotate(360deg); }
}

/* ── Float ───────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-20px); }
}

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

/* ── Glitch ──────────────────────────────────────── */
@keyframes glitch-1 {
  0%, 100% { clip-path: inset(40% 0 61% 0); transform: translate(-2px, 2px); }
  20%      { clip-path: inset(92% 0 1% 0);  transform: translate(1px, -3px); }
  40%      { clip-path: inset(43% 0 1% 0);  transform: translate(-1px, 1px); }
  60%      { clip-path: inset(25% 0 58% 0); transform: translate(3px, -1px); }
  80%      { clip-path: inset(54% 0 7% 0);  transform: translate(-3px, 2px); }
}

@keyframes glitch-2 {
  0%, 100% { clip-path: inset(65% 0 20% 0); transform: translate(2px, -1px); }
  20%      { clip-path: inset(15% 0 60% 0); transform: translate(-2px, 3px); }
  40%      { clip-path: inset(72% 0 8% 0);  transform: translate(1px, -2px); }
  60%      { clip-path: inset(5% 0 78% 0);  transform: translate(-3px, 1px); }
  80%      { clip-path: inset(38% 0 42% 0); transform: translate(2px, 2px); }
}

/* ── Fade in up ──────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Scale in ────────────────────────────────────── */
@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ── Stroke draw ─────────────────────────────────── */
@keyframes strokeDraw {
  to { stroke-dashoffset: 0; }
}

/* ── Loader bar ──────────────────────────────────── */
@keyframes loaderBar {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ── Border rotate (about photo) ─────────────────── */
@keyframes border-rotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ── Bounce subtle ───────────────────────────────── */
@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ── Reduced motion ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
