/* ==========================================================================
   ALT DEV — HIGH-PERFORMANCE CREATIVE TECH PORTFOLIO
   Design System & Comprehensive Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ROOT VARIABLES & THEMES
   -------------------------------------------------------------------------- */
:root {
  /* Default Theme: Hyper Cyan (Cyberpunk Tech) */
  --theme-name: 'cyan';
  --bg: #060b14;
  --bg-rgb: 6, 11, 20;
  --bg-deep: #03060c;
  --surface: #0c1526;
  --surface-rgb: 12, 21, 38;
  --surface-alt: #132238;
  --card: rgba(12, 21, 38, 0.78);
  --card-hover: rgba(19, 34, 56, 0.9);
  
  --border: rgba(148, 163, 184, 0.16);
  --border-light: rgba(148, 163, 184, 0.28);
  --border-glow: rgba(94, 234, 212, 0.45);
  
  --primary: #5eead4;
  --primary-rgb: 94, 234, 212;
  --primary-glow: rgba(94, 234, 212, 0.3);
  --primary-dark: #0f766e;
  
  --secondary: #93c5fd;
  --secondary-rgb: 147, 197, 253;
  
  --accent: #f6b86b;
  --accent-rgb: 246, 184, 107;
  --accent-glow: rgba(246, 184, 107, 0.35);
  
  --success: #86efac;
  --success-rgb: 134, 239, 172;
  --danger: #f87171;
  --danger-rgb: 248, 113, 113;
  --warning: #fbbf24;
  
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --header-height: 72px;
  --hud-height: 38px;
}

/* Theme: Emerald Matrix */
body[data-theme="emerald"] {
  --theme-name: 'emerald';
  --bg: #030d09;
  --bg-rgb: 3, 13, 9;
  --bg-deep: #010604;
  --surface: #071c14;
  --surface-rgb: 7, 28, 20;
  --surface-alt: #0c2b20;
  --card: rgba(7, 28, 20, 0.8);
  --border: rgba(52, 211, 153, 0.16);
  --border-glow: rgba(52, 211, 153, 0.5);
  --primary: #34d399;
  --primary-rgb: 52, 211, 153;
  --primary-glow: rgba(52, 211, 153, 0.35);
  --primary-dark: #065f46;
  --secondary: #6ee7b7;
  --accent: #a7f3d0;
  --accent-rgb: 167, 243, 208;
}

/* Theme: Solar Flare Amber */
body[data-theme="amber"] {
  --theme-name: 'amber';
  --bg: #0d0803;
  --bg-rgb: 13, 8, 3;
  --bg-deep: #060401;
  --surface: #1f1408;
  --surface-rgb: 31, 20, 8;
  --surface-alt: #2e1d0c;
  --card: rgba(31, 20, 8, 0.8);
  --border: rgba(251, 191, 36, 0.16);
  --border-glow: rgba(251, 191, 36, 0.5);
  --primary: #fbbf24;
  --primary-rgb: 251, 191, 36;
  --primary-glow: rgba(251, 191, 36, 0.35);
  --primary-dark: #b45309;
  --secondary: #f97316;
  --accent: #fcd34d;
  --accent-rgb: 252, 211, 77;
}

/* Theme: Neon Violet */
body[data-theme="violet"] {
  --theme-name: 'violet';
  --bg: #0b0614;
  --bg-rgb: 11, 6, 20;
  --bg-deep: #05020a;
  --surface: #170d2b;
  --surface-rgb: 23, 13, 43;
  --surface-alt: #231442;
  --card: rgba(23, 13, 43, 0.8);
  --border: rgba(192, 132, 252, 0.18);
  --border-glow: rgba(192, 132, 252, 0.5);
  --primary: #c084fc;
  --primary-rgb: 192, 132, 252;
  --primary-glow: rgba(192, 132, 252, 0.35);
  --primary-dark: #6b21a8;
  --secondary: #e879f9;
  --accent: #38bdf8;
  --accent-rgb: 56, 189, 248;
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  line-height: 1.65;
  letter-spacing: -0.01em;
  transition: background-color 0.4s ease, color 0.4s ease;
  position: relative;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

::selection {
  background: var(--primary);
  color: var(--bg-deep);
}

/* Skip Link */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10002;
  transform: translateY(-160%);
  background: var(--primary);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* --------------------------------------------------------------------------
   3. BACKGROUND & CANVAS LAYER SYSTEM
   -------------------------------------------------------------------------- */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* 3D Cyber Perspective Grid */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--primary-rgb), 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  transform: perspective(850px) rotateX(62deg) translateY(30vh) scale(1.85);
  transform-origin: center bottom;
  opacity: 0.65;
  mask-image: linear-gradient(to top, black 20%, transparent 80%);
  -webkit-mask-image: linear-gradient(to top, black 20%, transparent 80%);
  animation: grid-drift 20s linear infinite;
}
@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 48px, 48px 0; }
}

/* Ambient Nebula Glow Orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  will-change: transform;
  transition: background 0.5s ease;
}
.orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--primary), transparent 70%);
  top: -120px;
  right: -100px;
  animation: floatOrb 22s ease-in-out infinite alternate;
}
.orb-2 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  bottom: 5vh;
  left: -80px;
  animation: floatOrb 26s ease-in-out infinite alternate-reverse;
}
@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -50px) scale(1.12); }
  100% { transform: translate(-30px, 30px) scale(0.95); }
}

/* Subtle CRT Scanline */
.scanline {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(255,255,255,0) 50%,
    rgba(var(--primary-rgb), 0.015) 50%,
    rgba(var(--primary-rgb), 0.015)
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 999;
  opacity: 0.65;
}

/* Top Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1002;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  box-shadow: 0 0 14px var(--primary);
  transition: width 0.05s linear;
}

/* --------------------------------------------------------------------------
   4. DUAL CURSOR SYSTEM (DESKTOP ONLY)
   -------------------------------------------------------------------------- */
.cursor {
  position: fixed;
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  transition: width 0.12s, height 0.12s, background-color 0.2s;
  mix-blend-mode: screen;
  box-shadow: 0 0 10px var(--primary);
}
.cursor-ring {
  position: fixed;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(var(--primary-rgb), 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.22s, height 0.22s, border-color 0.2s, background-color 0.2s;
}
body.cursor-active .cursor {
  width: 14px;
  height: 14px;
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent);
}
body.cursor-active .cursor-ring {
  width: 52px;
  height: 52px;
  border-color: rgba(var(--accent-rgb), 0.7);
  background: rgba(var(--accent-rgb), 0.08);
}

/* --------------------------------------------------------------------------
   5. LAYOUT WRAPPER & SECTION BASICS
   -------------------------------------------------------------------------- */
.wrapper {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}

section {
  padding: 105px 0;
  position: relative;
  scroll-margin-top: 100px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primary);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-label::before {
  content: '//';
  opacity: 0.5;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.section-title .grad {
  background: linear-gradient(110deg, #ffffff 20%, var(--primary) 75%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.6;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
  margin: 40px 0;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   6. FLOATING HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: all 0.3s ease;
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  background: rgba(var(--surface-rgb), 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(var(--primary-rgb), 0.05);
}
.header-scrolled .header-inner {
  background: rgba(var(--bg-deep), 0.95);
  border-color: rgba(var(--primary-rgb), 0.35);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65), 0 0 25px rgba(var(--primary-rgb), 0.1);
  padding: 8px 20px;
}

.logo {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.logo span { color: var(--accent); }
.logo-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  color: var(--primary);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s, text-shadow 0.2s;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}
.nav-links a.active {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  border-radius: 2px;
}

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

/* Audio Visualizer Spectrum Mini-Canvas in Header */
.audio-viz-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
#audioVizCanvas {
  width: 46px;
  height: 18px;
  display: block;
}

/* Audio synth toggle control */
.audio-toggle {
  background: rgba(var(--primary-rgb), 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.audio-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.audio-toggle svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}
.audio-toggle.active {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.12);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Theme Switcher Dropdown / Buttons */
.theme-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
}
.theme-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
}
.theme-dot:hover { transform: scale(1.25); }
.theme-dot.active {
  border-color: #fff;
  transform: scale(1.15);
  box-shadow: 0 0 8px currentColor;
}
.theme-dot.cyan { background: #5eead4; color: #5eead4; }
.theme-dot.emerald { background: #34d399; color: #34d399; }
.theme-dot.amber { background: #fbbf24; color: #fbbf24; }
.theme-dot.violet { background: #c084fc; color: #c084fc; }

/* ----------------------------------------------------------
   7. HERO SECTION & 3D HUD AVATAR
   ---------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 130px;
  padding-bottom: 60px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 50px;
  align-items: center;
  width: 100%;
}
.hero-content {
  min-width: 0;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-tag::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--primary);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(42px, 5.8vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}
.hero-title .grad {
  background: linear-gradient(110deg, #f8fafc 15%, var(--primary) 65%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--success);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-subtitle::before {
  content: '>';
  color: var(--text-muted);
}
#typewriterText {
  color: var(--text);
  font-weight: 500;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.65;
}
.hero-desc strong {
  color: var(--text);
  font-weight: 600;
}

/* Action Buttons */
.cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}
.btn-primary {
  background: var(--primary);
  color: var(--bg-deep);
  border-color: var(--primary);
  box-shadow: 0 8px 24px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px var(--primary-glow), 0 0 18px var(--primary);
  color: #000;
}
.btn-secondary {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.4);
}
.btn-secondary:hover {
  background: var(--accent);
  color: var(--bg-deep);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px var(--accent-glow);
}
.btn-ghost {
  background: rgba(var(--surface-rgb), 0.85);
  color: var(--text);
  border-color: var(--border-light);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.btn:active {
  transform: translateY(-1px) scale(0.98);
}
.btn-ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: translate(-50%, -50%) scale(0);
  animation: button-ripple 0.55s ease-out forwards;
  pointer-events: none;
}
@keyframes button-ripple {
  to { transform: translate(-50%, -50%) scale(18); opacity: 0; }
}

/* Hero Metrics */
.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  max-width: 600px;
}
.metric {
  display: grid;
  gap: 3px;
}
.metric strong {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--text);
  font-weight: 800;
}
.metric span {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* 3D HUD Avatar Card */
.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hud-frame {
  position: relative;
  width: 330px;
  height: 400px;
  padding: 12px;
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  background: rgba(var(--surface-rgb), 0.5);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-md);
  transition: transform 0.15s ease-out, border-color 0.3s;
  transform-style: preserve-3d;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(var(--primary-rgb), 0.08);
}
.hud-frame:hover {
  border-color: var(--primary);
}
/* HUD Corner Brackets */
.hud-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--primary);
  border-style: solid;
  pointer-events: none;
}
.hc-tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.hc-tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.hc-bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.hc-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.photo-inner {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  position: relative;
  background: #000;
  transform: translateZ(25px);
}
.photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(35%) contrast(1.1) brightness(0.95);
  transition: filter 0.5s ease, transform 0.5s ease;
}
.hud-frame:hover .photo-inner img {
  filter: grayscale(0%) contrast(1.05) brightness(1.02);
  transform: scale(1.04);
}
.photo-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(var(--primary-rgb), 0.18) 50%,
    transparent 100%
  );
  animation: scanHUD 3.8s linear infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes scanHUD {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.hud-tag {
  position: absolute;
  top: -28px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--primary);
  letter-spacing: 0.15em;
  opacity: 0.7;
}
.hud-coord {
  position: absolute;
  bottom: -28px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--primary);
  opacity: 0.7;
}
.hud-badge {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translate3d(-50%, 0, 35px);
  background: var(--surface-alt);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 7px 18px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.hud-badge .dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
}
.hud-badge strong {
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   8. LIVE ARCHITECTURE & TRAFFIC SIMULATOR ("CRAZY STUFF")
   -------------------------------------------------------------------------- */
.arch-sim-container {
  background: rgba(var(--surface-rgb), 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 34px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(var(--primary-rgb), 0.04);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.arch-sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}
.arch-sim-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.arch-sim-title span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(var(--primary-rgb), 0.25);
}
.arch-sim-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.sim-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  border: 1px solid var(--border);
  background: rgba(var(--surface-alt), 0.9);
  color: var(--text);
}
.sim-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.sim-btn.primary {
  background: rgba(var(--primary-rgb), 0.15);
  border-color: var(--primary);
  color: var(--primary);
}
.sim-btn.primary:hover {
  background: var(--primary);
  color: var(--bg-deep);
  box-shadow: 0 0 15px var(--primary-glow);
}
.sim-btn.danger {
  background: rgba(var(--danger-rgb), 0.15);
  border-color: var(--danger);
  color: var(--danger);
}
.sim-btn.danger:hover {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 0 15px rgba(var(--danger-rgb), 0.4);
}

/* Visual Node Graph */
.arch-graph {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  position: relative;
  padding: 30px 10px;
  align-items: center;
}
.arch-node {
  background: rgba(var(--surface-alt), 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
  cursor: pointer;
  user-select: none;
}
.arch-node:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
.arch-node.active-packet {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.12);
  box-shadow: 0 0 25px var(--primary-glow);
  transform: scale(1.05);
}
.arch-node.ddos-threat {
  border-color: var(--danger);
  background: rgba(var(--danger-rgb), 0.2);
  box-shadow: 0 0 25px rgba(var(--danger-rgb), 0.5);
  animation: shake 0.3s infinite;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}
.node-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  border: 1px solid var(--border);
  transition: color 0.3s, border-color 0.3s;
}
.node-icon svg { width: 18px; height: 18px; fill: currentColor; }
.node-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}
.node-role {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-muted);
}
.node-stat {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--primary);
  background: rgba(0, 0, 0, 0.3);
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Connector Lines & Flying Packets */
.arch-connector {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0, var(--border) 6px, transparent 6px, transparent 12px);
  z-index: -1;
  transform: translateY(-50%);
}

/* Telemetry readout console in simulator */
.arch-telemetry {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.telemetry-item strong {
  color: var(--primary);
  margin-left: 4px;
}
.arch-log {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--success);
  margin-top: 10px;
  min-height: 18px;
}

/* --------------------------------------------------------------------------
   9. FEATURED ENTERPRISE PROJECTS SHOWCASE
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}
.project-card {
  background: rgba(var(--surface-rgb), 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(14px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  will-change: transform;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover {
  border-color: rgba(var(--primary-rgb), 0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(var(--primary-rgb), 0.08);
}
.project-card:hover::before {
  opacity: 1;
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.project-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  color: var(--primary);
}
.project-stat-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 6px;
}
.project-stat-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
}

.project-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.project-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.tag-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 4px;
  transition: all 0.2s;
}
.project-card:hover .tag-pill {
  color: var(--text-muted);
  border-color: rgba(var(--primary-rgb), 0.2);
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.btn-inspect {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--primary);
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s, color 0.2s;
}
.btn-inspect:hover {
  color: #fff;
  gap: 10px;
}
.project-links {
  display: flex;
  gap: 12px;
}
.proj-icon-link {
  color: var(--text-muted);
  transition: color 0.2s;
}
.proj-icon-link:hover { color: var(--primary); }
.proj-icon-link svg { width: 16px; height: 16px; fill: currentColor; }

/* Architecture Inspect Drawer/Modal */
.arch-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 10005;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.arch-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: var(--surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px var(--primary-glow);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.arch-modal.open .modal-content {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--primary); }

/* --------------------------------------------------------------------------
   10. INTERACTIVE PROJECT COST & SCOPE ESTIMATOR
   -------------------------------------------------------------------------- */
.estimator-box {
  background: rgba(var(--surface-rgb), 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  margin-bottom: 60px;
}
.est-form-group {
  margin-bottom: 24px;
}
.est-label {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}
.est-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}
.est-card-option {
  background: rgba(var(--surface-alt), 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.est-card-option:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.est-card-option.selected {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.15);
  color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}
.est-option-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}
.est-option-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

/* Feature Addons Checklist */
.est-addons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.addon-label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11.5px;
  transition: all 0.2s;
}
.addon-label:hover { border-color: var(--border-light); }
.addon-label input[type="checkbox"] {
  accent-color: var(--primary);
  width: 14px;
  height: 14px;
}
.addon-label.active {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
}

/* Estimator Live Result Display (Right Column) */
.est-summary-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.est-summary-title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}
.est-price-display {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.est-time-display {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--success);
  margin-bottom: 24px;
}
.est-summary-list {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  list-style: none;
  margin-bottom: 26px;
  display: grid;
  gap: 8px;
}
.est-summary-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.est-summary-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
}
.est-cta-buttons {
  display: grid;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   11. DEVELOPER CONSOLE / TERMINAL 2.0
   -------------------------------------------------------------------------- */
.terminal-container {
  margin-bottom: 80px;
  transform-style: preserve-3d;
  perspective: 1000px;
}
.terminal-window {
  background: rgba(var(--bg-deep), 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0,0,0,0.7), 0 0 35px rgba(var(--primary-rgb), 0.06);
  overflow: hidden;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  height: 480px;
  transition: border-color 0.3s;
}
.terminal-window:focus-within {
  border-color: rgba(var(--primary-rgb), 0.45);
}
.terminal-header {
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.terminal-buttons {
  display: flex;
  gap: 8px;
}
.t-btn {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.t-close { background: #ef4444; }
.t-min { background: #eab308; }
.t-max { background: #22c55e; }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.terminal-title svg {
  width: 13px;
  height: 13px;
  fill: var(--text-muted);
}

.terminal-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
}
.terminal-body p {
  line-height: 1.5;
  white-space: pre-wrap;
}

.prompt-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.prompt-prefix {
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}
.prompt-symbol {
  color: var(--text-muted);
}

.terminal-input-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  position: relative;
}
.terminal-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13.5px;
  width: 100%;
  caret-color: transparent;
}
.custom-caret {
  position: absolute;
  width: 8px;
  height: 15px;
  background: var(--primary);
  opacity: 0.8;
  animation: blink 1s step-end infinite;
  pointer-events: none;
}
@keyframes blink { 50% { opacity: 0; } }

.terminal-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  align-items: center;
}
.sug-btn {
  background: rgba(var(--primary-rgb), 0.06);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s;
}
.sug-btn:hover {
  background: rgba(var(--primary-rgb), 0.16);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Playable Mini-Game in Terminal */
.terminal-game-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed var(--primary);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 10px 0;
}
.game-grid-display {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--primary);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   12. SKILLS & COMPETENCIES MATRIX
   -------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 40px;
  align-items: start;
}
.skills-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skill-tab {
  background: rgba(var(--surface-rgb), 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}
.skill-tab:hover {
  border-color: rgba(var(--primary-rgb), 0.35);
  color: var(--text);
  transform: translateX(5px);
}
.skill-tab.active {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.08);
}
.skill-tab .tab-icon {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}
.skill-tab.active .tab-icon { color: var(--accent); }

.skill-content {
  background: rgba(var(--surface-rgb), 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 330px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.skills-pane {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}
.skills-pane.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.pane-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}
.tech-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
  gap: 12px;
}
.tech-node {
  background: rgba(var(--surface-alt), 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}
.tech-node:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 5px 15px var(--primary-glow);
}
.tech-node.active {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
  box-shadow: 0 5px 15px var(--accent-glow);
}
.tech-icon {
  margin-bottom: 8px;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
}
.tech-node:hover .tech-icon,
.tech-node.active .tech-icon { color: var(--primary); }
.tech-node.active .tech-icon { color: var(--accent); }
.tech-icon svg { width: 24px; height: 24px; fill: currentColor; }
.tech-name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
  font-weight: 500;
}

.skill-details-panel {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 20px;
}
.sd-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.sd-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-mono);
}
.sd-level {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--success);
  background: rgba(var(--success-rgb), 0.08);
  border: 1px solid rgba(var(--success-rgb), 0.25);
  padding: 2px 8px;
  border-radius: 4px;
}
.sd-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   13. CONTACT SECTION & CARDS
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-card-v2 {
  display: flex;
  align-items: center;
  background: rgba(var(--surface-rgb), 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}
.contact-card-v2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-color, var(--primary));
  opacity: 0.8;
  transition: width 0.3s;
}
.contact-card-v2:hover {
  border-color: var(--accent-color, var(--primary));
  background: rgba(var(--surface-alt), 0.9);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(var(--accent-rgb), 0.12);
  transform: translateX(6px);
}
.contact-card-v2:hover::before { width: 6px; }

.contact-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 18px;
  color: var(--accent-color, var(--primary));
  transition: all 0.3s;
  flex-shrink: 0;
}
.contact-icon-wrap svg { width: 22px; height: 22px; fill: currentColor; }
.contact-info { flex: 1; }
.contact-platform {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}
.contact-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}
.contact-arrow {
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.2s, color 0.2s;
  margin-left: 12px;
}
.contact-card-v2:hover .contact-arrow {
  transform: translateX(4px);
  color: var(--accent-color, var(--primary));
}

/* --------------------------------------------------------------------------
   14. FIXED TELEMETRY HUD (DESKTOP BOTTOM DOCK)
   -------------------------------------------------------------------------- */
.hud-telemetry-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--hud-height);
  background: rgba(var(--bg-deep), 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
}
.hud-telemetry-left,
.hud-telemetry-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.telemetry-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.telemetry-val {
  color: var(--primary);
  font-weight: 600;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--success);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--border);
  padding: 50px 0 calc(50px + var(--hud-height));
  background: rgba(var(--bg-deep), 0.8);
  position: relative;
  z-index: 2;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--primary);
  text-decoration: none;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   16. MOBILE BOTTOM NAVIGATION & RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
.mobile-nav {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  height: 64px;
  background: rgba(var(--surface-rgb), 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: none;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}
.mobile-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 9.5px;
  font-family: var(--font-mono);
  transition: color 0.2s;
}
.mobile-nav-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.mobile-nav-link.active {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-media { order: -1; }
  .hero-tag, .hero-subtitle, .cta-group { justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-metrics { justify-content: center; margin-left: auto; margin-right: auto; }
  .skills-grid { grid-template-columns: 1fr; }
  .estimator-box { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .arch-graph { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .arch-connector { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hud-telemetry-bar { display: none; }
  .mobile-nav { display: flex; }
  body { padding-bottom: 90px; }
  footer { padding-bottom: 110px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .arch-graph { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terminal-window { height: 420px; }
}

@media (max-width: 480px) {
  .wrapper { padding: 0 18px; }
  .hero-title { font-size: clamp(34px, 11vw, 46px); }
  .hud-frame { width: 280px; height: 340px; }
  .arch-graph { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
