/* ==========================================================================
   BYTEBOSS - Cyber-Tech Dark Mode Design System & Custom Animations
   Palette:
   - Primary Dark Background: #0F172A (Slate 900) & #0B0F19 (Deep Slate)
   - Electric Blue Brand: #4D97FF / #38BDF8
   - Tech Red CTA / Alert: #EF4444 / #F87171
   - Surfaces: #1E293B / #111827
   - Borders: #334155 / rgba(77, 151, 255, 0.2)
   ========================================================================== */

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

:root {
  --color-bg-deep: #080C15;
  --color-bg-base: #0F172A;
  --color-surface-1: #141E33;
  --color-surface-2: #1E293B;
  --color-blue-primary: #4D97FF;
  --color-blue-glow: rgba(77, 151, 255, 0.35);
  --color-red-primary: #EF4444;
  --color-red-glow: rgba(239, 68, 68, 0.35);
  --color-emerald-accent: #10B981;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0B0F19;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
  border: 1px solid rgba(77, 151, 255, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
  border-color: #4D97FF;
}

/* Selection */
::selection {
  background: rgba(77, 151, 255, 0.3);
  color: #FFFFFF;
}

/* Base Body Grid Background */
.cyber-grid-bg {
  background-color: var(--color-bg-base);
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.cyber-dots-bg {
  background-image: radial-gradient(rgba(77, 151, 255, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(30, 41, 59, 0.65);
  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.16, 1, 0.3, 1);
}
.glass-panel-hover:hover {
  border-color: rgba(77, 151, 255, 0.4);
  box-shadow: 0 10px 30px -10px rgba(77, 151, 255, 0.25);
  transform: translateY(-2px);
}

.glass-card-active {
  background: rgba(20, 30, 51, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(77, 151, 255, 0.5);
  box-shadow: 0 0 35px -5px rgba(77, 151, 255, 0.3);
}

/* Glow Effects */
.glow-blue {
  box-shadow: 0 0 25px rgba(77, 151, 255, 0.4);
}

.glow-blue-subtle {
  box-shadow: 0 0 15px rgba(77, 151, 255, 0.15);
}

.glow-red {
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.4);
}

.glow-emerald {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

/* Shimmer Border Animation */
@keyframes border-shimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.shimmer-border {
  background: linear-gradient(90deg, #4D97FF, #38BDF8, #818CF8, #4D97FF);
  background-size: 300% 300%;
  animation: border-shimmer 6s ease infinite;
}

/* Radar & Pulse Animations */
@keyframes radar-sweep {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.radar-spinner {
  animation: radar-sweep 5s linear infinite;
}

@keyframes ping-slow {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.2;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.animate-ping-slow {
  animation: ping-slow 2.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

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

.animate-pulse-subtle {
  animation: pulse-subtle 3s ease-in-out infinite;
}

/* Scanline Effect */
.scanline-overlay {
  position: relative;
  overflow: hidden;
}
.scanline-overlay::after {
  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.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  z-index: 2;
  background-size: 100% 3px, 3px 100%;
  pointer-events: none;
  opacity: 0.6;
}

/* Gradient Text Utilities */
.text-gradient-blue {
  background: linear-gradient(135deg, #FFFFFF 20%, #93C5FD 50%, #4D97FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-red {
  background: linear-gradient(135deg, #FFFFFF 20%, #FCA5A5 50%, #EF4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyber {
  background: linear-gradient(135deg, #60A5FA 0%, #38BDF8 50%, #A78BFA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Monospace font styling */
.font-mono-tech {
  font-family: 'JetBrains Mono', monospace;
}

/* Floating interactive chat bubble */
@keyframes float-bubble {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

.floating-bounce {
  animation: float-bubble 4s ease-in-out infinite;
}
