/* Network Diagnostics Multi-Tool Suite (Ping, Tracert, Real Speed Test) */
.net-diag-tab {
  background: transparent;
  color: #94a3b8;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
}

.net-diag-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
}

.net-diag-tab.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Strict size constraints for packet envelopes across all rendering environments */
.topology-packet-layer svg,
.packet-envelope,
.packet-msg svg {
  width: 16px !important;
  height: 12px !important;
  max-width: 16px !important;
  max-height: 12px !important;
  display: block !important;
}

.topology-showcase-card,
.topology-showcase-card:hover,
.topology-showcase-card:focus,
.topology-showcase-card:active {
  transform: none !important;
}

/* ==========================================================================
   SAIDUL ISLAM - SIGNATURE BESPOKE EXECUTIVE & CYBER-ZEN OBSIDIAN PORTFOLIO
   Award-Winning Bento Grid, Luminescent Glassmorphism & Neon Cyber Aesthetics
   Colors: Cyber Cyan (#00f5d4), Sakura Rose (#fb7185), Indigo Violet (#818cf8), Emerald (#10b981), Amber Gold (#f59e0b)
   Background: Deep Obsidian Void (#020408) with Multi-Spectral Aurora Lighting
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   1. COLOR VARIABLES & THEME TOKENS
   ========================================================================== */

/* Default Dark Mode (Deep Navy/Slate #0B0F17 & Cyber Luminescence) */
html.dark,
:root {
  --bg-deep: #0b0f17;
  --bg-surface: #0f172a;
  --bg-section: #090d16;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-hover: rgba(22, 33, 62, 0.92);

  --primary: #00f5d4;
  --primary-hover: #00f0ff;
  --primary-glow: rgba(0, 245, 212, 0.50);
  --primary-glow-subtle: rgba(0, 245, 212, 0.18);
  
  --accent-cyan: #00f5d4;
  --accent-cyan-glow: rgba(0, 245, 212, 0.45);
  --accent-sakura: #fb7185;
  --accent-rose: #f43f5e;
  --accent-rose-glow: rgba(244, 63, 94, 0.40);
  --accent-indigo: #818cf8;
  --accent-violet: #a855f7;
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.40);
  --accent-gold: #f59e0b;
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.40);

  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glass-hover: rgba(255, 119, 0, 0.70);
  --border-glass-active: rgba(251, 113, 133, 0.65);

  --text-heading: #ffffff;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --nav-bg: rgba(11, 15, 23, 0.88);
  --nav-border: rgba(255, 255, 255, 0.14);
  --card-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 0 rgba(255, 255, 255, 0.16);
  --card-shadow-hover: 0 25px 60px -10px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 119, 0, 0.45), 0 0 70px rgba(255, 119, 0, 0.20), inset 0 1px 0 0 rgba(255, 119, 0, 0.65);
  --grid-line: rgba(255, 255, 255, 0.035);
}

/* Light Mode (Clean Slate Backdrop #F8FAFC, Elevated Shadows & High-Contrast) */
html:not(.dark) {
  --bg-deep: #f8fafc;
  --bg-surface: #ffffff;
  --bg-section: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-hover: #ffffff;

  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-glow: rgba(2, 132, 199, 0.35);
  --primary-glow-subtle: rgba(2, 132, 199, 0.12);
  
  --accent-cyan: #0284c7;
  --accent-cyan-glow: rgba(2, 132, 199, 0.3);
  --accent-sakura: #e11d48;
  --accent-rose: #e11d48;
  --accent-rose-glow: rgba(225, 29, 72, 0.25);
  --accent-indigo: #4f46e5;
  --accent-violet: #7c3aed;
  --accent-emerald: #059669;
  --accent-emerald-glow: rgba(5, 150, 105, 0.25);
  --accent-gold: #d97706;
  --accent-amber: #d97706;
  --accent-amber-glow: rgba(217, 119, 6, 0.25);

  --border-glass: rgba(203, 213, 225, 0.90);
  --border-glass-hover: rgba(234, 88, 12, 0.80);
  --border-glass-active: rgba(225, 29, 72, 0.6);

  --text-heading: #0f172a;
  --text-main: #1e293b;
  --text-muted: #475569;
  --text-dim: #64748b;

  --nav-bg: rgba(255, 255, 255, 0.94);
  --nav-border: rgba(203, 213, 225, 0.9);
  --card-shadow: 0 12px 32px -5px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04), inset 0 1px 0 0 rgba(255, 255, 255, 0.95);
  --card-shadow-hover: 0 20px 45px -10px rgba(234, 88, 12, 0.28), 0 0 30px rgba(249, 115, 22, 0.25), inset 0 1px 0 0 rgba(249, 115, 22, 0.6);
  --grid-line: rgba(15, 23, 42, 0.06);
}

/* Custom Selection Highlighting */
::selection {
  background: rgba(0, 245, 212, 0.45) !important;
  color: #ffffff !important;
}

html:not(.dark) ::selection {
  background: #bae6fd !important;
  color: #0369a1 !important;
}

/* ==========================================================================
   2. CORE BASE & AMBIENT AURORA BACKGROUND SYSTEM
   ========================================================================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  transition: background-color 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

/* Deep Space Aurora Multi-Spectral Lighting */
.aurora-bg {
  background: 
    radial-gradient(ellipse 65% 45% at 50% -10%, rgba(0, 245, 212, 0.16), transparent 75%),
    radial-gradient(circle 600px at 90% 15%, rgba(251, 113, 133, 0.14), transparent 70%),
    radial-gradient(circle 500px at 10% 55%, rgba(129, 140, 248, 0.12), transparent 70%),
    radial-gradient(circle 700px at 80% 85%, rgba(16, 185, 129, 0.10), transparent 75%),
    radial-gradient(circle 450px at 20% 90%, rgba(245, 158, 11, 0.08), transparent 70%);
  filter: blur(55px);
  will-change: transform;
}

html:not(.dark) .aurora-bg {
  background: 
    radial-gradient(ellipse 70% 40% at 50% -10%, rgba(2, 132, 199, 0.09), transparent 70%),
    radial-gradient(circle 500px at 90% 20%, rgba(225, 29, 72, 0.06), transparent 60%),
    radial-gradient(circle 500px at 10% 70%, rgba(79, 70, 229, 0.06), transparent 60%);
  filter: blur(40px);
}

/* Dynamic Interactive Mouse Spotlight */
#mouse-glow-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(750px circle at var(--mouse-x, 50vw) var(--mouse-y, 30vh), rgba(0, 245, 212, 0.075), transparent 65%);
  transition: background 0.12s ease-out;
}

html:not(.dark) #mouse-glow-mesh {
  background: radial-gradient(600px circle at var(--mouse-x, 50vw) var(--mouse-y, 30vh), rgba(2, 132, 199, 0.05), transparent 60%);
}

/* Cyber Matrix Grid */
.grid-matrix {
  background-size: 44px 44px;
  background-image: 
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 90% 75% at 50% 35%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 35%, black 40%, transparent 100%);
}

/* ==========================================================================
   3. SIGNATURE FLOATING CYBER-GLASS NAVBAR (RESPONSIVE & COMPACT)
   ========================================================================== */
.portfolio-navbar-capsule {
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--nav-border);
  border-radius: 9999px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

html:not(.dark) .portfolio-navbar-capsule {
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.10), 0 0 0 1px rgba(226, 232, 240, 0.9), inset 0 1px 0 0 rgba(255, 255, 255, 0.95);
}

.portfolio-navbar-capsule:hover {
  border-color: rgba(0, 245, 212, 0.40);
  box-shadow: 0 20px 50px -10px rgba(0, 245, 212, 0.25), 0 0 25px rgba(251, 113, 133, 0.15), inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
}

/* Monogram Logo Brand Badge */
.nav-brand-badge {
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.20) 0%, rgba(251, 113, 133, 0.15) 100%);
  border: 1px solid rgba(0, 245, 212, 0.45);
  color: var(--primary);
  box-shadow: 0 0 18px rgba(0, 245, 212, 0.30);
  transition: all 0.3s ease;
}

.group:hover .nav-brand-badge {
  border-color: #00f5d4;
  box-shadow: 0 0 25px rgba(0, 245, 212, 0.6);
  transform: scale(1.06) rotate(6deg);
}

/* Desktop Navigation Link Pills */
.nav-link-pill {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.4rem 0.7rem;
  border-radius: 9999px;
  letter-spacing: -0.01em;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-link-pill:hover {
  color: #ff9900 !important;
  background: rgba(255, 119, 0, 0.14);
  border-color: rgba(255, 119, 0, 0.45);
  box-shadow: 0 0 16px rgba(255, 119, 0, 0.3);
}

html:not(.dark) .nav-link-pill:hover {
  color: #ea580c !important;
  background: rgba(234, 88, 12, 0.10);
  border-color: rgba(234, 88, 12, 0.35);
  box-shadow: 0 0 12px rgba(234, 88, 12, 0.2);
}

.nav-link-pill.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.30), rgba(251, 113, 133, 0.20));
  border: 1px solid rgba(0, 245, 212, 0.50);
  box-shadow: 0 0 16px rgba(0, 245, 212, 0.35);
}

html:not(.dark) .nav-link-pill.active {
  color: var(--primary);
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(2, 132, 199, 0.35);
}

/* Navbar Action Buttons */
.nav-action-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.25s ease;
}

.nav-action-btn:hover {
  background: rgba(255, 119, 0, 0.15);
  border-color: rgba(255, 119, 0, 0.65);
  box-shadow: 0 0 20px rgba(255, 119, 0, 0.4);
  transform: translateY(-1px);
}

html:not(.dark) .nav-action-btn {
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.8);
}

html:not(.dark) .nav-action-btn:hover {
  background: #ffffff;
  border-color: #ea580c;
  box-shadow: 0 0 15px rgba(234, 88, 12, 0.3);
}

/* CV Button */
.nav-cv-btn {
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.15), rgba(129, 140, 248, 0.12));
  border: 1px solid rgba(0, 245, 212, 0.40);
  color: #f8fafc;
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.15);
}

.nav-cv-btn:hover {
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.30), rgba(251, 113, 133, 0.20));
  border-color: #00f5d4;
  color: #ffffff;
  box-shadow: 0 0 25px rgba(0, 245, 212, 0.40);
  transform: translateY(-1px);
}

html:not(.dark) .nav-cv-btn {
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: var(--primary);
}

/* Contact Button (Primary Luminous CTA) */
.nav-contact-btn {
  background: linear-gradient(135deg, #00f5d4 0%, #0284c7 100%);
  color: #020408;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow: 0 6px 20px -2px rgba(0, 245, 212, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.50);
}

.nav-contact-btn:hover {
  background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 100%);
  box-shadow: 0 8px 30px -2px rgba(0, 245, 212, 0.75), 0 0 25px rgba(251, 113, 133, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.70);
  transform: translateY(-1.5px) scale(1.02);
}

/* Signature Cyan Button (Used in Hero & Mobile) */
.btn-signature-cyan {
  background: linear-gradient(135deg, #00f5d4 0%, #00d2ff 50%, #0284c7 100%);
  color: #020408 !important;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.40);
  box-shadow: 0 8px 25px -4px rgba(0, 245, 212, 0.60), 0 0 20px rgba(0, 245, 212, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.60);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-signature-cyan:hover {
  background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 100%);
  box-shadow: 0 12px 35px -4px rgba(0, 245, 212, 0.85), 0 0 35px rgba(251, 113, 133, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.80);
  transform: translateY(-2px) scale(1.02);
}

/* Ghost Glass Button */
.btn-ghost-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  color: #f1f5f9;
  transition: all 0.3s ease;
}

.btn-ghost-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 25px rgba(0, 245, 212, 0.25);
  transform: translateY(-2px);
}

html:not(.dark) .btn-ghost-glass {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.8);
  color: #1e293b;
}

/* ==========================================================================
   4. AWARD-WINNING BENTO GRID & LUMINESCENT CARDS
   ========================================================================== */
.bento-card,
.competency-card,
.custom-glass-card,
.erp-card,
.network-card,
.stat-card,
.experience-card,
.glass-panel {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-glass);
  box-shadow: var(--card-shadow);
  border-radius: 1.25rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

/* Top Specular Razor Highlight Bar */
.bento-card::before,
.competency-card::before,
.custom-glass-card::before,
.erp-card::before,
.network-card::before,
.experience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.28) 50%, transparent 100%);
  opacity: 0.85;
  transition: opacity 0.35s ease, background 0.35s ease;
  pointer-events: none;
  z-index: 2;
}

.bento-card:hover,
.competency-card:hover,
.custom-glass-card:hover,
.erp-card:hover,
.network-card:hover,
.stat-card:hover,
.experience-card:hover {
  border-color: var(--border-glass-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}

.bento-card:hover::before,
.competency-card:hover::before,
.custom-glass-card:hover::before,
.erp-card:hover::before,
.network-card:hover::before,
.experience-card:hover::before {
  opacity: 1;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 119, 0, 0.95) 50%, transparent 100%);
}

/* ==========================================================================
   5. HEADINGS, GRADIENT TYPOGRAPHY & ANIMATIONS
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-heading);
  letter-spacing: -0.025em;
  font-weight: 800;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #00f5d4 0%, #38bdf8 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html:not(.dark) .text-gradient-cyan {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-sakura {
  background: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-emerald {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Floating Telemetry Badge Animations */
@keyframes float1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(8px) rotate(-1deg); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-6px) scale(1.02); }
}

@keyframes orbitSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.animate-float-1 { animation: float1 5s ease-in-out infinite; }
.animate-float-2 { animation: float2 6s ease-in-out infinite 1s; }
.animate-float-3 { animation: float3 5.5s ease-in-out infinite 0.5s; }
.animate-orbit { animation: orbitSpin 30s linear infinite; }

/* ==========================================================================
   6. ERP INTERACTIVE MODULES & SYSTEM ARCHITECTURE
   ========================================================================== */
.erp-tab-btn {
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.875rem;
  border: 1px solid transparent;
  color: var(--text-muted);
  background: transparent;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.erp-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

html:not(.dark) .erp-tab-btn:hover {
  color: var(--primary);
  background: rgba(2, 132, 199, 0.08);
}

.erp-tab-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.35) 0%, rgba(251, 113, 133, 0.20) 100%);
  border: 1px solid rgba(0, 245, 212, 0.55);
  box-shadow: 0 4px 20px -2px rgba(0, 245, 212, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

html:not(.dark) .erp-tab-btn.active {
  color: var(--primary);
  background: rgba(2, 132, 199, 0.12);
  border-color: rgba(2, 132, 199, 0.40);
}

/* ERP Feature List Check Items */
.erp-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
}

.erp-feature-item:hover {
  background: rgba(255, 119, 0, 0.12);
  border-color: rgba(255, 119, 0, 0.45);
  box-shadow: 0 0 15px rgba(255, 119, 0, 0.25);
  transform: translateX(4px);
}

/* ==========================================================================
   7. FUTURISTIC NETWORK TOPOLOGY & CISCO PACKET TRACER SIMULATION
   ========================================================================== */
.network-node {
  background: var(--bg-card);
  border: 1px solid rgba(0, 245, 212, 0.25);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.network-node:hover {
  border-color: #ff7700 !important;
  box-shadow: 0 0 35px rgba(255, 119, 0, 0.5), 0 0 70px rgba(255, 119, 0, 0.2) !important;
  transform: scale(1.02);
}

.network-pulse-live {
  position: relative;
}

.network-pulse-live::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.45);
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Stable Hover for Large Interactive Topology Showcase (Preserves Orange Glow without Shaking) */
.topology-showcase-card,
.topology-showcase-card:hover {
  transform: none !important;
}

.topology-stage img,
.topology-stage:hover img {
  transform: none !important;
}

/* Cisco Packet Tracer Animated Flow System */
.topology-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 546;
  overflow: hidden;
  background: #05070c;
  border-radius: 1rem;
}

.topology-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay Layer for Animated Packets & Beacons */
.topology-packet-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

/* Base Packet Styling - Glowing Laser Data Packet & Message Envelopes */
.packet {
  position: absolute;
  width: 13px;
  height: 9.5px;
  pointer-events: none;
  z-index: 15;
  transform: translate(-50%, -50%);
  will-change: top, left, opacity;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

/* Cisco Packet Tracer Simulation Message Envelope Box (PDU Packet) */
.packet-msg {
  width: 14px;
  height: 10px;
  border-radius: 1.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .packet-msg {
    width: 17px;
    height: 12px;
  }
}

.packet-envelope {
  width: 100%;
  height: 100%;
  display: block;
}

/* Soft, Non-Glare Packet Styling (Gentle light glow for realistic simulation) */
.packet-wan {
  background: transparent;
  color: #38bdf8;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 3px rgba(56, 189, 248, 0.45));
}

.packet-server {
  background: transparent;
  color: #fbbf24;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 3px rgba(251, 191, 36, 0.45));
}

.packet-vpn {
  background: transparent;
  color: #34d399;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 3px rgba(52, 211, 153, 0.45));
}

.packet-isp {
  background: transparent;
  color: #818cf8;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 3px rgba(129, 140, 248, 0.45));
}

.packet-cyan {
  background: transparent;
  color: #38bdf8;
  filter: drop-shadow(0 0 3px rgba(56, 189, 248, 0.45));
}

.packet-magenta {
  background: transparent;
  color: #f472b6;
  filter: drop-shadow(0 0 3px rgba(244, 114, 182, 0.45));
}

.packet-yellow {
  background: transparent;
  color: #fbbf24;
  filter: drop-shadow(0 0 3px rgba(251, 191, 36, 0.45));
}

.packet-emerald {
  background: transparent;
  color: #34d399;
  filter: drop-shadow(0 0 3px rgba(52, 211, 153, 0.45));
}

/* Cisco Packet Tracer Port Activity LED System (Fast Live Blinking Link Lights) */
.port-led {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 14;
  transform: translate(-50%, -50%);
  animation: port-led-blink 0.28s infinite alternate ease-in-out;
}

@media (min-width: 768px) {
  .port-led {
    width: 6.5px;
    height: 6.5px;
  }
}

.port-led-green {
  background: #39ff14;
  box-shadow: 0 0 4px #39ff14, 0 0 8px rgba(57, 255, 20, 0.9);
}

.port-led-amber {
  background: #ffaa00;
  box-shadow: 0 0 4px #ffaa00, 0 0 8px rgba(255, 170, 0, 0.9);
}

@keyframes port-led-blink {
  0% {
    opacity: 0.18;
    transform: translate(-50%, -50%) scale(0.7);
    filter: brightness(0.6);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
    filter: brightness(1.5);
  }
  100% {
    opacity: 0.35;
    transform: translate(-50%, -50%) scale(0.85);
  }
}

/* Live ICMP Ping Terminal Console Styling */
.ping-terminal-container {
  background: #030712;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 245, 212, 0.05);
}

#ping-terminal-body::-webkit-scrollbar {
  width: 5px;
}

#ping-terminal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

#ping-terminal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

#ping-terminal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 204, 0.4);
}

.ping-new-line {
  animation: pingLineFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pingLineFade {
  from {
    opacity: 0;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Router & Core Switch Pulsing Beacons */
.packet-node-beacon {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 12;
}

.packet-node-beacon::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.95;
  box-shadow: 0 0 8px currentColor;
}

.packet-node-beacon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  animation: packet-beacon-pulse 2.2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes packet-beacon-pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  60% { transform: scale(2.0); opacity: 0.2; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Router Beacons Color Themes */
.beacon-cyan { color: #00ffcc; }
.beacon-emerald { color: #00ff88; }
.beacon-yellow { color: #ffcc00; }
.beacon-magenta { color: #ff0055; }

/* ==========================================================================
   ENTERPRISE NETWORKING PROJECT #7 - PRECISION PACKET MOTION KEYFRAMES
   Calculated with distance-proportional velocity for butter-smooth travel
   ========================================================================== */

@keyframes flow-p7-wan-fwd {
  0.0% { left: 10.5%; top: 7.5%; opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  6.8% { left: 15.2%; top: 12%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  21.5% { left: 26.2%; top: 18.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  35.2% { left: 34.8%; top: 30.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  45.8% { left: 42.8%; top: 34.2%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  56.2% { left: 50.8%; top: 31%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  69.9% { left: 57.5%; top: 15.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  87.3% { left: 69.5%; top: 27.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100.0% { left: 78.5%; top: 19.5%; opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
}

@keyframes flow-p7-wan-rev {
  0.0% { left: 78.5%; top: 19.5%; opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  12.7% { left: 69.5%; top: 27.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  30.1% { left: 57.5%; top: 15.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  43.8% { left: 50.8%; top: 31%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  54.2% { left: 42.8%; top: 34.2%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  64.8% { left: 34.8%; top: 30.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  78.5% { left: 26.2%; top: 18.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  93.2% { left: 15.2%; top: 12%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100.0% { left: 10.5%; top: 7.5%; opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
}

@keyframes flow-p7-srv-fwd {
  0.0% { left: 11%; top: 55.5%; opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  8.7% { left: 15.5%; top: 57%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  34.3% { left: 28.8%; top: 53.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  60.3% { left: 34.8%; top: 30.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  84.4% { left: 39.5%; top: 52.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100.0% { left: 45.2%; top: 63.5%; opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
}

@keyframes flow-p7-srv-rev {
  0.0% { left: 45.2%; top: 63.5%; opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  15.6% { left: 39.5%; top: 52.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  39.7% { left: 34.8%; top: 30.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  65.7% { left: 28.8%; top: 53.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  91.3% { left: 15.5%; top: 57%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100.0% { left: 11%; top: 55.5%; opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
}

@keyframes flow-p7-srvbr-fwd {
  0.0% { left: 89.5%; top: 53%; opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  24.1% { left: 69.8%; top: 59.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  44.5% { left: 53.2%; top: 52.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  58.6% { left: 50.8%; top: 31%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  68.5% { left: 42.8%; top: 34.2%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  78.4% { left: 34.8%; top: 30.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  93.6% { left: 39.5%; top: 52.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100.0% { left: 37.8%; top: 62%; opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
}

@keyframes flow-p7-srvbr-rev {
  0.0% { left: 37.8%; top: 62%; opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  6.4% { left: 39.5%; top: 52.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  21.6% { left: 34.8%; top: 30.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  31.5% { left: 42.8%; top: 34.2%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  41.4% { left: 50.8%; top: 31%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  55.5% { left: 53.2%; top: 52.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  75.9% { left: 69.8%; top: 59.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100.0% { left: 89.5%; top: 53%; opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
}

@keyframes flow-p7-isp-fwd {
  0.0% { left: 10.5%; top: 22%; opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  6.3% { left: 15.5%; top: 26.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  19.4% { left: 26.2%; top: 18.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  31.5% { left: 34.8%; top: 30.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  42.6% { left: 36.8%; top: 12.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  62.1% { left: 50.8%; top: 31%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  74.2% { left: 57.5%; top: 15.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  87.9% { left: 69.5%; top: 12.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100.0% { left: 79.5%; top: 5.5%; opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
}

@keyframes flow-p7-isp-rev {
  0.0% { left: 79.5%; top: 5.5%; opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  12.1% { left: 69.5%; top: 12.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  25.8% { left: 57.5%; top: 15.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  37.9% { left: 50.8%; top: 31%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  57.4% { left: 36.8%; top: 12.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  68.5% { left: 34.8%; top: 30.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  80.6% { left: 26.2%; top: 18.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  93.7% { left: 15.5%; top: 26.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100.0% { left: 10.5%; top: 22%; opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
}


/* Accessibility: Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .packet {
    animation: none !important;
    opacity: 0.25 !important;
  }
  .packet-node-beacon::after {
    animation: none !important;
  }
}

/* ==========================================================================
   8. MOBILE APPS SHOWCASE & DEVICE MOCKUPS
   ========================================================================== */
.app-device-frame {
  position: relative;
  background: #020617;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-radius: 2.25rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 245, 212, 0.25);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-device-frame:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #00f5d4;
  box-shadow: 0 35px 80px -20px rgba(0, 245, 212, 0.45), 0 0 45px rgba(251, 113, 133, 0.35);
}

/* ==========================================================================
   9. EXECUTIVE S-CURVE ANIMATED LASER TIMELINE & STEP PROGRESSION SYSTEM
   ========================================================================== */
.experience-vertical-timeline {
  position: relative;
  width: 100%;
}

.experience-snake-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  overflow: visible;
}

/* Animated Flowing Laser Pulse Light Beam */
.animated-laser-beam {
  stroke-dasharray: 220 1400;
  stroke-dashoffset: 1620;
  animation: laserPulseFlow 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Fast Data Flow Filament Pulse */
.animated-laser-dots {
  stroke-dasharray: 10 25;
  stroke-dashoffset: 1000;
  animation: laserDotsFlow 20s linear infinite;
}

@keyframes laserDotsFlow {
  0% {
    stroke-dashoffset: 1000;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes laserPulseFlow {
  0% {
    stroke-dashoffset: 1620;
    opacity: 0.8;
  }
  35% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.8;
  }
}

/* Step Milestone Numbered Node Orb */
.step-milestone-node {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.25) 0%, rgba(129, 140, 248, 0.20) 100%);
  border: 2px solid var(--primary);
  box-shadow: 0 0 25px rgba(0, 245, 212, 0.6), inset 0 0 12px rgba(0, 245, 212, 0.3);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 900;
  font-size: 0.8125rem;
  color: #ffffff;
  z-index: 25;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.step-milestone-node::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  border: 1px dashed rgba(0, 245, 212, 0.5);
  animation: orbitSpin 12s linear infinite;
  pointer-events: none;
}

.step-milestone-node.is-active,
.group:hover .step-milestone-node {
  transform: scale(1.22);
  border-color: #00f5d4;
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.45) 0%, rgba(251, 113, 133, 0.35) 100%);
  box-shadow: 0 0 40px rgba(0, 245, 212, 0.95), 0 0 70px rgba(0, 245, 212, 0.45), inset 0 0 20px rgba(255, 255, 255, 0.6);
}

.step-milestone-node.is-active::after {
  border-color: #00f5d4;
  border-width: 1.5px;
  animation-duration: 4s;
}

/* Step Active Card Aura Glow */
.experience-step-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.experience-step-card.is-active-step {
  border-color: rgba(0, 245, 212, 0.7) !important;
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.8), 0 0 45px rgba(0, 245, 212, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-4px);
}

.experience-step-card.is-active-step.theme-purple {
  border-color: rgba(168, 85, 247, 0.7) !important;
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.8), 0 0 45px rgba(168, 85, 247, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.experience-step-card.is-active-step.theme-cyan {
  border-color: rgba(0, 245, 212, 0.7) !important;
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.8), 0 0 45px rgba(0, 245, 212, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* Step Progression Chip */
.step-phase-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
  cursor: pointer;
}

.step-phase-pill.active {
  background: rgba(0, 245, 212, 0.14);
  border-color: rgba(0, 245, 212, 0.55);
  color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.35);
}

.step-phase-pill:hover {
  background: rgba(255, 119, 0, 0.15) !important;
  border-color: rgba(255, 119, 0, 0.65) !important;
  color: #ff9900 !important;
  box-shadow: 0 0 22px rgba(255, 119, 0, 0.45) !important;
  transform: translateY(-1px);
}

/* Glowing Photon Comet Laser Head */
.laser-energy-comet {
  filter: drop-shadow(0 0 12px #00f5d4) drop-shadow(0 0 24px #00f5d4);
  transition: transform 0.05s linear;
}

/* Light Mode Overrides for Laser S-Curve Track & Step Highlights */
html:not(.dark) #snake-laser-base-path {
  stroke: rgba(2, 132, 199, 0.14) !important;
}

html:not(.dark) #snake-laser-glow-path,
html:not(.dark) #snake-laser-core-path {
  stroke: url(#snake-laser-gradient-light) !important;
}

html:not(.dark) .animated-laser-beam {
  stroke: #0284c7 !important;
  filter: drop-shadow(0 0 10px rgba(2, 132, 199, 0.9)) !important;
}

html:not(.dark) .laser-energy-comet {
  filter: drop-shadow(0 0 12px #0284c7) drop-shadow(0 0 24px #0284c7);
}

html:not(.dark) .step-milestone-node {
  background: #ffffff !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.4), inset 0 0 8px rgba(2, 132, 199, 0.15) !important;
}

html:not(.dark) .step-milestone-node::after {
  border-color: rgba(2, 132, 199, 0.45) !important;
}

html:not(.dark) .step-milestone-node.is-active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0369a1 !important;
  box-shadow: 0 0 35px rgba(2, 132, 199, 0.7), inset 0 0 12px rgba(255, 255, 255, 0.4) !important;
}

html:not(.dark) .experience-step-card.is-active-step {
  border-color: #0284c7 !important;
  box-shadow: 0 20px 40px -10px rgba(2, 132, 199, 0.25), 0 0 0 1px #0284c7 !important;
}

html:not(.dark) .step-phase-pill {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

html:not(.dark) .step-phase-pill.active,
html:not(.dark) .step-phase-pill:hover {
  background: rgba(2, 132, 199, 0.10) !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.25) !important;
}

/* ==========================================================================
   10. MODALS, A4 PRINT-ACCURATE RESUME & BIO-DATA
   ========================================================================== */
.modal-backdrop-blur {
  background: rgba(2, 4, 8, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Print Accurate A4 Resume Sheet */
.resume-sheet-a4 {
  width: 100%;
  max-width: 210mm;
  min-height: 297mm;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
  margin: 0 auto;
}

/* ==========================================================================
   11. CUSTOM CURSOR, GLOBAL CANVAS & LIGHT-MODE ENHANCEMENT ENGINE
   ========================================================================== */

/* Full-Screen Global 3D Mesh Canvas Container */
#global-3d-canvas-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.85;
}

html:not(.dark) #global-3d-canvas-container {
  opacity: 0.70;
}

/* Global Interactive Mouse Particle Constellation Canvas */
#cursor-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9990;
}

/* Custom Cursor Dot */
#custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 7px;
  height: 7px;
  background: #00f5d4;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 10px #00f5d4, 0 0 20px #00f5d4;
  transition: transform 0.04s ease-out, background 0.3s;
}

html:not(.dark) #custom-cursor-dot {
  background: #0284c7;
  box-shadow: 0 0 10px #0284c7;
}

/* Custom Cursor Trailing Magnetic Ring */
#custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(0, 245, 212, 0.65);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.12s ease-out, width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

html:not(.dark) #custom-cursor-ring {
  border-color: rgba(2, 132, 199, 0.65);
}

body.cursor-hover #custom-cursor-ring {
  transform: scale(1.65);
  border-color: #ff7700 !important;
  background: rgba(255, 119, 0, 0.16) !important;
  box-shadow: 0 0 25px rgba(255, 119, 0, 0.85), 0 0 50px rgba(255, 119, 0, 0.45), inset 0 0 12px rgba(255, 119, 0, 0.35) !important;
}

body.cursor-hover #custom-cursor-dot {
  background: #ff8800 !important;
  box-shadow: 0 0 14px #ff7700, 0 0 28px #ff7700 !important;
}

html:not(.dark) body.cursor-hover #custom-cursor-ring {
  border-color: #ea580c !important;
  background: rgba(234, 88, 12, 0.14) !important;
  box-shadow: 0 0 20px rgba(234, 88, 12, 0.6), 0 0 35px rgba(249, 115, 22, 0.35) !important;
}

html:not(.dark) body.cursor-hover #custom-cursor-dot {
  background: #ea580c !important;
  box-shadow: 0 0 12px #ea580c !important;
}

/* Hide default cursor on desktop when interactive cursor is active */
@media (pointer: fine) {
  body {
    cursor: default;
  }
}

/* ==========================================================================
   12. ULTRA-POLISHED HIGH-CONTRAST LIGHT MODE TRANSFORMATION SYSTEM
   ========================================================================== */
html:not(.dark) {
  color-scheme: light;
}

html:not(.dark) body {
  background-color: #f8fafc !important;
  color: #1e293b !important;
}

/* 1. Global Headings & Base Typography in Light Mode */
html:not(.dark) h1, 
html:not(.dark) h2, 
html:not(.dark) h3, 
html:not(.dark) h4, 
html:not(.dark) h5, 
html:not(.dark) h6,
html:not(.dark) .font-heading {
  color: #0f172a !important;
}

html:not(.dark) p {
  color: #334155;
}

/* 2. Text Color Overrides for High Contrast (AAA Compliance) */
html:not(.dark) .text-white {
  color: #0f172a !important;
}

html:not(.dark) .text-slate-100,
html:not(.dark) .text-slate-200 {
  color: #1e293b !important;
}

html:not(.dark) .text-slate-300 {
  color: #334155 !important;
}

html:not(.dark) .text-slate-400 {
  color: #475569 !important;
}

html:not(.dark) .text-slate-500 {
  color: #64748b !important;
}

/* 3. Neon Accent Colors Mapped to Deep Rich Colors in Light Mode */
/* Cyan / Sky -> Deep Sapphire Blue */
html:not(.dark) .text-brand-cyan,
html:not(.dark) .text-accent-cyan,
html:not(.dark) .text-primary {
  color: #0284c7 !important;
}

html:not(.dark) .text-sky-400,
html:not(.dark) .text-sky-300 {
  color: #0369a1 !important;
}

/* Purple / Indigo -> Deep Royal Violet */
html:not(.dark) .text-brand-indigo,
html:not(.dark) .text-purple-400,
html:not(.dark) .text-purple-300,
html:not(.dark) .text-indigo-400 {
  color: #7e22ce !important;
}

/* Emerald -> Deep Forest Green */
html:not(.dark) .text-brand-emerald,
html:not(.dark) .text-emerald-400,
html:not(.dark) .text-emerald-300 {
  color: #047857 !important;
}

/* Amber / Gold -> Deep Warm Bronze */
html:not(.dark) .text-brand-amber,
html:not(.dark) .text-amber-400,
html:not(.dark) .text-amber-300,
html:not(.dark) .text-yellow-400 {
  color: #b45309 !important;
}

/* Sakura / Rose -> Deep Crimson Rose */
html:not(.dark) .text-brand-sakura,
html:not(.dark) .text-pink-400,
html:not(.dark) .text-pink-300,
html:not(.dark) .text-rose-400 {
  color: #be123c !important;
}

/* 4. Gradient Text Overrides for Light Mode */
html:not(.dark) .text-gradient-cyan,
html:not(.dark) .gradient-text-primary {
  background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

html:not(.dark) .gradient-text-sakura {
  background: linear-gradient(135deg, #be123c 0%, #9f1239 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

html:not(.dark) .gradient-text-gold {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

html:not(.dark) .gradient-text-emerald {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* 5. Light Mode Cards, Bento & Glass Containers */
html:not(.dark) .bento-card,
html:not(.dark) .competency-card,
html:not(.dark) .custom-glass-card,
html:not(.dark) .erp-card,
html:not(.dark) .network-card,
html:not(.dark) .network-node,
html:not(.dark) .stat-card,
html:not(.dark) .experience-card,
html:not(.dark) .glass-panel {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

html:not(.dark) .bento-card:hover,
html:not(.dark) .competency-card:hover,
html:not(.dark) .custom-glass-card:hover,
html:not(.dark) .erp-card:hover,
html:not(.dark) .network-card:hover,
html:not(.dark) .network-node:hover,
html:not(.dark) .stat-card:hover,
html:not(.dark) .experience-card:hover {
  background: #ffffff !important;
  border-color: #ea580c !important;
  box-shadow: 0 20px 45px -10px rgba(234, 88, 12, 0.28), 0 0 25px rgba(249, 115, 22, 0.25), 0 4px 14px rgba(15, 23, 42, 0.06) !important;
}

/* 6. Light Mode Badges, Chips, Pills & Tags */
html:not(.dark) .bg-white\/5,
html:not(.dark) .bg-white\/10,
html:not(.dark) .bg-white\/\[0\.04\],
html:not(.dark) .bg-white\/\[0\.03\] {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

html:not(.dark) .border-white\/5,
html:not(.dark) .border-white\/10,
html:not(.dark) .border-white\/15,
html:not(.dark) .border-white\/20,
html:not(.dark) .border-white\/30,
html:not(.dark) .border-white\/40 {
  border-color: #cbd5e1 !important;
}

/* Tinted Light Badges */
html:not(.dark) .bg-primary\/10,
html:not(.dark) .bg-primary\/15,
html:not(.dark) .bg-primary\/20,
html:not(.dark) .bg-brand-cyan\/10,
html:not(.dark) .bg-brand-cyan\/20,
html:not(.dark) .bg-accent-cyan\/10 {
  background-color: #e0f2fe !important;
  border-color: #7dd3fc !important;
  color: #0369a1 !important;
}

html:not(.dark) .bg-purple-500\/10,
html:not(.dark) .bg-purple-500\/15,
html:not(.dark) .bg-purple-500\/20,
html:not(.dark) .bg-brand-indigo\/15 {
  background-color: #f3e8ff !important;
  border-color: #d8b4fe !important;
  color: #7e22ce !important;
}

html:not(.dark) .bg-emerald-500\/10,
html:not(.dark) .bg-emerald-500\/15,
html:not(.dark) .bg-emerald-500\/20,
html:not(.dark) .bg-brand-emerald\/15 {
  background-color: #dcfce7 !important;
  border-color: #86efac !important;
  color: #047857 !important;
}

html:not(.dark) .bg-amber-500\/10,
html:not(.dark) .bg-amber-500\/15,
html:not(.dark) .bg-amber-500\/20 {
  background-color: #fef3c7 !important;
  border-color: #fcd34d !important;
  color: #b45309 !important;
}

html:not(.dark) .bg-pink-500\/10,
html:not(.dark) .bg-pink-500\/15,
html:not(.dark) .bg-pink-500\/20 {
  background-color: #ffe4e6 !important;
  border-color: #fda4af !important;
  color: #be123c !important;
}

/* 7. Icon Container Backgrounds in Light Mode */
html:not(.dark) .size-12.rounded-2xl,
html:not(.dark) .size-12.rounded-xl,
html:not(.dark) .size-11.rounded-xl,
html:not(.dark) .size-8.rounded-lg {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

/* 8. Promotion & Milestone Callout Boxes */
html:not(.dark) .p-3.rounded-xl.bg-emerald-500\/10 {
  background-color: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
}

html:not(.dark) .p-3.rounded-xl.bg-emerald-500\/10 p {
  color: #065f46 !important;
}

/* 9. Light Mode Navigation & Header */
html:not(.dark) .portfolio-navbar-capsule {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(203, 213, 225, 0.9) !important;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.9), inset 0 1px 0 0 rgba(255, 255, 255, 0.95) !important;
}

html:not(.dark) .nav-brand-title {
  color: #0f172a !important;
}

html:not(.dark) .nav-brand-subtitle {
  color: #475569 !important;
}

html:not(.dark) .nav-brand-badge {
  background: rgba(2, 132, 199, 0.10) !important;
  border-color: rgba(2, 132, 199, 0.35) !important;
  color: #0284c7 !important;
}

html:not(.dark) .nav-cv-btn {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}

html:not(.dark) .nav-cv-btn:hover {
  background: #ffffff !important;
  border-color: #ea580c !important;
  color: #ea580c !important;
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.25) !important;
}

html:not(.dark) .nav-action-btn {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

html:not(.dark) .nav-action-btn:hover {
  background: #ffffff !important;
  border-color: #ea580c !important;
  color: #ea580c !important;
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.25) !important;
}

html:not(.dark) .nav-contact-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 4px 15px -2px rgba(2, 132, 199, 0.4) !important;
}

html:not(.dark) .nav-contact-btn:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  border-color: #ea580c !important;
  box-shadow: 0 6px 20px -2px rgba(234, 88, 12, 0.45) !important;
}

html:not(.dark) .btn-signature-cyan {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 6px 20px -3px rgba(2, 132, 199, 0.4) !important;
}

/* 10. Light Mode Form Elements */
html:not(.dark) input,
html:not(.dark) textarea {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

html:not(.dark) input::placeholder,
html:not(.dark) textarea::placeholder {
  color: #94a3b8 !important;
}

html:not(.dark) input:focus,
html:not(.dark) textarea:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

/* 11. Light Mode Footer & Sections */
html:not(.dark) footer {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

/* 12. Light Mode Modals & Lightbox */
html:not(.dark) #bio-modal > div,
html:not(.dark) #resume-modal > div,
html:not(.dark) #lightbox-dialog-box {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25) !important;
  color: #0f172a !important;
}

html:not(.dark) #bio-modal .bg-\[\#06080e\],
html:not(.dark) #resume-modal .bg-\[\#05070e\] {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html:not(.dark) #mobile-nav-menu {
  background: rgba(255, 255, 255, 0.98) !important;
}

html:not(.dark) .mobile-nav-link {
  color: #0f172a !important;
}

html:not(.dark) .mobile-nav-link:hover {
  color: #0284c7 !important;
}

/* 13. Light Mode App Device Frame */
html:not(.dark) .app-device-frame {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.15) !important;
}

/* 14. Light Mode Timeline Laser Track & Nodes */
html:not(.dark) .timeline-track,
html:not(.dark) .timeline-laser-track {
  background: linear-gradient(180deg, #0284c7 0%, #4f46e5 50%, rgba(2, 132, 199, 0.15) 100%) !important;
}

html:not(.dark) .timeline-node-marker,
html:not(.dark) .timeline-node {
  background: #0284c7 !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.5) !important;
}

/* ==========================================================================
   13. CUSTOM MODERN SCROLLBAR & ACCESSIBILITY
   ========================================================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 245, 212, 0.25);
  border-radius: 9999px;
  border: 2px solid var(--bg-deep);
}

html:not(.dark) ::-webkit-scrollbar-thumb {
  background: rgba(2, 132, 199, 0.35);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 245, 212, 0.65);
}

html:not(.dark) ::-webkit-scrollbar-thumb:hover {
  background: rgba(2, 132, 199, 0.75);
}

/* Clean Focus Ring */
:focus-visible {
  outline: 2px solid #00f5d4;
  outline-offset: 2px;
}

html:not(.dark) :focus-visible {
  outline: 2px solid #0284c7;
}

/* ==========================================================================
   14. 2D CAT RUNNER ARCADE CABINET & MINI-GAME
   ========================================================================== */
.cat-game-cabinet {
  background: rgba(9, 13, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 245, 212, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-game-cabinet:hover {
  border-color: rgba(255, 119, 0, 0.55);
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.9), 0 0 45px rgba(255, 119, 0, 0.28), inset 0 1px 0 rgba(255, 119, 0, 0.45);
}

#cat-runner-canvas {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

/* Light Mode Overrides for Cat Runner */
html:not(.dark) .cat-game-cabinet {
  background: #ffffff !important;
  border: 1px solid rgba(203, 213, 225, 0.95) !important;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.9) !important;
}

html:not(.dark) #cat-runner-section h2 {
  color: #0f172a !important;
}

html:not(.dark) .cat-game-cabinet .bg-black\/40,
html:not(.dark) .cat-game-cabinet .bg-black\/50 {
  background-color: rgba(248, 250, 252, 0.95) !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

html:not(.dark) .cat-game-cabinet strong {
  color: #0f172a !important;
}

html:not(.dark) #cat-mute-btn {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

html:not(.dark) #cat-mute-btn:hover {
  border-color: #ea580c !important;
  color: #ea580c !important;
  background-color: #f1f5f9 !important;
}

/* ==========================================================================
   15. 2D MARS ROBOT ESCAPE ARCADE CABINET & UNLOCK SYSTEM
   ========================================================================== */
.robot-game-cabinet {
  background: rgba(13, 4, 7, 0.98);
  border: 1px solid rgba(249, 115, 22, 0.35);
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.96), 0 0 40px rgba(249, 115, 22, 0.22), inset 0 1px 0 rgba(249, 115, 22, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.robot-game-cabinet:hover {
  border-color: rgba(249, 115, 22, 0.75);
  box-shadow: 0 30px 75px -10px rgba(0, 0, 0, 0.98), 0 0 55px rgba(249, 115, 22, 0.4), inset 0 1px 0 rgba(249, 115, 22, 0.7);
}

#robot-escape-canvas {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

/* Light Mode Overrides for Robot Escape */
html:not(.dark) .robot-game-cabinet {
  background: #1c0703 !important;
  border: 1px solid rgba(234, 88, 12, 0.5) !important;
  box-shadow: 0 20px 50px -10px rgba(28, 7, 3, 0.35), 0 0 30px rgba(234, 88, 12, 0.25) !important;
}

html:not(.dark) #robot-escape-section h2 {
  color: #1c0703 !important;
}

html:not(.dark) #robot-mute-btn {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #f8fafc !important;
}

html:not(.dark) #robot-mute-btn:hover {
  border-color: #ea580c !important;
  color: #ea580c !important;
  background-color: rgba(255, 255, 255, 0.2) !important;
}

/* ==========================================================================
   16. 2D SPACE ESCAPE ARCADE CABINET & UNLOCK SYSTEM
   ========================================================================== */
.space-game-cabinet {
  background: rgba(3, 7, 18, 0.98);
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.95), 0 0 45px rgba(168, 85, 247, 0.22), inset 0 1px 0 rgba(168, 85, 247, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.space-game-cabinet:hover {
  border-color: rgba(168, 85, 247, 0.7);
  box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.98), 0 0 60px rgba(168, 85, 247, 0.4), inset 0 1px 0 rgba(168, 85, 247, 0.65);
}

#space-escape-canvas {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Light Mode Overrides for Space Escape & Arcade Hub */
html:not(.dark) .space-game-cabinet {
  background: #090d18 !important;
  border: 1px solid rgba(168, 85, 247, 0.55) !important;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.28), 0 0 35px rgba(168, 85, 247, 0.25) !important;
}

html:not(.dark) #space-escape-section h2 {
  color: #0f172a !important;
}

html:not(.dark) #space-mute-btn {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #f8fafc !important;
}

html:not(.dark) #space-mute-btn:hover {
  border-color: #a855f7 !important;
  color: #a855f7 !important;
  background-color: rgba(255, 255, 255, 0.2) !important;
}

html:not(.dark) .arcade-hub-card {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.06) !important;
}

html:not(.dark) .arcade-hub-card h4 {
  color: #0f172a !important;
}