/* ==========================================================================
   METEMEL // CYBERNETIC SCROLLYTELLING STYLESHEET
   Awwwards-Grade Futuristic Robotics & Cyber-Physical Portfolio Design System
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-deep: #05070b;
  --bg-surface: #0a0e17;
  --bg-card: rgba(13, 20, 32, 0.75);
  --bg-glass: rgba(10, 16, 26, 0.65);
  
  --cyan: #00f3ff;
  --cyan-glow: rgba(0, 243, 255, 0.4);
  --cyan-dim: rgba(0, 243, 255, 0.15);
  
  --amber: #ffaa00;
  --amber-glow: rgba(255, 170, 0, 0.4);
  
  --pink: #ff0055;
  --pink-glow: rgba(255, 0, 85, 0.4);
  
  --green: #00ff88;
  --green-glow: rgba(0, 255, 136, 0.4);
  
  --text-main: #f0f4fc;
  --text-sub: #94a3b8;
  --text-dim: #475569;
  
  --border-line: rgba(0, 243, 255, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-display: 'Orbitron', sans-serif;
  --font-heading: 'Syne', sans-serif;
  --font-ui: 'Rajdhani', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --header-height: 72px;
  --sidebar-w: 64px;
}

/* Base Reset & Smooth Scroll */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Cyberpunk Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 243, 255, 0.35);
  border-radius: 3px;
  box-shadow: 0 0 6px var(--cyan-glow);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-ui);
  font-size: 16px;
  overflow-x: hidden;
}

body {
  position: relative;
  background-color: var(--bg-deep);
  min-height: 100vh;
  cursor: default;
  overflow-x: hidden;
}

/* ==========================================================================
   CUSTOM CYBERNETIC CURSOR
   ========================================================================== */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--cyan);
  transition: opacity 0.2s ease;
}

.cursor-bracket {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.06s linear;
}

.bracket-tl, .bracket-tr, .bracket-bl, .bracket-br {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--cyan);
}
.bracket-tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.bracket-tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.bracket-bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.bracket-br { bottom: 0; right: 0; border-left: none; border-top: none; }

.cursor-tag {
  position: absolute;
  bottom: -16px;
  right: -10px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--cyan);
  letter-spacing: 1px;
}

/* Hover expansion */
.cursor-bracket.is-hovering {
  width: 58px;
  height: 58px;
  border-color: var(--amber);
}
.cursor-bracket.is-hovering .bracket-tl,
.cursor-bracket.is-hovering .bracket-tr,
.cursor-bracket.is-hovering .bracket-bl,
.cursor-bracket.is-hovering .bracket-br {
  border-color: var(--amber);
}

/* Hide on touch devices */
@media (hover: none) and (pointer: coarse) {
  .cursor-dot, .cursor-bracket { display: none; }
}

/* ==========================================================================
   AMBIENT OVERLAYS (CRT, SCANLINES, GRID)
   ========================================================================== */
.crt-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
              linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
  background-size: 100% 4px, 6px 100%;
  opacity: 0.65;
}

.cyber-grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(0, 243, 255, 0.03) 0%, transparent 80%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 80px 80px, 80px 80px;
}

/* ==========================================================================
   WEBGL 3D CANVAS (PINNED BACKGROUND)
   ========================================================================== */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
}

/* ==========================================================================
   HEADS UP DISPLAY (HUD) HEADER
   ========================================================================== */
.hud-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: linear-gradient(180deg, rgba(5, 7, 11, 0.9) 0%, rgba(5, 7, 11, 0.4) 70%, transparent 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 243, 255, 0.15);
}

.hud-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 243, 255, 0.06);
  border: 1px solid var(--border-line);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--cyan);
}

.telemetry-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-sub);
}

.telemetry-bar .value {
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.hud-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-sub);
  transition: all 0.25s ease;
  position: relative;
}

.nav-idx {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  opacity: 0.7;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(0, 243, 255, 0.1);
  border-radius: 2px;
  box-shadow: 0 0 12px var(--cyan-dim);
}

.nav-link.active .nav-idx {
  opacity: 1;
  text-shadow: 0 0 8px var(--cyan);
}

.nav-tools-link {
  color: var(--amber) !important;
  border-left: 1px solid var(--border-line);
  padding-left: 14px;
}

.nav-tools-link .nav-idx {
  color: var(--amber);
}

.nav-tools-link:hover {
  background: rgba(255, 184, 0, 0.1) !important;
  box-shadow: 0 0 12px rgba(255, 184, 0, 0.3) !important;
}

.dashboard-banner-callout {
  margin-top: 2rem;
  border-color: rgba(0, 243, 255, 0.3);
  background: linear-gradient(90deg, rgba(0, 243, 255, 0.06) 0%, rgba(255, 184, 0, 0.04) 100%);
}

.hud-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Audio Toggle Button */
.audio-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 243, 255, 0.05);
  border: 1px solid var(--border-line);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.audio-btn:hover {
  background: rgba(0, 243, 255, 0.15);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.audio-waves {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 12px;
}

.audio-waves span {
  width: 2px;
  height: 4px;
  background: var(--cyan);
  transition: height 0.2s ease;
}

.audio-btn.is-active .audio-waves span:nth-child(1) { animation: wave 0.8s infinite 0.1s; }
.audio-btn.is-active .audio-waves span:nth-child(2) { animation: wave 0.8s infinite 0.3s; }
.audio-btn.is-active .audio-waves span:nth-child(3) { animation: wave 0.8s infinite 0.2s; }
.audio-btn.is-active .audio-waves span:nth-child(4) { animation: wave 0.8s infinite 0.4s; }

@keyframes wave {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

.system-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.2;
}

.fps-counter {
  color: var(--green);
  font-weight: 700;
}

.core-load {
  color: var(--text-dim);
}

/* ==========================================================================
   HUD SIDEBARS (LEFT & RIGHT)
   ========================================================================== */
.hud-sidebar-left {
  position: fixed;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  pointer-events: none;
}

.scroll-track {
  width: 2px;
  height: 180px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  border-radius: 1px;
}

.scroll-thumb {
  position: absolute;
  top: 0;
  left: -2px;
  width: 6px;
  height: 24px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  border-radius: 1px;
  transition: top 0.1s linear;
}

.stage-indicator {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.stage-current {
  color: var(--cyan);
  font-weight: 700;
  font-size: 1.1rem;
}

.orientation-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--text-dim);
}

/* Right Diagnostics Card */
.hud-sidebar-right {
  position: fixed;
  right: 1.5rem;
  bottom: 2rem;
  z-index: 50;
  pointer-events: none;
}

.diag-card {
  width: 220px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-line);
  padding: 1rem;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  font-family: var(--font-mono);
}

.diag-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.diag-signal {
  color: var(--green);
  font-weight: 700;
}

.diag-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  margin-bottom: 6px;
}

.d-label {
  color: var(--text-sub);
}

.d-val {
  color: var(--text-main);
  font-weight: 600;
}

.reactor-gauge {
  margin-top: 10px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.gauge-fill {
  height: 100%;
  width: 82%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  box-shadow: 0 0 8px var(--cyan);
  transition: width 0.3s ease;
}

/* ==========================================================================
   SCROLLYTELLING CONTAINER & SECTIONS
   ========================================================================== */
#scrolly-container {
  position: relative;
  z-index: 10;
  width: 100%;
}

.scrolly-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 2rem) 6vw 4rem 6vw;
  box-sizing: border-box;
}

.section-content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 12;
}

/* ==========================================================================
   SECTION 01: HERO
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.terminal-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--cyan);
  background: rgba(0, 243, 255, 0.08);
  border: 1px solid var(--border-line);
  padding: 6px 14px;
  margin-bottom: 1.5rem;
  position: relative;
}

.pulse-icon {
  color: var(--cyan);
  animation: pulse-glow 1.6s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); text-shadow: 0 0 10px var(--cyan); }
}

.hero-title {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.title-sub {
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.title-main {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 900;
  letter-spacing: 4px;
  line-height: 0.95;
  background: linear-gradient(135deg, #ffffff 30%, var(--cyan) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(0, 243, 255, 0.35));
  position: relative;
}

.hero-desc {
  max-width: 620px;
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--text-sub);
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 3.5rem;
}

/* Cyber Buttons */
.cyber-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.primary-btn {
  background: var(--cyan);
  color: #030712;
  border: none;
  box-shadow: 0 0 25px var(--cyan-glow);
}

.primary-btn:hover {
  background: #ffffff;
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.ghost-btn {
  background: rgba(10, 16, 26, 0.7);
  color: var(--text-main);
  border: 1px solid var(--border-line);
  backdrop-filter: blur(8px);
}

.ghost-btn:hover {
  background: rgba(0, 243, 255, 0.12);
  border-color: var(--cyan);
  color: #ffffff;
  box-shadow: 0 0 20px var(--cyan-dim);
  transform: translateY(-2px);
}

.hero-telemetry-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 700px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
}

.telem-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border-radius: 2px;
}

.telem-chip .t-k {
  color: var(--text-dim);
  margin-right: 6px;
}

.telem-chip .t-v {
  color: var(--text-main);
  font-weight: 600;
}

.scroll-prompt {
  position: absolute;
  bottom: 2rem;
  left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--cyan);
}

.mouse-icon {
  width: 18px;
  height: 28px;
  border: 1.5px solid var(--cyan);
  border-radius: 10px;
  position: relative;
}

.mouse-wheel {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 6px;
  background: var(--cyan);
  border-radius: 1px;
  animation: scroll-bob 1.5s infinite;
}

@keyframes scroll-bob {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 12px); opacity: 0; }
}

/* ==========================================================================
   SECTION 02: CORE / MODULAR DECONSTRUCTION
   ========================================================================== */
.hud-section-header {
  margin-bottom: 3rem;
  max-width: 800px;
}

.hud-section-header.center-align {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hud-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-sub);
}

.module-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.module-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  padding: 1.8rem;
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--cyan);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.module-card:hover {
  border-color: var(--cyan);
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 243, 255, 0.12);
}

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

.card-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-dim);
}

.mod-active-tag {
  color: var(--green);
  font-weight: 700;
}

.mod-title {
  font-family: var(--font-ui);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.mod-desc {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.55;
  margin-bottom: 1.2rem;
}

.mod-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mod-tags span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(0, 243, 255, 0.08);
  color: var(--cyan);
  padding: 3px 8px;
  border-radius: 2px;
  border: 1px solid rgba(0, 243, 255, 0.15);
}

.callout-tactical {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(0, 243, 255, 0.04);
  border: 1px solid var(--border-line);
  padding: 1.2rem 1.8rem;
  border-radius: 4px;
}

.tac-icon {
  font-size: 2rem;
  color: var(--cyan);
  animation: pulse-glow 2s infinite ease-in-out;
}

.tac-body strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--cyan);
  margin-bottom: 4px;
}

.tac-body p {
  font-size: 0.95rem;
  color: var(--text-sub);
}

/* ==========================================================================
   SECTION 03: PROJECTS / MISSIONS
   ========================================================================== */
.projects-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--cyan);
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 243, 255, 0.18);
}

.project-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #020408;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  filter: brightness(0.9) contrast(1.1);
}

.project-card:hover .project-img {
  transform: scale(1.06);
  filter: brightness(1) contrast(1.15);
}

.project-overlay-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 243, 255, 0.15) 100%);
  pointer-events: none;
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(5, 7, 11, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--cyan);
  padding: 4px 10px;
  border-radius: 2px;
}

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

.project-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--amber);
  margin-bottom: 0.5rem;
}

.project-heading {
  font-family: var(--font-ui);
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.8rem;
  line-height: 1.25;
}

.project-summary {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

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

.project-tech-chips span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  padding: 3px 8px;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
}

.project-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.2rem;
}

.view-project-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-line);
  color: var(--cyan);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.view-project-btn:hover {
  background: var(--cyan);
  color: #000000;
  box-shadow: 0 0 16px var(--cyan-glow);
}

.view-project-btn .arrow {
  transition: transform 0.2s ease;
}

.view-project-btn:hover .arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   SECTION 04: SKILL MATRIX & ARSENAL
   ========================================================================== */
.arsenal-interactive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.power-control-panel {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-line);
  padding: 2rem;
  border-radius: 4px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.p-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
}

.p-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber);
}

.power-slider-group {
  margin-bottom: 1.5rem;
}

.slider-info {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.cyber-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  margin-bottom: 6px;
}

.cyber-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--cyan);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.cyber-range::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.slider-meter {
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.meter-bar {
  height: 100%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transition: width 0.1s ease;
}

.bar-amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.bar-pink { background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.bar-green { background: var(--green); box-shadow: 0 0 8px var(--green); }

.overclock-box {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.overclock-btn {
  width: 100%;
  justify-content: center;
}

.overclock-msg {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
}

.skills-spec-box {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  border-radius: 4px;
}

.spec-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.spec-categories {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cat-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber);
  margin-bottom: 0.6rem;
  letter-spacing: 1px;
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec-list li {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-sub);
  position: relative;
  padding-left: 18px;
}

.spec-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan);
}

/* ==========================================================================
   SECTION 05: EXPERIENCE & MISSION LOGS
   ========================================================================== */
.timeline-cyber {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-cyber::before {
  content: '';
  position: absolute;
  left: 180px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan) 0%, rgba(0, 243, 255, 0.2) 100%);
}

.timeline-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 3rem;
  position: relative;
}

.time-col {
  text-align: right;
  padding-top: 6px;
}

.time-badge {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.time-status-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.time-content {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  padding: 1.8rem;
  border-radius: 4px;
  position: relative;
  transition: all 0.25s ease;
}

.time-node {
  position: absolute;
  left: calc(-3rem - 6px);
  top: 24px;
  width: 10px;
  height: 10px;
  background: var(--bg-deep);
  border: 2px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
  z-index: 2;
}

.timeline-row:hover .time-content {
  border-color: var(--cyan);
  transform: translateX(6px);
}

.role-title {
  font-family: var(--font-ui);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.company-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.role-desc {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.role-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.role-highlights span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  background: rgba(0, 243, 255, 0.06);
  padding: 4px 10px;
  border-radius: 2px;
}

/* ==========================================================================
   SECTION 06: TRANSMISSION / DIRECT UPLINK
   ========================================================================== */
.uplink-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.terminal-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.terminal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0d121c;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

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

.terminal-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.term-title {
  color: var(--text-sub);
  letter-spacing: 1px;
}

.term-enc {
  color: var(--green);
}

.terminal-form {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-sub);
  letter-spacing: 1px;
}

.prompt-symbol {
  color: var(--cyan);
  font-weight: 700;
}

.cyber-input {
  width: 100%;
  background: rgba(5, 8, 14, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  padding: 12px 16px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.25s ease;
}

.cyber-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 15px var(--cyan-dim);
  background: rgba(10, 16, 26, 0.95);
}

.cyber-select {
  appearance: none;
  cursor: pointer;
}

.cyber-textarea {
  resize: vertical;
}

.transmit-btn {
  width: 100%;
  justify-content: center;
}

.terminal-log {
  margin-top: 1rem;
  padding: 12px;
  background: rgba(0, 0, 0, 0.6);
  border-left: 2px solid var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  height: 110px;
  max-height: 110px;
  overflow-y: auto;
  box-sizing: border-box;
}

/* Operator Bio Card */
.operator-profile-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.profile-header {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.avatar-frame {
  position: relative;
  width: 100px;
  height: 100px;
  border: 2px solid var(--cyan);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-corner-tr {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 12px 12px 0;
  border-color: transparent var(--cyan) transparent transparent;
}

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

.op-unit {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--amber);
}

.op-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
}

.op-title {
  font-size: 0.95rem;
  color: var(--text-sub);
  margin-bottom: 0.5rem;
}

.op-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
}

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

.channel-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
}

.ch-label {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.ch-val {
  font-size: 0.95rem;
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ch-val:hover {
  color: #ffffff;
  text-shadow: 0 0 8px var(--cyan);
}

.copy-terminal-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  padding: 12px;
  border-radius: 4px;
}

.cmd-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.cmd-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.cmd-line code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber);
}

.copy-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(255, 170, 0, 0.15);
  color: var(--amber);
  padding: 2px 6px;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.cmd-line:hover .copy-badge {
  background: var(--amber);
  color: #000000;
}

/* System Footer */
.system-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
}

/* ==========================================================================
   PROJECT MODAL DIALOG
   ========================================================================== */
.cyber-modal {
  border: none;
  background: transparent;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.cyber-modal[open] {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 8, 0.85);
  backdrop-filter: blur(12px);
}

.modal-box {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  background: var(--bg-surface);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 50px rgba(0, 243, 255, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0d121c;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-line);
}

.modal-id {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  letter-spacing: 2px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--pink);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.modal-media {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border-subtle);
}

.modal-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.8rem;
}

.modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.2rem;
}

.modal-badges span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(0, 243, 255, 0.1);
  color: var(--cyan);
  padding: 3px 8px;
  border: 1px solid var(--border-line);
}

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

.modal-specs-block h4 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber);
  margin-bottom: 0.8rem;
  letter-spacing: 1px;
}

.modal-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.metric-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  border-radius: 2px;
}

.metric-k {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  display: block;
}

.metric-v {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cyan);
}

.modal-actions {
  display: flex;
  gap: 1rem;
}

/* ==========================================================================
   UTILITY CLASSES & GLITCH
   ========================================================================== */
.text-cyan { color: var(--cyan) !important; }
.text-amber { color: var(--amber) !important; }
.text-pink { color: var(--pink) !important; }
.text-green { color: var(--green) !important; }

.status-pip {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
}

.status-pip.blink {
  animation: blink-pip 1.2s infinite ease-in-out;
}

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

/* Glitch Text Effect */
.glitch-text {
  position: relative;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.glitch-text:hover::before {
  left: -2px;
  text-shadow: 2px 0 var(--pink);
  animation: glitch-anim-1 0.4s infinite linear alternate-reverse;
}

.glitch-text:hover::after {
  left: 2px;
  text-shadow: -2px 0 var(--cyan);
  animation: glitch-anim-2 0.4s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0% { clip-path: inset(20% 0 30% 0); }
  20% { clip-path: inset(60% 0 10% 0); }
  40% { clip-path: inset(40% 0 50% 0); }
  60% { clip-path: inset(80% 0 5% 0); }
  80% { clip-path: inset(10% 0 70% 0); }
  100% { clip-path: inset(30% 0 20% 0); }
}

@keyframes glitch-anim-2 {
  0% { clip-path: inset(15% 0 55% 0); }
  25% { clip-path: inset(45% 0 15% 0); }
  50% { clip-path: inset(10% 0 80% 0); }
  75% { clip-path: inset(70% 0 20% 0); }
  100% { clip-path: inset(25% 0 40% 0); }
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1080px) {
  .hud-sidebar-right { display: none; }
  .arsenal-interactive-grid { grid-template-columns: 1fr; }
  .uplink-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hud-header {
    padding: 0 1rem;
  }
  .hud-nav {
    display: none; /* Mobile navigation simplified */
  }
  .hud-sidebar-left {
    display: none;
  }
  .scrolly-section {
    padding: calc(var(--header-height) + 1.5rem) 1.5rem 3rem 1.5rem;
  }
  .timeline-cyber::before {
    left: 20px;
  }
  .timeline-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-left: 36px;
  }
  .time-col {
    text-align: left;
  }
  .time-node {
    left: -22px;
  }
  .modal-body {
    grid-template-columns: 1fr;
  }
}
