/* ==========================================================================
   AUDIO & STUDIO ANIMATIONS
   Equalizer, Waveform, Vinyl, Reels, VU Meter, Recording Glow
   ========================================================================== */

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    opacity: 0.8;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    opacity: 1;
  }
}

@keyframes pulse-cyan {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(0, 240, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
  }
}

@keyframes pulse-gold {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 183, 3, 0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(255, 183, 3, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 183, 3, 0);
  }
}

/* Audio Equalizer Bars in Logo & Badges */
.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  width: 24px;
}

.eq-bar {
  flex: 1;
  background: var(--primary);
  border-radius: 2px;
  animation: eq-bounce 1.2s infinite ease-in-out;
  transform-origin: bottom;
}

.eq-bar:nth-child(1) { height: 60%; animation-delay: 0.1s; background: var(--secondary); }
.eq-bar:nth-child(2) { height: 95%; animation-delay: 0.4s; background: var(--primary); }
.eq-bar:nth-child(3) { height: 40%; animation-delay: 0.2s; background: #ff5e7e; }
.eq-bar:nth-child(4) { height: 80%; animation-delay: 0.5s; background: var(--primary); }

@keyframes eq-bounce {
  0%, 100% {
    transform: scaleY(0.3);
  }
  50% {
    transform: scaleY(1);
  }
}

/* Sound Wave Ripples */
.wave-ripple-container {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wave-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--secondary);
  opacity: 0;
  animation: ripple-out 2.5s infinite cubic-bezier(0.1, 0.8, 0.3, 1);
}

.wave-circle:nth-child(2) {
  animation-delay: 0.8s;
}

.wave-circle:nth-child(3) {
  animation-delay: 1.6s;
}

@keyframes ripple-out {
  0% {
    transform: scale(0.4);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Rotating Vinyl Record Animation */
.vinyl-disc {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, #222 25%, #111 26%, #111 40%, #000 41%, #1a1a1a 60%, #000 61%, #111 100%);
  border: 2px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  animation: spin-vinyl 4s linear infinite;
  animation-play-state: paused;
  position: relative;
}

.vinyl-disc.playing {
  animation-play-state: running;
}

.vinyl-label {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-hole {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #000;
}

@keyframes spin-vinyl {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Studer Tape Reel Animation */
.tape-reel {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid #888;
  position: relative;
  animation: spin-vinyl 3s linear infinite;
  background: radial-gradient(circle, #444 30%, #222 31%, #111 70%, #333 100%);
}

.tape-reel::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  background: #111;
  border-radius: 50%;
  border: 2px solid #aaa;
}

/* Microphone Sound Wave Glow */
.mic-glow-wrap {
  position: relative;
  display: inline-flex;
}

.mic-glow-wrap::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
  animation: mic-pulse 2s infinite ease-in-out;
  z-index: 0;
}

@keyframes mic-pulse {
  0%, 100% {
    transform: scale(0.95);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.9;
  }
}

/* Floating audio particles */
.floating-notes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.note-particle {
  position: absolute;
  color: rgba(255, 183, 3, 0.25);
  font-size: 1.2rem;
  animation: float-up 8s infinite linear;
}

@keyframes float-up {
  0% {
    transform: translateY(100%) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 0.4;
  }
  80% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-20%) rotate(360deg);
    opacity: 0;
  }
}
