/* ==========================================================================
   MD ASIF KHAN TONAY — AI SYSTEMS ARCHITECT
   Cybernetic Design System & Interactive Styling
   ========================================================================== */

:root {
  --primary-cyan: #06b6d4;
  --primary-cyan-dim: #0891b2;
  --neon-cyan: #22d3ee;
  --accent-purple: #c0c1ff;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --bg-space: #070a10;
  --bg-surface: #0a0e17;
  --bg-dim: #0f131c;
  --bg-card: rgba(17, 23, 38, 0.75);
  --border-glow: rgba(6, 182, 212, 0.22);
  --border-focus: rgba(6, 182, 212, 0.65);
}

/* Cybernetic Grid Matrix */
.bg-grid-cyber {
  background-size: 36px 36px;
  background-image: 
    linear-gradient(to right, rgba(6, 182, 212, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(6, 182, 212, 0.04) 1px, transparent 1px);
}

.bg-radial-vignette {
  background: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
}

/* Glassmorphism Classes */
.glass-surface {
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.glass-surface:hover {
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 8px 32px -4px rgba(6, 182, 212, 0.15);
}

.glass-surface-active {
  background: rgba(22, 30, 49, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(34, 211, 238, 0.45);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Glowing Neon Utilities */
.glow-cyan-filter {
  box-shadow: 0 0 24px -2px rgba(6, 182, 212, 0.35);
}

.glow-cyan-sm {
  box-shadow: 0 0 12px 0 rgba(6, 182, 212, 0.3);
}

.glow-cyan-lg {
  box-shadow: 0 0 45px -4px rgba(6, 182, 212, 0.45);
}

.text-glow-cyan {
  text-shadow: 0 0 16px rgba(34, 211, 238, 0.6);
}

/* Interactive Terminal Styling */
.terminal-window {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(8, 12, 20, 0.95);
  border: 1px solid rgba(6, 182, 212, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(6, 182, 212, 0.1);
}

.terminal-header {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-scroll {
  scrollbar-width: thin;
  scrollbar-color: #1e293b #0a0e17;
}

/* Custom Sleek Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0a0e17;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #06b6d4;
}

/* Micro Animations */
@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.85;
    transform: scale(1);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 24px rgba(6, 182, 212, 0.8);
  }
}

.pulse-glow-dot {
  animation: pulseGlow 2.4s infinite ease-in-out;
}

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

.scanline-effect {
  position: absolute;
  top: 0; left: 0; right: 0; height: 12px;
  background: linear-gradient(180deg, transparent, rgba(6, 182, 212, 0.15), transparent);
  pointer-events: none;
  animation: scanline 8s linear infinite;
}

/* Code Badge */
.badge-code {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.01em;
}

/* Modal Overlay Animation */
.modal-backdrop {
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-enter {
  animation: modalEnter 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Sound indicator audio waves */
.sound-wave-bar {
  display: inline-block;
  width: 2px;
  height: 10px;
  background-color: #06b6d4;
  margin: 0 1px;
  border-radius: 1px;
  animation: soundWave 1.2s ease-in-out infinite;
}

.sound-wave-bar:nth-child(2) { animation-delay: 0.2s; height: 14px; }
.sound-wave-bar:nth-child(3) { animation-delay: 0.4s; height: 8px; }
.sound-wave-bar:nth-child(4) { animation-delay: 0.1s; height: 12px; }

@keyframes soundWave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1.3); }
}

/* Print optimizations */
@media print {
  .bg-grid-cyber, header, footer, #terminal-container, .no-print {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
}
