/* ═══════════════════════════════════════════════════════════════════════════
   CONTROL ROOM — Design System & Styles
   heshamc.com Portfolio
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ─────────────────────────────────────────────── */
:root {
  --bg-primary: #1a1a2e;
  --bg-panel: #16213e;
  --bg-panel-light: #1e2d50;
  --accent-amber: #f0a500;
  --accent-blue: #0f3460;
  --accent-red: #e94560;
  --text-primary: #eaeaea;
  --text-secondary: #a0a8c0;
  --text-dim: #6b7394;
  --success-green: #00e676;
  --border-glow: rgba(240, 165, 0, 0.3);
  --shadow-amber: 0 0 20px rgba(240, 165, 0, 0.15);
  --shadow-blue: 0 0 20px rgba(15, 52, 96, 0.3);
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --section-padding: clamp(60px, 8vh, 120px) clamp(16px, 5vw, 80px);
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Particle Canvas ───────────────────────────────────────────────────── */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* ── Navigation ────────────────────────────────────────────────────────── */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  height: 64px;
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(240, 165, 0, 0.1);
  transition: background var(--transition-smooth);
}

#main-nav.scrolled {
  background: rgba(26, 26, 46, 0.95);
  border-bottom-color: rgba(240, 165, 0, 0.25);
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-amber);
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(240, 165, 0, 0.4);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-links a {
  display: block;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent-amber);
  background: rgba(240, 165, 0, 0.08);
}

.nav-links a:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent-amber);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Section Base ──────────────────────────────────────────────────────── */
.section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  padding: var(--section-padding);
}

.section-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  justify-content: center;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--accent-amber);
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 0 0 15px rgba(240, 165, 0, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-indicator {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 8px rgba(240, 165, 0, 0.6);
  animation: pulse-indicator 2s ease-in-out infinite;
}

@keyframes pulse-indicator {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── Section Reveal Animations ─────────────────────────────────────────── */
.section-container {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-container.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 1: HERO
   ═══════════════════════════════════════════════════════════════════════════ */
.hero-section {
  flex-direction: column;
  gap: 32px;
  padding-top: 80px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(15, 52, 96, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(233, 69, 96, 0.08) 0%, transparent 50%),
    var(--bg-primary);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  z-index: 2;
}

/* Gauge Frame for Headshot */
.hero-gauge-frame {
  position: relative;
  width: clamp(180px, 28vw, 260px);
  height: clamp(180px, 28vw, 260px);
}

.gauge-ring {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--accent-blue);
  box-shadow:
    0 0 30px rgba(15, 52, 96, 0.4),
    inset 0 0 20px rgba(15, 52, 96, 0.2);
  transition: all 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-gauge-frame:hover .gauge-ring {
  border-color: var(--accent-amber);
  box-shadow:
    0 0 40px rgba(240, 165, 0, 0.3),
    0 0 80px rgba(240, 165, 0, 0.1),
    inset 0 0 25px rgba(240, 165, 0, 0.1);
}



/* Headshot */
.headshot-container {
  width: 80%;
  height: 80%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: var(--bg-panel);
}

.headshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: none; /* Hidden by default, JS shows it on successful load */
}

.headshot-img.loaded {
  display: block;
}

.headshot-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-amber);
  opacity: 0.3;
}

.headshot-img.loaded + .headshot-placeholder {
  display: none;
}

/* Hero Text */
.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: clamp(4px, 1vw, 12px);
  text-align: center;
  color: var(--text-primary);
  text-shadow:
    0 0 20px rgba(240, 165, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 2vw, 1.15rem);
  color: var(--accent-amber);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  opacity: 0.9;
}

.hero-status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(22, 33, 62, 0.6);
  border: 1px solid rgba(240, 165, 0, 0.15);
  border-radius: 20px;
  margin-top: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success-green);
  box-shadow: 0 0 6px rgba(0, 230, 118, 0.6);
  animation: pulse-indicator 1.5s ease-in-out infinite;
}

.status-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--success-green);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Skip Navigation Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: #d4a017;
  color: #1a1a2e;
  padding: 0.75rem 1.5rem;
  z-index: 10000;
  font-weight: bold;
  font-family: var(--font-mono);
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  white-space: nowrap;
}
.skip-link:focus {
  top: 0;
}

/* Download Dossier Button */
.dossier-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-amber);
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  padding: 12px 28px;
  border: 2px solid rgba(240, 165, 0, 0.4);
  border-radius: 6px;
  background: rgba(240, 165, 0, 0.08);
  margin-top: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.dossier-btn:hover,
.dossier-btn:focus-visible {
  background: rgba(240, 165, 0, 0.15);
  border-color: var(--accent-amber);
  box-shadow: 0 0 15px rgba(212, 160, 23, 0.4);
  transform: translateY(-1px);
}
.dossier-icon {
  font-size: 1.1rem;
}

/* Connect section dossier button fills width */
.connect-dossier {
  justify-content: center;
  width: 100%;
  margin-top: 8px;
}

/* Scroll Indicator — Caution Chevrons */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
  z-index: 2;
}

.chevron-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.chevron {
  width: 24px;
  height: 24px;
  border-right: 3px solid var(--accent-amber);
  border-bottom: 3px solid var(--accent-amber);
  transform: rotate(45deg);
  opacity: 0;
  animation: chevron-bounce 2s ease-in-out infinite;
}

.chevron:nth-child(1) { animation-delay: 0s; }
.chevron:nth-child(2) { animation-delay: 0.15s; }
.chevron:nth-child(3) { animation-delay: 0.3s; }

@keyframes chevron-bounce {
  0% { opacity: 0; transform: rotate(45deg) translate(-8px, -8px); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: rotate(45deg) translate(8px, 8px); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 2: ABOUT / SYSTEM STATUS
   ═══════════════════════════════════════════════════════════════════════════ */
.about-section {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(15, 52, 96, 0.15) 0%, transparent 50%),
    var(--bg-primary);
}

.gauge-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

/* Circular Gauge Widgets */
.gauge-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.gauge-svg-container {
  position: relative;
  width: clamp(100px, 18vw, 140px);
  height: clamp(100px, 18vw, 140px);
}

.gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-bg {
  fill: none;
  stroke: var(--bg-panel-light);
  stroke-width: 8;
}

.gauge-fill {
  fill: none;
  stroke: var(--accent-amber);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: drop-shadow(0 0 6px rgba(240, 165, 0, 0.4));
}

.gauge-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
}

.gauge-label {
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 1.2vw, 0.75rem);
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
}

/* Bio Readout */
.bio-readout {
  position: relative;
  padding: 32px;
  background: rgba(22, 33, 62, 0.5);
  border: 1px solid rgba(240, 165, 0, 0.15);
  border-radius: 4px;
}

.readout-border {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.corner {
  position: absolute;
  width: 16px;
  height: 16px;
}
.corner.tl {
  top: -1px; left: -1px;
  border-top: 2px solid var(--accent-amber);
  border-left: 2px solid var(--accent-amber);
}
.corner.tr {
  top: -1px; right: -1px;
  border-top: 2px solid var(--accent-amber);
  border-right: 2px solid var(--accent-amber);
}
.corner.bl {
  bottom: -1px; left: -1px;
  border-bottom: 2px solid var(--accent-amber);
  border-left: 2px solid var(--accent-amber);
}
.corner.br {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--accent-amber);
  border-right: 2px solid var(--accent-amber);
}

.bio-text {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 3: PROJECTS / MONITORS
   ═══════════════════════════════════════════════════════════════════════════ */
.projects-section {
  background:
    radial-gradient(ellipse at 80% 30%, rgba(15, 52, 96, 0.15) 0%, transparent 50%),
    var(--bg-primary);
}

.monitors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  align-items: stretch;
}

.monitor-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition-smooth);
}

.monitor-card:hover,
.monitor-card:focus-visible {
  transform: translateY(-4px);
}

.monitor-card:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 4px;
  border-radius: 8px;
}

.monitor-frame {
  background: var(--bg-panel);
  border: 2px solid rgba(15, 52, 96, 0.5);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.monitor-card:hover .monitor-frame {
  border-color: var(--accent-amber);
  box-shadow:
    0 0 30px rgba(240, 165, 0, 0.15),
    0 8px 32px rgba(0, 0, 0, 0.4);
}

.monitor-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(15, 52, 96, 0.3);
}

.monitor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.monitor-dot.red { background: #ff5f57; }
.monitor-dot.yellow { background: #ffbd2e; }
.monitor-dot.green { background: #28ca41; }

.monitor-title-bar {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.monitor-screen {
  position: relative;
  padding: 32px 24px;
  flex: 1;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* CRT Scanline Effect */
.scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.monitor-card:hover .scanline {
  opacity: 1;
  animation: scanline-flicker 0.15s ease-in-out 2;
}

@keyframes scanline-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.screen-content {
  position: relative;
  z-index: 1;
}

.project-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.project-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Monitor Overlay (Hover State) */
.monitor-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.monitor-card:hover .monitor-overlay {
  opacity: 1;
}

.overlay-content {
  transform: translateY(12px);
  transition: transform 0.3s ease 0.1s;
}

.monitor-card:hover .overlay-content {
  transform: translateY(0);
}

.overlay-detail {
  font-size: 0.9rem;
  color: #f1f5f9;
  line-height: 1.6;
  margin-bottom: 24px;
  font-family: var(--font-body);
}

.launch-prompt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-amber);
  letter-spacing: 2px;
  padding: 10px 20px;
  border: 1px solid rgba(240, 165, 0, 0.4);
  border-radius: 4px;
  background: rgba(240, 165, 0, 0.1);
  box-shadow: 0 0 10px rgba(240, 165, 0, 0.2);
  animation: pulse-launch 2s infinite;
}

.launch-icon {
  font-size: 1.1rem;
}

@keyframes pulse-launch {
  0%, 100% {
    box-shadow: 0 0 10px rgba(240, 165, 0, 0.2);
    border-color: rgba(240, 165, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 20px rgba(240, 165, 0, 0.6);
    border-color: rgba(240, 165, 0, 0.8);
  }
}

/* ONLINE Label */
.online-label {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--success-green);
  letter-spacing: 1.5px;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.3s ease;
  z-index: 3;
  text-shadow: 0 0 6px rgba(0, 230, 118, 0.5);
}

.monitor-card:hover .online-label {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 4: WORK HISTORY / PIPELINE
   ═══════════════════════════════════════════════════════════════════════════ */
.work-section {
  background:
    radial-gradient(ellipse at 20% 70%, rgba(15, 52, 96, 0.15) 0%, transparent 50%),
    var(--bg-primary);
}

.pipeline-timeline {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.pipeline-node {
  position: relative;
  padding-left: 72px;
  margin-bottom: 0;
}

/* Vertical Pipe */
.pipe-segment {
  position: absolute;
  left: 27px;
  width: 6px;
  background: linear-gradient(180deg, var(--accent-blue), rgba(15, 52, 96, 0.6));
  border-radius: 3px;
}

.pipe-segment.top {
  top: 0;
  height: 20px;
}

.pipe-segment.bottom {
  top: 62px;
  bottom: 0;
}

.pipeline-node:first-child .pipe-segment.top {
  display: none;
}

.pipeline-node:last-child .pipe-segment.bottom {
  display: none;
}

/* Valve */
.valve-button {
  display: flex;
  align-items: center;
  gap: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px 0;
  width: 100%;
  text-align: left;
  color: inherit;
}

.valve-button:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 4px;
  border-radius: 4px;
}

.valve {
  position: absolute;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 3px solid var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
  flex-shrink: 0;
}

.valve-handle {
  width: 16px;
  height: 4px;
  background: var(--accent-amber);
  border-radius: 2px;
  transition: transform 0.5s ease;
}

.pipeline-node[data-expanded="true"] .valve {
  border-color: var(--accent-amber);
  box-shadow: 0 0 12px rgba(240, 165, 0, 0.3);
}

.pipeline-node[data-expanded="true"] .valve-handle {
  transform: rotate(90deg);
}

.node-summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.node-company {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.node-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-amber);
}

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

.node-details {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  padding: 0 0 0 0;
}

.node-details:not([hidden]) {
  max-height: 400px;
  opacity: 1;
  padding: 0 0 20px 0;
}

.node-details p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 12px 16px;
  background: rgba(22, 33, 62, 0.5);
  border-left: 2px solid var(--accent-amber);
  border-radius: 0 4px 4px 0;
}

/* Job bullets in expanded details */
.job-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(22, 33, 62, 0.5);
  border-left: 2px solid var(--accent-amber);
  border-radius: 0 4px 4px 0;
}
.job-bullets li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}
.job-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-amber);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 5: EDUCATION / SPEC PLATES
   ═══════════════════════════════════════════════════════════════════════════ */
.education-section {
  background:
    radial-gradient(ellipse at 60% 40%, rgba(15, 52, 96, 0.12) 0%, transparent 50%),
    var(--bg-primary);
}

.spec-plates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.spec-plate {
  position: relative;
  background:
    linear-gradient(135deg,
      #2a3050 0%, #1e2740 20%, #283050 40%,
      #1e2740 60%, #2a3050 80%, #1e2740 100%);
  border: 2px solid rgba(240, 165, 0, 0.2);
  border-radius: 6px;
  padding: 32px;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.spec-plate:hover {
  border-color: rgba(240, 165, 0, 0.4);
  box-shadow: var(--shadow-amber);
}

/* Brushed metal texture overlay */
.spec-plate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.01) 2px,
    rgba(255, 255, 255, 0.01) 4px
  );
  pointer-events: none;
}

/* Shine on hover */
.spec-plate::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(
    135deg,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 60%
  );
  transition: transform 0.8s ease;
  pointer-events: none;
}

.spec-plate:hover::after {
  transform: translate(33%, 33%);
}

/* Rivets */
.plate-rivets {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rivet {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4a5070, #2a3050);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}
.rivet:nth-child(1) { top: 10px; left: 10px; }
.rivet:nth-child(2) { top: 10px; right: 10px; }
.rivet:nth-child(3) { bottom: 10px; left: 10px; }
.rivet:nth-child(4) { bottom: 10px; right: 10px; }

.plate-content {
  position: relative;
  z-index: 1;
}

.plate-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-amber);
  letter-spacing: 3px;
  padding: 4px 12px;
  border: 1px solid rgba(240, 165, 0, 0.3);
  border-radius: 2px;
  margin-bottom: 12px;
}

.plate-title {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.plate-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-amber);
  margin-bottom: 16px;
}

.plate-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plate-details li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}

.plate-details li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-amber);
}

/* Clearance Codes (Skills/Certifications) */
.clearance-group {
  margin-top: 16px;
}
.clearance-group-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.clearance-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.clearance-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent-amber);
  letter-spacing: 1px;
  padding: 5px 14px;
  border: 1px solid rgba(240, 165, 0, 0.3);
  border-radius: 20px;
  background: rgba(240, 165, 0, 0.06);
  transition: all 0.3s ease;
  white-space: nowrap;
}
.clearance-tag:hover {
  border-color: var(--accent-amber);
  background: rgba(240, 165, 0, 0.12);
  box-shadow: 0 0 8px rgba(240, 165, 0, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 6: CONNECT
   ═══════════════════════════════════════════════════════════════════════════ */
.connect-section {
  background:
    radial-gradient(ellipse at 50% 80%, rgba(15, 52, 96, 0.15) 0%, transparent 50%),
    var(--bg-primary);
  padding-bottom: 40px;
}

.connect-panel {
  max-width: 520px;
  margin: 0 auto;
}

.connect-frame {
  background: var(--bg-panel);
  border: 2px solid rgba(15, 52, 96, 0.4);
  border-radius: 8px;
  padding: 40px 32px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.connect-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.connect-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(15, 52, 96, 0.3);
  border-radius: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.connect-link:hover {
  border-color: var(--accent-amber);
  color: var(--accent-amber);
  background: rgba(240, 165, 0, 0.05);
  box-shadow: 0 0 16px rgba(240, 165, 0, 0.1);
  transform: translateY(-1px);
}

.connect-link:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 2px;
}

.connect-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-amber);
  width: 24px;
  flex-shrink: 0;
}

.connect-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  overflow-wrap: break-word;
  word-break: break-all;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
  border-top: 1px solid rgba(15, 52, 96, 0.3);
}

.site-footer p {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile-First Breakpoints
   ═══════════════════════════════════════════════════════════════════════════ */

/* Tablet and below */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 16px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(240, 165, 0, 0.15);
    z-index: 999;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    padding: 12px 16px;
    font-size: 0.85rem;
  }

  .gauge-dashboard {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .monitors-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .spec-plates-grid {
    grid-template-columns: 1fr;
  }

  .pipeline-node {
    padding-left: 60px;
  }

  .valve {
    left: 6px;
    width: 30px;
    height: 30px;
  }

  .pipe-segment {
    left: 20px;
  }

  .pipe-segment.bottom {
    top: 56px;
  }

  .intercom-frame {
    padding: 24px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .section {
    padding: 80px 16px 40px;
    min-height: auto;
    scroll-snap-align: none;
  }

  .hero-section {
    min-height: 100vh;
    scroll-snap-align: start;
  }

  .hero-name {
    font-size: 1.8rem;
    letter-spacing: 3px;
  }

  .hero-tagline {
    font-size: 0.75rem;
    letter-spacing: 2px;
  }

  .gauge-dashboard {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .section-title {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
  }

  .panel-header {
    flex-wrap: wrap;
  }

  .bio-readout {
    padding: 20px;
  }

  .bio-text {
    font-size: 0.9rem;
    text-align: left;
  }

  .connect-label {
    font-size: 0.75rem;
    word-break: break-word;
  }

  .connect-frame {
    padding: 24px 16px;
    overflow-wrap: break-word;
  }

  .dossier-btn {
    font-size: 0.72rem;
    padding: 10px 18px;
    letter-spacing: 1px;
  }

  .node-company {
    font-size: 0.8rem;
  }

  .intercom-frame {
    padding: 20px 16px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #ffffff;
    --text-secondary: #d0d0d0;
    --text-dim: #a0a0a0;
  }

  .monitor-frame,
  .spec-plate,
  .intercom-frame {
    border-width: 3px;
  }
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 2px;
}
