/* ═══════════════════════════════════════════════════════════════
   JACOB MATHEW — ADVANCED CYBERPUNK / SYSADMIN PORTFOLIO CSS
   Theme: High-Performance Glassmorphism, Neon Glow & Cyberpunk HUD
   ═══════════════════════════════════════════════════════════════ */

:root {
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.45);
  --primary-rgb: 99, 102, 241;
  --secondary: #ec4899;
  --secondary-glow: rgba(236, 72, 153, 0.4);
  --accent: #22d3ee;
  --accent-glow: rgba(34, 211, 238, 0.4);
  --success: #10b981;
  --warning: #f59e0b;
  
  --bg-main: #0a0a14;
  --bg-deep: #05050a;
  --bg-surface: rgba(18, 18, 36, 0.75);
  --bg-card: rgba(23, 23, 44, 0.65);
  --bg-card-hover: rgba(30, 30, 60, 0.85);
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-bright: rgba(99, 102, 241, 0.35);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --grad-primary: linear-gradient(135deg, var(--primary), var(--secondary));
  --grad-accent: linear-gradient(135deg, var(--primary), var(--accent));
  --grad-surface: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px var(--primary-glow);
  
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Color Accent Themes */
body.theme-cyan { --primary: #06b6d4; --primary-glow: rgba(6, 182, 212, 0.45); --primary-rgb: 6, 182, 212; --secondary: #3b82f6; --accent: #10b981; }
body.theme-emerald { --primary: #10b981; --primary-glow: rgba(16, 185, 129, 0.45); --primary-rgb: 16, 185, 129; --secondary: #06b6d4; --accent: #f59e0b; }
body.theme-amber { --primary: #f59e0b; --primary-glow: rgba(245, 158, 11, 0.45); --primary-rgb: 245, 158, 11; --secondary: #ef4444; --accent: #8b5cf6; }
body.theme-violet { --primary: #8b5cf6; --primary-glow: rgba(139, 92, 246, 0.45); --primary-rgb: 139, 92, 246; --secondary: #ec4899; --accent: #06b6d4; }

/* Global Resets */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary); }

/* Selection */
::selection {
  background: var(--primary);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   CANVAS & BACKGROUND ATMOSPHERE
   ═══════════════════════════════════════════════════════════════ */
#bg-canvas-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

#matrixCanvas, #starsCanvas, #hexCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#matrixCanvas { opacity: 0.045; }
#starsCanvas { opacity: 0.8; }
#hexCanvas { opacity: 0.08; }

/* Aurora Glow Orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 22s ease-in-out infinite alternate;
}

.orb-1 { width: 500px; height: 500px; background: var(--primary); top: -100px; left: -100px; opacity: 0.18; }
.orb-2 { width: 450px; height: 450px; background: var(--secondary); bottom: 10%; right: -100px; opacity: 0.15; animation-delay: -7s; }
.orb-3 { width: 380px; height: 380px; background: var(--accent); top: 50%; left: 30%; opacity: 0.12; animation-delay: -14s; }

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -40px) scale(1.1); }
  100% { transform: translate(-40px, 50px) scale(0.9); }
}

/* Cyber Grid Lines */
.cyber-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   CUSTOM CURSOR & SPOTLIGHT
   ═══════════════════════════════════════════════════════════════ */
#cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s, height 0.2s, background 0.2s;
  box-shadow: 0 0 10px var(--accent);
}

#cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--primary-glow);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, width 0.25s, height 0.25s, border-color 0.2s;
}

#cursor-spotlight {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
}

#cursor-dot.active { width: 18px; height: 18px; background: var(--secondary); }
#cursor-ring.active { width: 56px; height: 56px; border-color: var(--secondary); }

/* ═══════════════════════════════════════════════════════════════
   LOADER & PROGRESS
   ═══════════════════════════════════════════════════════════════ */
#page-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--grad-primary);
  z-index: 99999;
  box-shadow: 0 0 12px var(--primary);
  transition: width 0.1s ease-out;
}

#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader-core {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--primary);
  border-right-color: var(--secondary);
  animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.preloader-ring-2 {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: var(--accent);
  animation: spin-reverse 0.9s linear infinite;
}

.preloader-logo {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulseLogo 1.5s ease-in-out infinite;
}

.preloader-status {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  letter-spacing: 4px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }
@keyframes pulseLogo { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.92); opacity: 0.7; } }

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.1rem 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  background: rgba(10, 10, 20, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.75rem 6%;
  background: rgba(6, 6, 12, 0.92);
  border-bottom-color: var(--border-glass-bright);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.nav-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 0 15px var(--primary-glow);
  position: relative;
  overflow: hidden;
}

.nav-brand-logo::after {
  content: '';
  position: absolute;
  inset: -100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: rotate(45deg);
  animation: shine 4s infinite;
}

@keyframes shine { 0% { transform: translateX(-150%) rotate(45deg); } 20%, 100% { transform: translateX(150%) rotate(45deg); } }

.nav-brand-text {
  background: linear-gradient(90deg, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

#nav-toggle {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS & UI CONTROLS
   ═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 28px var(--primary-glow);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-glass-bright);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary);
  transform: translateY(-3px);
  color: #fff;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
}

.btn-icon:hover {
  color: var(--text-main);
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.15);
}

/* Ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}

@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.hero-section {
  min-height: 100vh;
  padding: 8.5rem 6% 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  gap: 3rem;
}

.hero-content {
  flex: 1.2;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.45rem 1.2rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-full);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--success);
  animation: pulse-ring 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.hero-greeting {
  display: block;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.hero-name {
  background: linear-gradient(135deg, #fff 30%, var(--primary) 70%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
}

.hero-typewriter-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.2rem;
  min-height: 2.2rem;
  font-family: 'Courier New', monospace;
}

.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1.35rem;
  background: var(--accent);
  animation: blink 0.9s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

/* Stats Counter Grid */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Hero Avatar & Visual HUD */
.hero-visual {
  flex: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.avatar-hud-wrapper {
  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hud-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(99, 102, 241, 0.35);
  animation: spin 30s linear infinite;
}

.hud-ring-inner {
  position: absolute;
  inset: 25px;
  border-radius: 50%;
  border: 1px solid rgba(236, 72, 153, 0.25);
  border-top-color: var(--accent);
  border-bottom-color: var(--primary);
  animation: spin-reverse 20s linear infinite;
}

.avatar-container {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  padding: 8px;
  background: var(--grad-primary);
  box-shadow: 0 0 45px var(--primary-glow);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-deep);
  transition: transform 0.5s ease;
}

.avatar-container:hover .avatar-img {
  transform: scale(1.06);
}

.avatar-scanner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  box-shadow: 0 0 15px var(--accent);
  animation: scanLine 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scanLine {
  0%, 100% { top: 0%; opacity: 0; }
  50% { top: 100%; opacity: 1; }
}

/* Floating Tech Chips */
.floating-tech-chip {
  position: absolute;
  padding: 0.5rem 1rem;
  background: rgba(18, 18, 36, 0.85);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  z-index: 3;
  animation: floatChip 6s ease-in-out infinite alternate;
}

.chip-1 { top: 8%; left: -20px; animation-delay: 0s; }
.chip-2 { bottom: 12%; left: -10px; animation-delay: -2s; }
.chip-3 { top: 20%; right: -20px; animation-delay: -4s; }
.chip-4 { bottom: 20%; right: -15px; animation-delay: -1.5s; }

@keyframes floatChip {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
  100% { transform: translateY(10px) rotate(-1deg); }
}

/* ═══════════════════════════════════════════════════════════════
   LIVE SYSTEM TELEMETRY HUD
   ═══════════════════════════════════════════════════════════════ */
.telemetry-section {
  padding: 0 6% 3rem;
  position: relative;
  z-index: 2;
}

.telemetry-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
}

.telemetry-node {
  display: flex;
  align-items: center;
  gap: 14px;
}

.telemetry-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid var(--border-glass-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
}

.telemetry-meta {
  display: flex;
  flex-direction: column;
}

.telemetry-title {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

.telemetry-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: 'Courier New', monospace;
}

/* ═══════════════════════════════════════════════════════════════
   INTERACTIVE LINUX TERMINAL (HUD)
   ═══════════════════════════════════════════════════════════════ */
.terminal-section {
  padding: 4rem 6%;
  position: relative;
  z-index: 2;
}

.terminal-window {
  background: rgba(9, 9, 18, 0.94);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 25px rgba(99, 102, 241, 0.2);
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
}

.terminal-header {
  background: rgba(18, 18, 36, 0.95);
  padding: 0.75rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-body {
  padding: 1.5rem;
  font-family: 'Courier New', Consolas, Monaco, monospace;
  font-size: 0.95rem;
  color: #38bdf8;
  min-height: 280px;
  max-height: 460px;
  overflow-y: auto;
  line-height: 1.6;
}

.terminal-line {
  margin-bottom: 0.5rem;
  word-break: break-word;
}

.terminal-prompt {
  color: #4ade80;
  font-weight: 700;
}

.terminal-command {
  color: #f8fafc;
}

.terminal-output {
  color: #cbd5e1;
  margin-top: 0.2rem;
  white-space: pre-wrap;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.9rem 1.4rem;
  background: rgba(9, 9, 18, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-input {
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.92rem;
  flex: 1;
  min-width: 0;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION HEADINGS & COMMON LAYOUTS
   ═══════════════════════════════════════════════════════════════ */
.section-wrapper {
  padding: 6rem 6%;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 0.6rem;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT & HIGHLIGHTS
   ═══════════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  align-items: center;
}

.about-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.about-text p {
  margin-bottom: 1.2rem;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.highlight-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glass-bright);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.highlight-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.highlight-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   SKILLS MATRIX
   ═══════════════════════════════════════════════════════════════ */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 18px var(--primary-glow);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glass-bright);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.skill-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.skill-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.skill-level-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent);
}

.skill-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.skill-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.skill-bar-fill {
  height: 100%;
  width: 0;
  background: var(--grad-primary);
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-percentage {
  display: flex;
  justify-content: flex-end;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.4rem;
}

/* ═══════════════════════════════════════════════════════════════
   WORK EXPERIENCE TIMELINE
   ═══════════════════════════════════════════════════════════════ */
.timeline-wrapper {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--secondary), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 3rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 11px;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 3px solid var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  z-index: 2;
}

.timeline-dot.current {
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
  animation: pulse-ring 2s infinite;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  transition: var(--transition);
}

.timeline-card:hover {
  transform: translateX(8px);
  border-color: var(--border-glass-bright);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.timeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-period {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  font-family: 'Courier New', monospace;
}

.timeline-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}

.timeline-role {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.timeline-company {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.timeline-achievements {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline-achievements li {
  font-size: 0.88rem;
  color: var(--text-dim);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.timeline-achievements li::before {
  content: '▹';
  color: var(--accent);
  font-weight: bold;
}

/* ═══════════════════════════════════════════════════════════════
   PROJECTS SHOWCASE
   ═══════════════════════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glass-bright);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px var(--primary-glow);
}

.project-banner {
  height: 140px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-banner-icon {
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.25);
  transition: transform 0.5s ease;
}

.project-card:hover .project-banner-icon {
  transform: scale(1.15) rotate(5deg);
  color: rgba(255, 255, 255, 0.5);
}

.project-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(10, 10, 20, 0.85);
  border: 1px solid var(--border-glass-bright);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

.project-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.project-progress-wrap {
  margin-bottom: 1.2rem;
}

.project-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.5rem;
}

.project-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

/* ═══════════════════════════════════════════════════════════════
   CERTIFICATIONS
   ═══════════════════════════════════════════════════════════════ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: var(--transition);
}

.cert-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glass-bright);
  box-shadow: var(--shadow-md);
}

.cert-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  flex-shrink: 0;
}

.cert-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.cert-issuer {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
}

.contact-info-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.contact-info-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
}

.contact-item-meta h4 {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.contact-item-meta a, .contact-item-meta span {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-item-meta a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px var(--primary-glow);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: rgba(10, 10, 20, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  background: rgba(10, 10, 20, 0.9);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

/* ═══════════════════════════════════════════════════════════════
   FLOATING HUD CONTROLS
   ═══════════════════════════════════════════════════════════════ */
.floating-hud {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.hud-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(18, 18, 36, 0.9);
  border: 1px solid var(--border-glass-bright);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.hud-btn:hover {
  transform: scale(1.1);
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}

#btn-scroll-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

#btn-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Palette Dropdown */
.palette-popover {
  position: absolute;
  bottom: 60px;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  gap: 8px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}

.palette-popover.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.palette-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s;
}

.palette-swatch:hover {
  transform: scale(1.2);
}

.swatch-indigo { background: #6366f1; }
.swatch-cyan { background: #06b6d4; }
.swatch-emerald { background: #10b981; }
.swatch-amber { background: #f59e0b; }
.swatch-violet { background: #8b5cf6; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  padding: 3rem 6%;
  border-top: 1px solid var(--border-glass);
  background: var(--bg-deep);
  position: relative;
  z-index: 2;
  text-align: center;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-text {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.admin-portal-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.admin-portal-link:hover {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   TELEMETRY SUBBAR & LIVE PULSE
   ═══════════════════════════════════════════════════════════════ */
.telemetry-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
  background: rgba(10, 10, 22, 0.6);
  border: 1px solid var(--border-glass);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  margin-top: -1px;
}

.quick-terminal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: #c7d2fe;
  cursor: pointer;
  transition: var(--transition);
}

.quick-terminal-badge:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.3);
}

.telemetry-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--success);
  letter-spacing: 0.5px;
}

.indicator-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: pulseDot 1.5s infinite;
}

/* ═══════════════════════════════════════════════════════════════
   INTERACTIVE CLOUD TOPOLOGY BLUEPRINT
   ═══════════════════════════════════════════════════════════════ */
.topology-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.topology-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
}

.topology-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0.5rem 2rem;
}

.topo-node-card {
  flex: 1;
  min-width: 170px;
  background: rgba(15, 15, 30, 0.9);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.topo-node-card:hover, .topo-node-card.active-node {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(34, 211, 238, 0.25);
  background: rgba(25, 25, 50, 0.95);
}

.topo-node-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin: 0 auto 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.topo-node-card:hover .topo-node-icon {
  transform: scale(1.15) rotate(5deg);
}

.topo-node-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #fff;
}

.topo-badge {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.topo-connector {
  color: var(--text-dim);
  font-size: 1.1rem;
  animation: pulseArrow 2s infinite ease-in-out;
}

@keyframes pulseArrow {
  0%, 100% { transform: translateX(0); opacity: 0.4; }
  50% { transform: translateX(4px); opacity: 1; color: var(--accent); }
}

.topo-inspector {
  background: rgba(10, 10, 22, 0.9);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.8rem;
  margin-top: 1rem;
  animation: fadeIn 0.3s ease;
}

.inspector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-glass);
}

.inspector-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-live-dot {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--success);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulseDot 1s infinite;
}

.inspector-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.metric-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.metric-pill strong {
  color: #fff;
  margin-right: 4px;
}

/* ════════════════ TERMINAL QUICK COMMAND CHIPS ════════════════ */
.terminal-quick-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.term-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.term-chip:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ════════════════ HOLOGRAPHIC PROJECT QUICKVIEW MODAL ════════════════ */
.cyber-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cyber-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cyber-modal-card {
  width: 100%;
  max-width: 640px;
  background: rgba(15, 15, 30, 0.95);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px var(--primary-glow);
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyber-modal-overlay.open .cyber-modal-card {
  transform: scale(1) translateY(0);
}

.cyber-modal-header {
  padding: 1.4rem 1.8rem;
  background: rgba(20, 20, 40, 0.8);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cyber-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cyber-modal-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.cyber-modal-close:hover {
  color: #ef4444;
}

.cyber-modal-body {
  padding: 1.8rem;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
}

.modal-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.modal-badge-status {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.3);
}

.modal-desc {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.modal-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.modal-terminal-preview {
  background: #070711;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
}

.text-cyan { color: var(--accent); }
.text-green { color: var(--success); }
.text-yellow { color: #f59e0b; }

.cyber-modal-footer {
  padding: 1.2rem 1.8rem;
  background: rgba(12, 12, 24, 0.9);
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* ════════════════ AUDIO EQUALIZER BARS ════════════════ */
.audio-eq-bars {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

.audio-eq-bars span {
  width: 3px;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  animation: eqBounce 0.8s infinite ease-in-out alternate;
}

.audio-eq-bars span:nth-child(1) { animation-delay: 0.1s; height: 40%; }
.audio-eq-bars span:nth-child(2) { animation-delay: 0.3s; height: 90%; }
.audio-eq-bars span:nth-child(3) { animation-delay: 0.2s; height: 60%; }
.audio-eq-bars span:nth-child(4) { animation-delay: 0.4s; height: 75%; }

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

.sound-active .audio-eq-bars {
  display: flex !important;
}

.sound-active #sound-icon {
  display: none !important;
}

/* ════════════════ TOAST NOTIFICATION ════════════════ */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md);
  background: rgba(18, 18, 36, 0.95);
  border: 1px solid var(--border-glass-bright);
  color: #fff;
  font-size: 0.92rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
  animation: slideInRight 0.3s ease;
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid #ef4444; }

@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION BACKDROP OVERLAY & HAMBURGER
   ═══════════════════════════════════════════════════════════════ */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 12, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN (DESKTOP, LAPTOP, TABLET, MOBILE)
   ═══════════════════════════════════════════════════════════════ */

/* Laptops & Small Desktops (1025px - 1280px) */
@media (max-width: 1280px) {
  .navbar { padding: 0.9rem 4%; }
  .section-container, .hero-section { padding-left: 4%; padding-right: 4%; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablets (769px - 1024px) */
@media (max-width: 1024px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
    padding-top: 7rem;
    padding-bottom: 4rem;
    gap: 3rem;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-stats {
    width: 100%;
    max-width: 600px;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile & Small Tablets (481px - 768px) */
@media (max-width: 768px) {
  #nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  .nav-cta-btn {
    display: none;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 290px;
    max-width: 85vw;
    height: 100vh;
    background: rgba(10, 10, 22, 0.98);
    border-left: 1px solid var(--border-glass-bright);
    flex-direction: column;
    align-items: flex-start;
    padding: 5.5rem 1.8rem 2rem;
    gap: 1.2rem;
    z-index: 999;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav-links.open {
    right: 0;
  }
  .nav-link {
    font-size: 1.05rem;
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
  }
  .nav-link:hover {
    background: rgba(99, 102, 241, 0.12);
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
  .avatar-hud-wrapper {
    width: 260px;
    height: 260px;
  }
  .avatar-container {
    width: 180px;
    height: 180px;
  }
  .telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  .telemetry-item {
    padding: 0.8rem 1rem;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    padding-left: 55px;
  }
  .timeline-node {
    left: 10px;
  }
  .terminal-section {
    padding: 3rem 1rem;
  }
  .terminal-quick-chips {
    gap: 6px;
    margin-bottom: 1.2rem;
  }
  .term-chip {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
  }
  .terminal-window {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: var(--radius-md);
  }
  .terminal-header {
    padding: 0.65rem 1rem;
  }
  .terminal-title {
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .terminal-shell-info {
    display: none;
  }
  .terminal-body {
    padding: 1rem;
    font-size: 0.8rem;
    min-height: 220px;
    max-height: 340px;
    overflow-x: auto;
  }
  .terminal-input-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 0.7rem 1rem 1rem;
  }
  .terminal-prompt {
    font-size: 0.78rem;
    color: #4ade80;
    display: block;
    width: 100%;
  }
  .terminal-input {
    width: 100%;
    font-size: 0.82rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    box-sizing: border-box;
  }
  .terminal-input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
  }
  .contact-form-card {
    padding: 1.8rem 1.4rem;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .floating-hud {
    bottom: 16px;
    right: 16px;
  }
  .hud-btn {
    width: 42px;
    height: 42px;
  }
}

/* Extra Small Phones (< 480px) */
@media (max-width: 480px) {
  .navbar {
    padding: 0.8rem 1rem;
  }
  .nav-brand-text {
    font-size: 0.95rem;
  }
  .hero-section {
    padding-top: 5.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .hero-title {
    font-size: 2.05rem;
  }
  .hero-typewriter-wrapper {
    font-size: 1.05rem;
    min-height: 1.8rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
  }
  .hero-buttons .btn {
    width: 100%;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  .stat-number {
    font-size: 1.8rem;
  }
  .avatar-hud-wrapper {
    width: 220px;
    height: 220px;
  }
  .avatar-container {
    width: 150px;
    height: 150px;
  }
  .telemetry-grid {
    grid-template-columns: 1fr;
  }
  .skill-tabs, .project-tabs {
    gap: 6px;
  }
  .tab-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }
  .section-container {
    padding: 3.5rem 1rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .contact-form-card {
    padding: 1.4rem 1rem;
  }
  .form-control {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
  #cursor-dot, #cursor-ring, #cursor-spotlight {
    display: none !important;
  }
  * {
    cursor: auto !important;
  }
}
