/* ==========================================================================
   MD NAHIDUL ISLAM — 3D AUTOCAD, REACT & VFX PORTFOLIO STYLESHEET
   Full-Stack Developer | Backend & Server Engineering
   ========================================================================== */

:root {
  /* Mode 1: AutoCAD 3D Cyber-Cyan (Default) */
  --bg-primary: #050912;
  --bg-secondary: rgba(9, 17, 32, 0.78);
  --bg-panel: rgba(7, 13, 25, 0.88);
  --accent-primary: #00f0ff;
  --accent-secondary: #ff6b00;
  --accent-tertiary: #00ff88;
  --text-main: #e4f2ff;
  --text-muted: #7e98bc;
  --border-cad: rgba(0, 240, 255, 0.28);
  --border-glow: rgba(0, 240, 255, 0.65);
  --grid-line: rgba(0, 240, 255, 0.065);
  --shadow-neon: 0 0 28px rgba(0, 240, 255, 0.22);
  --font-display: 'Orbitron', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Rajdhani', sans-serif;
}

body.gaming-mode {
  /* Mode 2: VFX Overdrive Mode */
  --bg-primary: #080312;
  --bg-secondary: rgba(18, 7, 36, 0.8);
  --bg-panel: rgba(13, 5, 28, 0.9);
  --accent-primary: #ff0055;
  --accent-secondary: #00f0ff;
  --accent-tertiary: #fcee09;
  --text-main: #fff0f7;
  --text-muted: #b58cc9;
  --border-cad: rgba(255, 0, 85, 0.36);
  --border-glow: rgba(255, 0, 85, 0.75);
  --grid-line: rgba(255, 0, 85, 0.08);
  --shadow-neon: 0 0 34px rgba(255, 0, 85, 0.35);
}

body.blueprint-mode {
  /* Mode 3: Classic AutoCAD Engineering Blueprint Mode */
  --bg-primary: #001940;
  --bg-secondary: rgba(0, 36, 86, 0.82);
  --bg-panel: rgba(0, 26, 66, 0.92);
  --accent-primary: #ffffff;
  --accent-secondary: #ffd000;
  --accent-tertiary: #00e5ff;
  --text-main: #ffffff;
  --text-muted: #9ec5ff;
  --border-cad: rgba(255, 255, 255, 0.36);
  --border-glow: rgba(255, 208, 0, 0.7);
  --grid-line: rgba(255, 255, 255, 0.09);
  --shadow-neon: 0 0 24px rgba(255, 255, 255, 0.24);
}

body.matrix-mode {
  /* Mode 4: Linux Server Matrix Mode */
  --bg-primary: #030c07;
  --bg-secondary: rgba(6, 22, 13, 0.82);
  --bg-panel: rgba(4, 16, 9, 0.9);
  --accent-primary: #00ff66;
  --accent-secondary: #00e5ff;
  --accent-tertiary: #b8ff00;
  --text-main: #e2ffec;
  --text-muted: #6eb888;
  --border-cad: rgba(0, 255, 102, 0.32);
  --border-glow: rgba(0, 255, 102, 0.7);
  --grid-line: rgba(0, 255, 102, 0.07);
  --shadow-neon: 0 0 28px rgba(0, 255, 102, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none !important;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.45s ease, color 0.35s ease;
}

/* ==========================================================================
   3D WEBGL CANVAS & VFX OVERLAY GRIDS
   ========================================================================== */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: auto;
}

#fx-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
}

.cad-grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 50%, black 45%, transparent 96%);
}

.scanline-overlay {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.16) 3px,
    rgba(0, 0, 0, 0.16) 4px
  );
  opacity: 0.42;
}

/* ==========================================================================
   CUSTOM AUTOCAD CROSSHAIR & RETICLE CURSOR
   ========================================================================== */
.cursor-crosshair {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.18s ease, height 0.18s ease;
}

.cursor-crosshair::before,
.cursor-crosshair::after {
  content: '';
  position: absolute;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}

.cursor-crosshair::before {
  top: 50%;
  left: -16px;
  right: -16px;
  height: 1px;
  transform: translateY(-50%);
}

.cursor-crosshair::after {
  left: 50%;
  top: -16px;
  bottom: -16px;
  width: 1px;
  transform: translateX(-50%);
}

.cursor-pickbox {
  position: absolute;
  inset: 9px;
  border: 1.5px solid var(--accent-secondary);
  background: rgba(0, 240, 255, 0.08);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, background 0.2s ease;
}

.cursor-coords {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-primary);
  background: rgba(4, 9, 18, 0.88);
  border: 1px solid var(--border-cad);
  padding: 3px 7px;
  border-radius: 2px;
  transform: translate(22px, 22px);
  white-space: nowrap;
  letter-spacing: 0.5px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}

body.cursor-hover .cursor-pickbox {
  transform: scale(1.75) rotate(45deg);
  border-color: var(--accent-tertiary);
  background: rgba(0, 255, 136, 0.18);
  box-shadow: 0 0 15px var(--accent-tertiary);
}

/* ==========================================================================
   3D CARD BOX MOUSE-TRACKED SPOTLIGHT & HOLOGRAPHIC GLARE
   ========================================================================== */
.tilt-card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.14s cubic-bezier(0.2, 0.85, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

/* Dynamic radial spotlight following mouse inside every card box */
.tilt-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    460px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 240, 255, 0.16),
    rgba(255, 107, 0, 0.05) 38%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

/* Animated top CAD laser sweep line on card hover */
.tilt-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 65%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-secondary), transparent);
  transition: left 0.65s ease;
  pointer-events: none;
  z-index: 2;
}

.tilt-card:hover::before {
  opacity: 1;
}

.tilt-card:hover::after {
  left: 135%;
}

.tilt-card:hover {
  border-color: var(--accent-primary) !important;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.65),
    0 0 28px rgba(0, 240, 255, 0.28) !important;
}

/* CAD Dimension Corner Ticks with hover expansion */
.cad-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent-primary);
  border-style: solid;
  pointer-events: none;
  z-index: 3;
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
}
.cad-corner.tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.cad-corner.tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.cad-corner.bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.cad-corner.br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.tilt-card:hover .cad-corner {
  width: 22px;
  height: 22px;
  border-color: var(--accent-tertiary);
}

/* ==========================================================================
   AUTOCAD / VFX HUD TOP RIBBON BAR
   ========================================================================== */
.hud-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-cad);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
}

.cad-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cad-logo-badge {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--accent-primary);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--accent-primary);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: var(--shadow-neon);
  position: relative;
}

.cad-logo-badge::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px dashed var(--accent-secondary);
}

.cad-file-title {
  display: flex;
  flex-direction: column;
}

.cad-file-title .file-name {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.cad-file-title .file-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-primary);
}

.hud-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hud-nav-link {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 7px 11px;
  border: 1px solid transparent;
  transition: all 0.22s ease;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.hud-nav-link:hover,
.hud-nav-link.active {
  color: var(--accent-primary);
  border-color: var(--border-cad);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.14);
}

.hud-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-btn {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 7px 11px;
  background: rgba(0, 240, 255, 0.08);
  color: var(--accent-primary);
  border: 1px solid var(--border-cad);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.22s ease;
}

.hud-btn:hover,
.hud-btn.active {
  background: var(--accent-primary);
  color: #030710;
  box-shadow: 0 0 18px var(--accent-primary);
}

.hud-btn.mode-switch {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
  background: rgba(255, 107, 0, 0.1);
}

.hud-btn.mode-switch:hover,
.hud-btn.mode-switch.active {
  background: var(--accent-secondary);
  color: #030710;
  box-shadow: 0 0 18px var(--accent-secondary);
}

/* ==========================================================================
   FLOATING 3D VIEWPORT TOOLBOX (LEFT SIDEBAR)
   ========================================================================== */
.cad-toolbox {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  background: var(--bg-panel);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-cad);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-neon);
}

.toolbox-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-cad);
  padding-bottom: 5px;
}

.tool-btn {
  width: 44px;
  height: 42px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-cad);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 9.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all 0.2s ease;
}

.tool-btn span.icon {
  font-size: 14px;
  color: var(--accent-primary);
}

.tool-btn:hover,
.tool-btn.active {
  background: var(--accent-primary);
  color: #040810;
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px var(--accent-primary);
}

.tool-btn:hover span.icon,
.tool-btn.active span.icon {
  color: #040810;
}

/* ==========================================================================
   AUTOCAD VIEWCUBE WIDGET (TOP RIGHT FLOATING)
   ========================================================================== */
.viewcube-widget {
  position: fixed;
  right: 22px;
  top: 76px;
  z-index: 90;
  background: var(--bg-panel);
  border: 1px solid var(--border-cad);
  padding: 10px 14px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-neon);
}

.viewcube-header {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-primary);
  letter-spacing: 1.2px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: space-between;
}

.viewcube-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 100%;
}

.vc-btn {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 5px 8px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid var(--border-cad);
  color: var(--text-main);
  transition: all 0.2s ease;
}

.vc-btn:hover,
.vc-btn.active {
  background: var(--accent-primary);
  color: #040810;
  font-weight: 700;
}

.fps-meter {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-tertiary);
  width: 100%;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-cad);
  padding-top: 5px;
  gap: 10px;
}

/* ==========================================================================
   AUTOCAD COMMAND LINE BAR (BOTTOM FIXED)
   ========================================================================== */
.cad-command-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 42px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-cad);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  backdrop-filter: blur(14px);
}

.cmd-prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.cmd-badge {
  background: var(--accent-primary);
  color: #02060d;
  font-weight: 700;
  padding: 3px 8px;
  font-size: 10px;
  letter-spacing: 1px;
}

.cmd-input {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 12px;
  width: 100%;
  max-width: 620px;
  outline: none;
}

.cmd-input::placeholder {
  color: var(--text-muted);
}

.status-toggles {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-pill {
  padding: 3px 8px;
  border: 1px solid var(--border-cad);
  color: var(--text-muted);
  font-size: 10px;
}

.status-pill.on {
  color: var(--accent-tertiary);
  border-color: var(--accent-tertiary);
  background: rgba(0, 255, 136, 0.08);
}

/* ==========================================================================
   MAIN CONTENT LAYOUT & SECTIONS
   ========================================================================== */
main {
  position: relative;
  z-index: 10;
  padding: 96px 88px 84px 92px;
  max-width: 1440px;
  margin: 0 auto;
}

.cad-section {
  margin-bottom: 105px;
  position: relative;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--border-cad);
  padding-bottom: 14px;
  position: relative;
  flex-wrap: wrap;
  gap: 12px;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 140px;
  height: 3px;
  background: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-primary);
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-main);
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.22);
}

.section-dimension {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   HERO SECTION (3D CAD WORKSTATION & HOLOGRAPHIC BIOMETRIC SCANNER)
   ========================================================================== */
.hero-section {
  min-height: calc(100vh - 160px);
  display: grid;
  grid-template-columns: 1.28fr 0.82fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 76px;
}

.hero-cad-panel {
  background: var(--bg-secondary);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-cad);
  padding: 38px;
  position: relative;
  box-shadow: var(--shadow-neon);
}

.cad-dimension-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-primary);
  margin-bottom: 16px;
}

.cad-dimension-line::before,
.cad-dimension-line::after {
  content: '';
  height: 1px;
  background: var(--border-cad);
  flex: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent-tertiary);
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.35);
  padding: 5px 12px;
  margin-bottom: 16px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-tertiary);
  box-shadow: 0 0 10px var(--accent-tertiary);
  animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.45; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title .highlight {
  color: var(--accent-primary);
  text-shadow: 0 0 25px var(--accent-primary);
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(0.96rem, 1.45vw, 1.18rem);
  color: var(--accent-secondary);
  margin-bottom: 18px;
  font-weight: 600;
}

.hero-bio {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 26px;
}

.metric-box {
  background: rgba(0, 240, 255, 0.045);
  border: 1px solid var(--border-cad);
  padding: 12px 10px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.metric-box:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
}

.metric-val {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent-primary);
  display: block;
}

.metric-lbl {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary-cad,
.btn-secondary-cad {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 13px 22px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: all 0.28s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary-cad {
  background: var(--accent-primary);
  color: #030710;
  border: 1px solid var(--accent-primary);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.38);
}

.btn-primary-cad:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 34px var(--accent-primary);
}

.btn-secondary-cad {
  background: rgba(0, 240, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-cad);
}

.btn-secondary-cad:hover {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
  background: rgba(255, 107, 0, 0.09);
  transform: translateY(-3px);
}

/* ==========================================================================
   3D HOLOGRAPHIC SCANNER AVATAR CARD
   ========================================================================== */
.hero-holo-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-cad);
  padding: 22px;
  position: relative;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-neon);
}

.holo-viewport {
  position: relative;
  border: 1px solid var(--border-cad);
  overflow: hidden;
  aspect-ratio: 4 / 4.4;
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.2), #040914 78%);
}

.holo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.06) saturate(1.08);
  transition: opacity 0.4s ease, transform 0.55s ease, filter 0.35s ease;
}

.hero-holo-card:hover .holo-img {
  transform: scale(1.035);
}

.holo-img.wireframe-filter {
  filter: contrast(1.5) brightness(0.9) hue-rotate(155deg) saturate(2.4);
}

.laser-scanner {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-primary);
  box-shadow: 0 0 18px 4px var(--accent-primary);
  animation: scanLaser 3.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 4;
}

@keyframes scanLaser {
  0%, 100% { top: 4%; opacity: 0.85; }
  50% { top: 94%; opacity: 1; }
}

.holo-hud-overlay {
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(0, 240, 255, 0.38);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-primary);
  z-index: 5;
}

.holo-overlay-row {
  display: flex;
  justify-content: space-between;
  background: rgba(4, 10, 22, 0.72);
  padding: 4px 8px;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.photo-switch-bar {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.photo-tab {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 8px 6px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid var(--border-cad);
  color: var(--text-muted);
  text-align: center;
  transition: all 0.2s ease;
}

.photo-tab.active,
.photo-tab:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(0, 240, 255, 0.16);
}

/* ==========================================================================
   INTERACTIVE 3D AUTOCAD SHOWCASE DECK BAR
   ========================================================================== */
.cad-inspector-bar {
  background: var(--bg-panel);
  border: 1px solid var(--border-cad);
  padding: 20px 26px;
  margin-bottom: 90px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-neon);
}

.inspector-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.inspector-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #030710;
  background: var(--accent-tertiary);
  padding: 6px 10px;
  font-weight: 700;
}

.inspector-text h3 {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text-main);
  letter-spacing: 1px;
}

.inspector-text p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.inspector-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   SKILLS & CAD LAYER ARCHITECTURE MATRIX (7 LAYERS)
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
}

.skill-cad-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-cad);
  padding: 24px;
  position: relative;
  backdrop-filter: blur(12px);
}

.skill-layer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-secondary);
  margin-bottom: 10px;
}

.skill-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  margin-bottom: 16px;
  color: var(--text-main);
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-item-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.skill-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.skill-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-cad);
  overflow: hidden;
  position: relative;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  box-shadow: 0 0 12px var(--accent-primary);
  width: var(--percent, 90%);
  position: relative;
}

/* ==========================================================================
   3D SERVER & API TOPOLOGY PIPELINE DIAGRAM
   ========================================================================== */
.topology-deck {
  margin-top: 32px;
  background: var(--bg-panel);
  border: 1px solid var(--border-cad);
  padding: 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}

.topo-node {
  border: 1px solid var(--border-cad);
  background: rgba(0, 240, 255, 0.04);
  padding: 16px;
  position: relative;
  text-align: center;
}

.topo-step {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-secondary);
  display: block;
  margin-bottom: 6px;
}

.topo-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--accent-primary);
  margin-bottom: 6px;
}

.topo-desc {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   WORK EXPERIENCE (3D CAD ASSEMBLY TIMELINE)
   ========================================================================== */
.timeline-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  position: relative;
  padding-left: 28px;
  border-left: 2px dashed var(--border-cad);
}

.timeline-node {
  background: var(--bg-secondary);
  border: 1px solid var(--border-cad);
  padding: 28px 32px;
  position: relative;
  backdrop-filter: blur(14px);
}

.timeline-node::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 32px;
  width: 14px;
  height: 14px;
  background: var(--bg-primary);
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-primary);
  transform: rotate(45deg);
}

.timeline-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.role-title {
  font-family: var(--font-display);
  font-size: 1.32rem;
  color: var(--accent-primary);
}

.company-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent-secondary);
  border: 1px solid var(--border-cad);
  padding: 4px 12px;
  background: rgba(255, 107, 0, 0.08);
}

.timeline-bullets {
  list-style: none;
  display: grid;
  gap: 8px;
}

.timeline-bullets li {
  font-size: 1.02rem;
  color: var(--text-main);
  position: relative;
  padding-left: 20px;
}

.timeline-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

/* ==========================================================================
   PROJECTS / 3D CAD BLUEPRINT ARCHIVE (ALL 9 CV PROJECTS)
   ========================================================================== */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-cad);
  color: var(--text-muted);
  text-transform: uppercase;
  transition: all 0.22s ease;
}

.filter-btn.active,
.filter-btn:hover {
  color: #030710;
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  font-weight: 700;
  box-shadow: 0 0 16px var(--accent-primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.project-cad-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-cad);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  backdrop-filter: blur(12px);
}

.project-wireframe-preview {
  height: 136px;
  border: 1px solid var(--border-cad);
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.09), rgba(255, 107, 0, 0.06)),
    repeating-linear-gradient(0deg, transparent, transparent 15px, rgba(0, 240, 255, 0.065) 16px),
    repeating-linear-gradient(90deg, transparent, transparent 15px, rgba(0, 240, 255, 0.065) 16px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cad-schematic-svg {
  width: 74%;
  height: 74%;
  stroke: var(--accent-primary);
  stroke-width: 1.5;
  fill: rgba(0, 240, 255, 0.05);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.3s ease;
}

.project-cad-card:hover .cad-schematic-svg {
  transform: scale(1.15) rotate(3deg);
  stroke: var(--accent-secondary);
}

.project-id-tag {
  position: absolute;
  top: 8px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-primary);
}

.project-cat-badge {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 7px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--border-cad);
  color: var(--accent-tertiary);
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.14rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.project-desc {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.52;
  margin-bottom: 16px;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.stack-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid var(--border-cad);
  color: var(--text-main);
}

.project-actions-row {
  display: flex;
  gap: 8px;
}

.project-link-btn {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent-primary);
  border: 1px solid var(--border-cad);
  background: rgba(0, 240, 255, 0.05);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.22s ease;
}

.project-link-btn:hover {
  background: var(--accent-primary);
  color: #030710;
  font-weight: 700;
}

.project-inspect-btn {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent-secondary);
  border: 1px solid var(--border-cad);
  background: rgba(255, 107, 0, 0.08);
  padding: 10px 12px;
  transition: all 0.22s ease;
}

.project-inspect-btn:hover {
  background: var(--accent-secondary);
  color: #030710;
  font-weight: 700;
}

/* ==========================================================================
   EDUCATION, LANGUAGES & LINUX SERVER TELEMETRY
   ========================================================================== */
.edu-workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.edu-card,
.workspace-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-cad);
  padding: 28px;
  position: relative;
  backdrop-filter: blur(12px);
}

.edu-item {
  padding: 15px 0;
  border-bottom: 1px dashed var(--border-cad);
}

.edu-item:last-child {
  border-bottom: none;
}

.edu-year {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-secondary);
}

.edu-inst {
  font-family: var(--font-display);
  font-size: 1.14rem;
  color: var(--text-main);
  margin: 4px 0;
}

.terminal-console {
  background: rgba(3, 8, 16, 0.92);
  border: 1px solid var(--border-cad);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent-tertiary);
  line-height: 1.65;
  margin-top: 14px;
}

/* ==========================================================================
   CONTACT TERMINAL SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
}

.contact-info-panel,
.contact-form-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-cad);
  padding: 32px;
  position: relative;
  backdrop-filter: blur(14px);
}

.contact-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 15px;
  border: 1px solid var(--border-cad);
  background: rgba(0, 240, 255, 0.04);
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.25s ease;
}

.contact-item:hover {
  border-color: var(--accent-primary);
  background: rgba(0, 240, 255, 0.12);
  transform: translateX(6px);
}

.contact-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--accent-primary);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  color: var(--accent-primary);
  flex-shrink: 0;
}

.cad-form {
  display: grid;
  gap: 15px;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-primary);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  background: rgba(4, 10, 22, 0.82);
  border: 1px solid var(--border-cad);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.28);
}

/* ==========================================================================
   3D BLUEPRINT INSPECTOR MODAL
   ========================================================================== */
.cad-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(3, 7, 16, 0.88);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cad-modal-box {
  background: var(--bg-panel);
  border: 1.5px solid var(--accent-primary);
  box-shadow: 0 0 45px rgba(0, 240, 255, 0.35);
  max-width: 720px;
  width: 100%;
  padding: 28px;
  position: relative;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1150px) {
  .hero-section,
  .edu-workspace-grid,
  .contact-grid,
  .topology-deck {
    grid-template-columns: 1fr;
  }
  .viewcube-widget {
    display: none;
  }
}

@media (max-width: 768px) {
  main {
    padding: 84px 18px 70px 18px;
  }
  .cad-toolbox,
  .hud-nav {
    display: none;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
