/* ============================================================
   DJ ARCTIC VIBE — Animations & Keyframes
   ============================================================ */

/* ── Keyframes ────────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

@keyframes eqBounce {
  0%   { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

@keyframes scrollDot {
  0%   { opacity: 1; transform: translateY(0); }
  80%  { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(14px); }
}

@keyframes scanline {
  0%   { left: -60%; }
  100% { left: 120%; }
}

@keyframes glowPulse {
  0%, 100% {
    filter: drop-shadow(0 4px 24px rgba(77,200,232,0.3)) drop-shadow(0 0 60px rgba(0,221,208,0.15));
  }
  50% {
    filter: drop-shadow(0 4px 40px rgba(77,200,232,0.55)) drop-shadow(0 0 100px rgba(0,221,208,0.28));
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes rotateRecord {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes borderGlow {
  0%, 100% { border-color: rgba(77,200,232,0.18); }
  50%       { border-color: rgba(77,200,232,0.5); box-shadow: 0 0 24px rgba(77,200,232,0.18); }
}

@keyframes successPop {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes waveform {
  0%   { transform: scaleY(0.4); }
  25%  { transform: scaleY(1.0); }
  50%  { transform: scaleY(0.6); }
  75%  { transform: scaleY(0.9); }
  100% { transform: scaleY(0.4); }
}

@keyframes iceReveal {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  to {
    clip-path: inset(0 0% 0 0);
    opacity: 1;
  }
}

/* ── Scroll-reveal base states ────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

[data-animate="left"] {
  transform: translateX(-40px);
}

[data-animate="right"] {
  transform: translateX(40px);
}

[data-animate="scale"] {
  transform: scale(0.9);
}

[data-animate].in-view {
  opacity: 1;
  transform: none;
}

/* Stagger delays */
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }
[data-delay="6"] { transition-delay: 0.6s; }

/* ── Utility animation classes ────────────────────────────── */
.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-glow-pulse {
  animation: glowPulse 3s ease-in-out infinite;
}

.animate-border-glow {
  animation: borderGlow 3s ease-in-out infinite;
}

.animate-spin-slow {
  animation: rotateRecord 10s linear infinite;
}

/* ── Vinyl record decoration ──────────────────────────────── */
.vinyl-record {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--bg-card) 20%, transparent 20%),
    repeating-radial-gradient(circle at center, var(--bg-surface) 0px, var(--bg-card) 3px, var(--bg-surface) 4px, var(--bg-card) 6px);
  border: 2px solid rgba(77,200,232,0.2);
  animation: rotateRecord 8s linear infinite;
  box-shadow: 0 0 40px rgba(77,200,232,0.14);
}

.vinyl-record::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--grad-ice);
  box-shadow: var(--glow-md);
}

.vinyl-record::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-deep);
}

/* ── Waveform decoration ──────────────────────────────────── */
.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 48px;
}

.waveform .wave-bar {
  width: 3px;
  border-radius: 2px;
  background: var(--grad-ice);
  animation: waveform var(--duration, 1.2s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

/* ── Loading shimmer ──────────────────────────────────────── */
.shimmer {
  background: linear-gradient(
    90deg,
    var(--bg-surface) 25%,
    rgba(0,212,255,0.08) 50%,
    var(--bg-surface) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}

/* ── Ice crack line ───────────────────────────────────────── */
.ice-line {
  width: 60px;
  height: 2px;
  background: var(--grad-ice);
  border-radius: var(--radius-full);
  position: relative;
  overflow: visible;
}

.ice-line::before,
.ice-line::after {
  content: '';
  position: absolute;
  top: 50%;
  height: 1px;
  background: rgba(0,212,255,0.4);
}

.ice-line::before {
  left: 100%;
  width: 30px;
  transform: translateY(-50%) rotate(30deg);
  transform-origin: left center;
}

.ice-line::after {
  left: 100%;
  width: 20px;
  transform: translateY(-50%) rotate(-20deg);
  transform-origin: left center;
}
