/* ==========================================================================
   OVATION MUSIC HOUSE — ANIMATIONS & MUSICAL SPECTRUM STYLES
   ========================================================================== */

/* Core Keyframes */
@keyframes scrollWheel {
  0% { opacity: 1; top: 6px; }
  50% { opacity: 0.5; top: 18px; }
  100% { opacity: 0; top: 24px; }
}

@keyframes pulseGold {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

@keyframes floatSlow {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Floating Musical Notes Animation */
@keyframes floatMusicalNote {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.7) rotate(0deg);
  }
  20% {
    opacity: 0.8;
  }
  80% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateY(-120px) scale(1.2) rotate(25deg);
  }
}

.floating-musical-note {
  position: absolute;
  pointer-events: none;
  font-size: 1.5rem;
  color: var(--color-gold-primary);
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
  animation: floatMusicalNote 4s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
  z-index: 2;
}

/* Spinning Studio Vinyl Record */
@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vinyl-record {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, #0F172A 15%, #1E293B 16%, #000 25%, #111 40%, #000 60%, #1E293B 85%);
  border: 4px solid var(--color-gold-primary);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.3), inset 0 0 15px rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: spinVinyl 8s linear infinite;
  cursor: pointer;
  transition: animation-play-state 0.3s ease;
}

.vinyl-record:hover {
  animation-play-state: paused;
}

.vinyl-center {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-gold);
  border: 2px solid #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--color-navy-dark);
}

/* Guitar String Vibration Animation */
@keyframes stringVibrate {
  0% { transform: translateY(0); }
  25% { transform: translateY(-3px); }
  50% { transform: translateY(3px); }
  75% { transform: translateY(-1.5px); }
  100% { transform: translateY(0); }
}

.string-vibrate-hover:hover {
  animation: stringVibrate 0.15s ease infinite;
}

/* Interactive Mini Piano Keyboard Widget */
.piano-keyboard-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  background: #0F172A;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  max-width: 600px;
  margin: 2rem auto;
  position: relative;
  overflow: hidden;
}

.piano-key {
  height: 120px;
  width: 36px;
  background: #FFFFFF;
  border-radius: 0 0 4px 4px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  position: relative;
  box-shadow: inset 0 -4px 6px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.3);
}

.piano-key.black-key {
  height: 75px;
  width: 22px;
  background: #0F172A;
  margin-left: -12px;
  margin-right: -12px;
  z-index: 3;
  border-radius: 0 0 3px 3px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.8);
}

.piano-key:active, .piano-key.playing {
  background: var(--color-gold-primary);
  transform: translateY(3px);
  box-shadow: 0 0 15px var(--color-gold-primary);
}

.piano-key.black-key:active, .piano-key.black-key.playing {
  background: var(--color-gold-light);
}

/* Audio Equalizer Frequency Bars */
.eq-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 50px;
}

.eq-bar {
  flex: 1;
  background: var(--gradient-gold);
  border-radius: 2px 2px 0 0;
  animation: eqPulse 1.2s ease-in-out infinite alternate;
}

@keyframes eqPulse {
  0% { height: 15%; }
  100% { height: 100%; }
}

.eq-bar:nth-child(2n) { animation-delay: 0.2s; }
.eq-bar:nth-child(3n) { animation-delay: 0.4s; }
.eq-bar:nth-child(4n) { animation-delay: 0.1s; }
.eq-bar:nth-child(5n) { animation-delay: 0.5s; }

/* Image Hover Zoom Effects */
.img-zoom-box {
  overflow: hidden;
  border-radius: var(--radius-md);
  position: relative;
}

.img-zoom-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-zoom-box:hover img {
  transform: scale(1.08);
}

/* Scroll Reveal Classes (IntersectionObserver driven) */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-slide-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-slide-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger Delays */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  .reveal-fade-up,
  .reveal-slide-left,
  .reveal-slide-right,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .vinyl-record, .floating-musical-note, .eq-bar {
    animation: none !important;
  }
}
