/* ==========================================================================
   CAMERA COVERAGE — PRECISION ANIMATION ENGINE
   Topic: High-Tech Surveillance, Zero Blind Spots, Turnkey Camera Installation
   ========================================================================== */

:root {
  --anim-ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --anim-ease-in-out-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --anim-cyan: #00F5FF;
  --anim-blue: #0066FF;
  --anim-rec: #FF2A4D;
  --anim-alert: #FFB800;
  --anim-success: #00E676;
}

/* 1. Radar Sweep & Conical Scan Wave */
@keyframes radarSweep {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fovPulse {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.04);
  }
}

@keyframes laserScanLine {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  80% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

.radar-sweep-beam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(0, 245, 255, 0.45) 0deg,
    rgba(0, 102, 255, 0.15) 45deg,
    rgba(0, 245, 255, 0) 90deg,
    transparent 360deg
  );
  animation: radarSweep 4s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

.fov-cone-active {
  transform-origin: 50% 100%;
  animation: fovPulse 3.5s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(0, 245, 255, 0.4));
}

/* 2. Recording Status Strobe (REC dot) */
@keyframes recStrobe {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 42, 77, 0.7);
  }
  50% {
    opacity: 0.25;
    transform: scale(0.88);
    box-shadow: 0 0 12px 6px rgba(255, 42, 77, 0);
  }
}

.rec-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--anim-rec);
  text-transform: uppercase;
}

.rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--anim-rec);
  animation: recStrobe 1.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 3. AI Target Acquisition & Reticle Snap */
@keyframes targetLockPulse {
  0% {
    border-color: rgba(0, 245, 255, 0.4);
    box-shadow: 0 0 0 rgba(0, 245, 255, 0);
  }
  50% {
    border-color: rgba(0, 245, 255, 1);
    box-shadow: 0 0 16px rgba(0, 245, 255, 0.5);
  }
  100% {
    border-color: rgba(0, 245, 255, 0.4);
    box-shadow: 0 0 0 rgba(0, 245, 255, 0);
  }
}

@keyframes cornerBracketRetract {
  0% {
    transform: scale(1.15);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.ai-target-reticle {
  position: absolute;
  border: 1.5px dashed var(--anim-cyan);
  border-radius: 4px;
  animation: targetLockPulse 2s infinite ease-in-out;
  transition: all 0.35s var(--anim-ease-out-expo);
  pointer-events: none;
}

.ai-target-reticle::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid transparent;
  border-top-color: var(--anim-cyan);
  border-left-color: var(--anim-cyan);
  border-right-color: var(--anim-cyan);
  border-bottom-color: var(--anim-cyan);
  animation: cornerBracketRetract 0.4s var(--anim-ease-out-expo) forwards;
}

.ai-classification-pill {
  position: absolute;
  top: -24px;
  left: 0;
  background: rgba(8, 12, 23, 0.9);
  border: 1px solid var(--anim-cyan);
  color: var(--anim-cyan);
  padding: 2px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  border-radius: 3px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

/* 4. Blind-Spot Danger Zone Alert */
@keyframes blindSpotHazard {
  0%, 100% {
    background-color: rgba(255, 42, 77, 0.12);
    border-color: rgba(255, 42, 77, 0.3);
  }
  50% {
    background-color: rgba(255, 42, 77, 0.28);
    border-color: rgba(255, 42, 77, 0.8);
  }
}

.blind-spot-danger-zone {
  animation: blindSpotHazard 2.2s infinite ease-in-out;
  border: 2px dashed rgba(255, 42, 77, 0.5);
  position: relative;
}

/* 5. Cat6 Conduit Data Stream (Energy Pulse) */
@keyframes conduitFlow {
  0% {
    stroke-dashoffset: 200;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.conduit-stream {
  stroke-dasharray: 10 14;
  animation: conduitFlow 1.8s linear infinite;
  stroke: var(--anim-cyan);
  filter: drop-shadow(0 0 6px rgba(0, 245, 255, 0.8));
}

/* 6. Cybernetic Glowing Border & Hover Glow */
.cyber-border-glow {
  position: relative;
  transition: all 0.3s var(--anim-ease-out-expo);
}

.cyber-border-glow:hover {
  transform: translateY(-3px);
  border-color: var(--anim-cyan);
  box-shadow: 0 12px 32px -8px rgba(0, 245, 255, 0.25), 0 0 1px 1px rgba(0, 245, 255, 0.5);
}

/* 7. Precision Aperture Shutter Click */
@keyframes shutterClick {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(0.96) rotate(3deg);
  }
  70% {
    transform: scale(1.02) rotate(-1deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.shutter-interactive:active {
  animation: shutterClick 0.3s var(--anim-ease-out-expo);
}
