/* ==========================================================================
   AGENT 007 YUSUF - CYBER SPY STYLES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;600;800&family=Outfit:wght@300;400;600;700;900&family=Space+Grotesk:wght@400;600;700&display=swap');

:root {
  --neon-emerald: #10b981;
  --neon-cyan: #06b6d4;
  --neon-amber: #f59e0b;
  --neon-rose: #f43f5e;
  --agent-dark: #030712;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--agent-dark);
  color: #f3f4f6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.font-mono-code {
  font-family: 'JetBrains Mono', monospace;
}

.font-heading {
  font-family: 'Space Grotesk', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #030712;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: #10b981;
}

/* Glassmorphism Styles */
.glass-panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-panel-hover:hover {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.2);
  transform: translateY(-3px);
}

/* Neon Glows */
.glow-emerald {
  box-shadow: 0 0 25px -5px rgba(16, 185, 129, 0.4);
}
.glow-cyan {
  box-shadow: 0 0 25px -5px rgba(6, 182, 212, 0.4);
}
.glow-rose {
  box-shadow: 0 0 30px -3px rgba(244, 63, 94, 0.5);
}

/* CRT Scanlines for Terminal */
.crt-screen {
  position: relative;
  overflow: hidden;
}
.crt-screen::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.04), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.04));
  z-index: 10;
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
}

/* Screen Shake Effect */
@keyframes shakeAnimation {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  10%, 30%, 50%, 70%, 90% { transform: translate(-8px, 6px) rotate(-1deg); }
  20%, 40%, 60%, 80% { transform: translate(8px, -6px) rotate(1deg); }
}

.shake-it {
  animation: shakeAnimation 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* Pulsing Agent Radar */
@keyframes radarSweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.animate-radar {
  animation: radarSweep 4s linear infinite;
}

/* Floating animation */
@keyframes subtleFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.animate-float {
  animation: subtleFloat 3s ease-in-out infinite;
}

/* Badge Blinking */
@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.animate-blink {
  animation: statusBlink 1.2s ease-in-out infinite;
}

/* Confidential Stamp Overlay */
.top-secret-stamp {
  border: 3px solid #ef4444;
  color: #ef4444;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.25em;
  padding: 0.25rem 1rem;
  display: inline-block;
  transform: rotate(-5deg);
  opacity: 0.85;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

/* Audio Pulse visualizer */
.audio-bar {
  display: inline-block;
  width: 3px;
  height: 12px;
  background-color: #10b981;
  margin: 0 1px;
  border-radius: 2px;
}
.sound-playing .audio-bar:nth-child(1) { animation: soundBar 0.6s infinite alternate; }
.sound-playing .audio-bar:nth-child(2) { animation: soundBar 0.4s 0.2s infinite alternate; }
.sound-playing .audio-bar:nth-child(3) { animation: soundBar 0.8s 0.1s infinite alternate; }

@keyframes soundBar {
  0% { height: 4px; }
  100% { height: 18px; }
}
