/* ==========================================================================
   LOR DIGITAL STUDIO - NEON, CYBER HUD & ANIMATION EFFECTS
   ========================================================================== */

/* Keyframe Animations */
@keyframes spin-glow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

@keyframes scanline-anim {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(1000%); }
}

@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow: 
      0 0 4px #fff,
      0 0 10px #fff,
      0 0 18px var(--neon-cyan),
      0 0 35px var(--neon-cyan),
      0 0 60px var(--neon-cyan);
    opacity: 1;
  }
  20%, 24%, 55% {
    text-shadow: none;
    opacity: 0.85;
  }
}

@keyframes subtle-grid-drift {
  0% { background-position: 0 0; }
  100% { background-position: 0 40px; }
}

@keyframes cyber-badge-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 240, 255, 0.3); }
  50% { box-shadow: 0 0 18px rgba(0, 240, 255, 0.7); }
}

/* CRT Scanline Overlay Screen Filter */
.crt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  background: linear-gradient(
    rgba(18, 16, 26, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  );
  background-size: 100% 4px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.crt-enabled .crt-overlay {
  opacity: 1;
}

body.crt-enabled .crt-overlay::after {
  content: " ";
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 26, 0) 0%, rgba(32, 255, 255, 0.03) 50%, rgba(18, 16, 26, 0) 100%);
  opacity: 0.1;
  animation: scanline-anim 8s linear infinite;
}

/* Cyber Terminal HUD Framing */
.cyber-hud-bracket {
  position: relative;
}

.cyber-hud-bracket::before {
  content: '[';
  color: var(--neon-cyan);
  font-family: var(--font-hud);
  font-weight: 800;
  margin-right: 0.25rem;
}

.cyber-hud-bracket::after {
  content: ']';
  color: var(--neon-cyan);
  font-family: var(--font-hud);
  font-weight: 800;
  margin-left: 0.25rem;
}

/* Glow Utilities */
.text-glow-cyan {
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.6), 0 0 25px rgba(0, 240, 255, 0.3);
}

.text-glow-magenta {
  text-shadow: 0 0 10px rgba(255, 0, 127, 0.6), 0 0 25px rgba(255, 0, 127, 0.3);
}

.text-glow-gold {
  text-shadow: 0 0 10px rgba(255, 190, 11, 0.6), 0 0 25px rgba(255, 190, 11, 0.3);
}

/* Glowing Border Box */
.cyber-border-glow {
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25), inset 0 0 15px rgba(0, 240, 255, 0.1);
}

/* Animated Grid Background for Media section */
.cyber-grid-backdrop {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  opacity: 0.7;
}

/* Sci-fi Audio Wave Indicator */
.audio-waves {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 14px;
}

.audio-bar {
  width: 2px;
  height: 100%;
  background: var(--neon-cyan);
  border-radius: 1px;
}

body.audio-active .audio-bar:nth-child(1) { animation: audio-bounce 0.8s ease-in-out infinite alternate; }
body.audio-active .audio-bar:nth-child(2) { animation: audio-bounce 0.6s ease-in-out 0.2s infinite alternate; }
body.audio-active .audio-bar:nth-child(3) { animation: audio-bounce 0.9s ease-in-out 0.4s infinite alternate; }

@keyframes audio-bounce {
  0% { height: 20%; }
  100% { height: 100%; }
}
