/* ==========================================================================
   CINEMATIC EFFECTS & ADVANCED SHADERS / ANIMATIONS
   ========================================================================== */

/* Holographic Shimmer Effect */
.holo-effect {
  position: relative;
  overflow: hidden;
}

.holo-effect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 70%
  );
  transform: rotate(30deg);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.holo-effect:hover::after {
  transform: rotate(30deg) translate(25%, 25%);
}

/* Neon Glow Border Animator */
.glow-border {
  position: relative;
}

.glow-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-gold), var(--accent-primary));
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: borderGlow 6s linear infinite;
  opacity: 0.7;
}

@keyframes borderGlow {
  0% { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}

/* Button Metallic Light Sweep */
.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  transition: left 0.75s ease;
}

.btn-glow:hover::after {
  left: 140%;
}

/* Glass Card Top Neon Line */
.glass-card {
  position: relative;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0;
  transition: opacity 0.4s ease, left 0.4s ease, right 0.4s ease;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.glass-card:hover::before {
  opacity: 1;
  left: 5%;
  right: 5%;
}

/* Cyber Scanning Line */
.scanline-bg {
  position: relative;
}

.scanline-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  );
  background-size: 100% 4px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.3;
}

/* Audio Visualizer Waves Indicator */
.sound-wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.wave-bar {
  width: 3px;
  height: 100%;
  background: var(--accent-primary);
  border-radius: 2px;
  animation: soundWave 1.2s ease-in-out infinite alternate;
}

.wave-bar:nth-child(1) { animation-delay: 0.1s; }
.wave-bar:nth-child(2) { animation-delay: 0.3s; }
.wave-bar:nth-child(3) { animation-delay: 0.5s; }
.wave-bar:nth-child(4) { animation-delay: 0.2s; }

@keyframes soundWave {
  0% { height: 20%; }
  100% { height: 100%; }
}

/* Glitch Text Hover Effect */
.glitch-hover {
  position: relative;
  display: inline-block;
}

.glitch-hover:hover {
  animation: glitchText 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

@keyframes glitchText {
  0% { transform: translate(0) }
  20% { transform: translate(-2px, 2px) }
  40% { transform: translate(-2px, -2px) }
  60% { transform: translate(2px, 2px) }
  80% { transform: translate(2px, -2px) }
  100% { transform: translate(0) }
}

/* Live Operational Status Dot Animation */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(0, 245, 160, 0.1);
  border: 1px solid rgba(0, 245, 160, 0.3);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-emerald);
}

/* Ambient Radial Glow Spots */
.ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.25;
}

.glow-cyan {
  background: var(--accent-primary);
}

.glow-purple {
  background: var(--accent-secondary);
}

.glow-gold {
  background: var(--accent-gold);
}
