/* ==========================================================================
   JOAB QUEIROZ BANDEIRA — ULTRA-MODERN SINGLE-PAGE PORTFOLIO & AI LAB
   Inspired by intuitolabs.io | Primary Font: Fira Code
   ========================================================================== */

:root {
  --bg-void: #03060c;
  --bg-deep: #070d19;
  --bg-surface: rgba(11, 19, 35, 0.68);
  --bg-surface-elevated: rgba(16, 28, 52, 0.78);
  --bg-terminal: rgba(6, 12, 24, 0.58);

  --led-primary: #00f0ff;
  --led-secondary: #10b981;
  --led-accent: #38bdf8;
  --led-warn: #f59e0b;
  --led-danger: #ef4444;

  --led-primary-rgb: 0, 240, 255;
  --led-secondary-rgb: 16, 185, 129;

  --text-main: #f0f6fc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-led: rgba(0, 240, 255, 0.32);

  --font-mono: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --mouse-x: 50vw;
  --mouse-y: 50vh;
  --scroll-y: 0;
}

[data-led-mode="emerald"] {
  --led-primary: #10b981;
  --led-secondary: #00f0ff;
  --led-accent: #34d399;
  --led-primary-rgb: 16, 185, 129;
  --led-secondary-rgb: 0, 240, 255;
  --border-led: rgba(16, 185, 129, 0.35);
}

[data-led-mode="amber"] {
  --led-primary: #f59e0b;
  --led-secondary: #00f0ff;
  --led-accent: #fbbf24;
  --led-primary-rgb: 245, 158, 11;
  --led-secondary-rgb: 0, 240, 255;
  --border-led: rgba(245, 158, 11, 0.35);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-void);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-feature-settings: "calt" 1, "liga" 1;
  font-variant-ligatures: contextual;
  overflow-x: hidden;
  selection-background-color: var(--led-primary);
}

::selection {
  background: rgba(var(--led-primary-rgb), 0.25);
  color: var(--led-primary);
}

body {
  background-color: var(--bg-void);
  color: var(--text-main);
  font-family: var(--font-mono);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
  background: rgba(var(--led-primary-rgb), 0.28);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--led-primary-rgb), 0.6);
}

/* ==========================================================================
   BACKGROUND PARALLAX, CANVAS & LED AMBIENT SYSTEM
   ========================================================================== */

#neural-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.cursor-led-spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(
      650px circle at var(--mouse-x) var(--mouse-y),
      rgba(var(--led-primary-rgb), 0.08),
      rgba(var(--led-secondary-rgb), 0.03) 40%,
      transparent 70%
    );
  transition: opacity 0.3s ease;
}

.parallax-nebula {
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 45% 35% at 18% 20%, rgba(var(--led-primary-rgb), 0.09), transparent 70%),
    radial-gradient(ellipse 40% 40% at 82% 72%, rgba(var(--led-secondary-rgb), 0.08), transparent 70%);
  transform: translate3d(0, calc(var(--scroll-y) * -0.08px), 0);
  will-change: transform;
}

/* Running Top LED Strip */
.top-led-rail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.top-led-beam {
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, transparent, var(--led-primary), var(--led-secondary), transparent);
  box-shadow: 0 0 16px var(--led-primary), 0 0 32px var(--led-secondary);
  animation: ledRailScan 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes ledRailScan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}

/* Side LED Telemetry Rails */
.side-led-rail {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.side-led-rail.left { left: 18px; }
.side-led-rail.right { right: 18px; }

.led-node {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(var(--led-primary-rgb), 0.3);
  box-shadow: 0 0 8px rgba(var(--led-primary-rgb), 0.4);
  transition: all 0.3s ease;
}
.led-node.active {
  height: 24px;
  border-radius: 4px;
  background: var(--led-primary);
  box-shadow: 0 0 12px var(--led-primary), 0 0 24px rgba(var(--led-primary-rgb), 0.6);
}
.led-rail-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(var(--led-primary-rgb), 0.35), transparent);
}

/* ==========================================================================
   HEADER / HUD NAVBAR
   ========================================================================== */

.hud-header {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1240px, calc(100% - 32px));
  z-index: 90;
  background: rgba(6, 12, 24, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hud-header:hover {
  border-color: rgba(var(--led-primary-rgb), 0.32);
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(var(--led-primary-rgb), 0.1);
  border: 1px solid rgba(var(--led-primary-rgb), 0.4);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--led-primary);
  box-shadow: 0 0 18px rgba(var(--led-primary-rgb), 0.22);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.status-led-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--led-secondary);
  box-shadow: 0 0 10px var(--led-secondary), 0 0 20px var(--led-secondary);
  display: inline-block;
  animation: pulseLed 2s infinite ease-in-out;
}

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

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

.hud-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  padding: 7px 12px;
  border-radius: 8px;
  transition: all 0.22s ease;
  position: relative;
}

.hud-nav a:hover,
.hud-nav a.active {
  color: var(--led-primary);
  background: rgba(var(--led-primary-rgb), 0.08);
}

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

.led-mode-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 7px 11px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.led-mode-btn:hover {
  border-color: var(--led-primary);
  color: var(--text-main);
  box-shadow: 0 0 14px rgba(var(--led-primary-rgb), 0.2);
}

.led-swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--led-primary);
  box-shadow: 0 0 8px var(--led-primary);
}

.btn-led {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(var(--led-primary-rgb), 0.55);
  background: rgba(var(--led-primary-rgb), 0.12);
  color: var(--text-main);
  box-shadow: 0 0 20px rgba(var(--led-primary-rgb), 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-led:hover {
  background: rgba(var(--led-primary-rgb), 0.22);
  box-shadow: 0 0 28px rgba(var(--led-primary-rgb), 0.4), 0 0 8px var(--led-primary);
  transform: translateY(-2px);
}

.btn-led-ghost {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  box-shadow: none;
  color: var(--text-muted);
}

.btn-led-ghost:hover {
  border-color: rgba(var(--led-secondary-rgb), 0.5);
  color: var(--text-main);
  background: rgba(var(--led-secondary-rgb), 0.1);
  box-shadow: 0 0 22px rgba(var(--led-secondary-rgb), 0.22);
}

/* ==========================================================================
   MAIN CONTAINER & SECTIONS
   ========================================================================== */

main {
  position: relative;
  z-index: 5;
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
}

section {
  padding: 96px 0;
  position: relative;
}

.section-header {
  margin-bottom: 52px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--led-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-tag::before {
  content: "//";
  color: var(--led-secondary);
  font-weight: 700;
}

.section-title {
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-main);
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 680px;
}

/* LED Divider Line between sections */
.led-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--led-primary-rgb), 0.35), rgba(var(--led-secondary-rgb), 0.35), transparent);
  position: relative;
}

.led-divider::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 5px;
  border-radius: 99px;
  background: var(--led-primary);
  box-shadow: 0 0 16px var(--led-primary);
}

/* ==========================================================================
   HERO SECTION WITH TRANSPARENT TECH PORTRAIT & PARALLAX HUD
   ========================================================================== */

.hero-section {
  min-height: 100vh;
  padding-top: 128px;
  padding-bottom: 64px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-telemetry-bar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(var(--led-primary-rgb), 0.28);
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.hero-telemetry-bar code {
  color: var(--led-primary);
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 18px;
}

.hero-title .accent-glow {
  color: var(--led-primary);
  text-shadow: 0 0 28px rgba(var(--led-primary-rgb), 0.38);
}

.hero-role-line {
  font-size: clamp(0.95rem, 1.5vw, 1.18rem);
  color: var(--led-secondary);
  margin-bottom: 20px;
  min-height: 1.8em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cursor-blink {
  display: inline-block;
  width: 9px;
  height: 1.15em;
  background: var(--led-primary);
  box-shadow: 0 0 10px var(--led-primary);
  animation: blinkCursor 1s steps(2, start) infinite;
}

@keyframes blinkCursor {
  to { visibility: hidden; }
}

.hero-lead {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 28px;
  max-width: 600px;
}

.hero-lead strong {
  color: var(--text-main);
  font-weight: 600;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.metric-box {
  background: rgba(11, 19, 35, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  position: relative;
  overflow: hidden;
}

.metric-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--led-primary);
  box-shadow: 0 0 10px var(--led-primary);
}

.metric-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
}

.metric-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Portrait Stage with Parallax & LED Rings */
.portrait-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.portrait-card-3d {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

/* Glowing Cyber Halo Behind Transparent Cutout */
.portrait-led-aura {
  position: absolute;
  width: 82%;
  height: 76%;
  top: 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(var(--led-primary-rgb), 0.24) 0%, rgba(var(--led-secondary-rgb), 0.12) 45%, transparent 72%);
  filter: blur(24px);
  z-index: 1;
  animation: auraBreath 5s ease-in-out infinite alternate;
}

@keyframes auraBreath {
  0% { transform: scale(0.95); opacity: 0.75; }
  100% { transform: scale(1.08); opacity: 1; }
}

.portrait-hud-ring {
  position: absolute;
  width: 88%;
  aspect-ratio: 1;
  top: 8%;
  border-radius: 50%;
  border: 1px dashed rgba(var(--led-primary-rgb), 0.32);
  box-shadow: 0 0 30px rgba(var(--led-primary-rgb), 0.08), inset 0 0 30px rgba(var(--led-secondary-rgb), 0.08);
  z-index: 1;
  animation: spinHudRing 38s linear infinite;
}

.portrait-hud-ring.inner {
  width: 72%;
  top: 16%;
  border-style: solid;
  border-color: transparent rgba(var(--led-secondary-rgb), 0.35) transparent rgba(var(--led-primary-rgb), 0.35);
  animation: spinHudRingReverse 24s linear infinite;
}

@keyframes spinHudRing {
  to { transform: rotate(360deg); }
}
@keyframes spinHudRingReverse {
  to { transform: rotate(-360deg); }
}

.portrait-img {
  position: relative;
  z-index: 3;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 18px rgba(var(--led-primary-rgb), 0.22));
  transform: translateZ(35px);
  pointer-events: none;
  user-select: none;
}

/* Floating Parallax HUD Chips around Portrait */
.hud-floating-chip {
  position: absolute;
  z-index: 5;
  background: rgba(7, 13, 25, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--led-primary-rgb), 0.38);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.72rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 16px rgba(var(--led-primary-rgb), 0.14);
  transform: translateZ(55px);
}

.hud-floating-chip.chip-top-left {
  top: 10%;
  left: -4%;
  animation: floatChip 4.2s ease-in-out infinite alternate;
}

.hud-floating-chip.chip-mid-right {
  top: 46%;
  right: -6%;
  border-color: rgba(var(--led-secondary-rgb), 0.45);
  animation: floatChip 5.1s ease-in-out 0.7s infinite alternate;
}

.hud-floating-chip.chip-bottom-left {
  bottom: 8%;
  left: 0%;
  animation: floatChip 4.6s ease-in-out 1.2s infinite alternate;
}

@keyframes floatChip {
  0% { transform: translateZ(55px) translateY(0px); }
  100% { transform: translateZ(55px) translateY(-10px); }
}

/* ==========================================================================
   TRANSPARENT GLASS INTERACTIVE & AUTO-TYPING TERMINAL
   ========================================================================== */

.terminal-showcase-wrapper {
  position: relative;
}

.glass-terminal {
  background: var(--bg-terminal);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(var(--led-primary-rgb), 0.35);
  border-radius: 16px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.65),
    0 0 36px rgba(var(--led-primary-rgb), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.terminal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(3, 6, 12, 0.65);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 10px;
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.t-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.t-dot.red { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.6); }
.t-dot.amber { background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.6); }
.t-dot.green { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }

.terminal-title {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
}

.t-badge {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(var(--led-primary-rgb), 0.1);
  border: 1px solid rgba(var(--led-primary-rgb), 0.3);
  color: var(--led-primary);
}

.terminal-quick-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(11, 19, 35, 0.45);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.terminal-quick-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.cmd-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.cmd-chip:hover {
  border-color: var(--led-primary);
  color: var(--led-primary);
  background: rgba(var(--led-primary-rgb), 0.1);
  box-shadow: 0 0 12px rgba(var(--led-primary-rgb), 0.2);
}

.terminal-body {
  padding: 22px;
  min-height: 320px;
  max-height: 420px;
  overflow-y: auto;
  font-size: 0.83rem;
  line-height: 1.7;
}

.terminal-line {
  margin-bottom: 10px;
  word-break: break-word;
}

.t-prompt {
  color: var(--led-secondary);
  font-weight: 600;
  margin-right: 8px;
}

.t-cmd {
  color: var(--led-primary);
  font-weight: 500;
}

.t-output {
  color: var(--text-main);
  padding-left: 14px;
  border-left: 2px solid rgba(var(--led-primary-rgb), 0.3);
  margin-top: 6px;
  margin-bottom: 14px;
  white-space: pre-wrap;
}

.t-output .hl-cyan { color: var(--led-primary); }
.t-output .hl-emerald { color: var(--led-secondary); }
.t-output .hl-amber { color: var(--led-warn); }
.t-output .hl-muted { color: var(--text-muted); }

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: rgba(3, 6, 12, 0.55);
  border-top: 1px solid var(--border-subtle);
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--led-primary);
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.terminal-input::placeholder {
  color: var(--text-dim);
}

/* ==========================================================================
   SERVICES & SOLUTIONS GRID (INTUITOLABS LED CARDS)
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.led-card {
  position: relative;
  background: var(--bg-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.led-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--led-primary), var(--led-secondary), transparent);
  opacity: 0.35;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
}

.led-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--led-primary-rgb), 0.42);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5), 0 0 28px rgba(var(--led-primary-rgb), 0.12);
}

.led-card:hover::before {
  opacity: 1;
  box-shadow: 0 0 16px var(--led-primary);
}

.service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(var(--led-primary-rgb), 0.1);
  border: 1px solid rgba(var(--led-primary-rgb), 0.32);
  display: grid;
  place-items: center;
  color: var(--led-primary);
  box-shadow: 0 0 18px rgba(var(--led-primary-rgb), 0.15);
}

.service-index {
  font-size: 0.72rem;
  color: var(--text-dim);
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.service-title {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.service-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.service-deliverables {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-deliverables li {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--led-secondary);
}

/* ==========================================================================
   PROJECTS / LABS PORTFOLIO (CODEX, CLAUDE, HEADROOM, PRINTING PRESS)
   ========================================================================== */

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

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--led-primary);
  background: rgba(var(--led-primary-rgb), 0.1);
  border: 1px solid rgba(var(--led-primary-rgb), 0.3);
  padding: 4px 10px;
  border-radius: 6px;
}

.project-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.project-link:hover {
  color: var(--led-primary);
}

.project-title {
  font-size: 1.24rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.project-code-preview {
  background: rgba(3, 6, 12, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.74rem;
  color: var(--led-secondary);
  margin-bottom: 18px;
  overflow-x: auto;
}

.project-stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.stack-pill {
  font-size: 0.7rem;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   GRAPHIC TECH STACK MATRIX (WITH VECTOR ICONS & FILTER TABS)
   ========================================================================== */

.stack-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-tab {
  background: rgba(11, 19, 35, 0.65);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 8px 16px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.22s ease;
}

.filter-tab:hover,
.filter-tab.active {
  color: var(--text-main);
  border-color: var(--led-primary);
  background: rgba(var(--led-primary-rgb), 0.14);
  box-shadow: 0 0 18px rgba(var(--led-primary-rgb), 0.2);
}

.tech-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 16px;
}

.tech-node-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.tech-node-card:hover {
  border-color: rgba(var(--led-primary-rgb), 0.45);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(var(--led-primary-rgb), 0.14);
}

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

.tech-svg-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(3, 6, 12, 0.7);
  border: 1px solid rgba(var(--led-primary-rgb), 0.25);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--led-primary);
}

.tech-svg-wrap svg {
  width: 24px;
  height: 24px;
}

.tech-node-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.tech-node-cat {
  font-size: 0.68rem;
  color: var(--led-secondary);
}

.tech-node-detail {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.led-power-bar {
  display: flex;
  gap: 4px;
  margin-top: auto;
}

.led-segment {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.led-segment.on {
  background: var(--led-primary);
  box-shadow: 0 0 8px rgba(var(--led-primary-rgb), 0.55);
}

/* ==========================================================================
   EXPERIENCE & CAREER TIMELINE (LED CIRCUIT BUS)
   ========================================================================== */

.timeline-bus {
  position: relative;
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.timeline-bus::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 2px;
  background: linear-gradient(to bottom, var(--led-primary), var(--led-secondary), rgba(var(--led-primary-rgb), 0.15));
  box-shadow: 0 0 12px rgba(var(--led-primary-rgb), 0.4);
}

.timeline-item {
  position: relative;
}

.timeline-led-pin {
  position: absolute;
  left: -32px;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-void);
  border: 3px solid var(--led-primary);
  box-shadow: 0 0 14px var(--led-primary);
}

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

.timeline-role {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.timeline-company {
  color: var(--led-primary);
  font-weight: 600;
}

.timeline-period {
  font-size: 0.74rem;
  color: var(--led-secondary);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(var(--led-secondary-rgb), 0.1);
  border: 1px solid rgba(var(--led-secondary-rgb), 0.3);
}

/* ==========================================================================
   CONTACT & INTERACTIVE BRIEFING CONSOLE
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: stretch;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.channel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(3, 6, 12, 0.55);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.25s ease;
}

.channel-link:hover {
  border-color: var(--led-primary);
  background: rgba(var(--led-primary-rgb), 0.08);
  box-shadow: 0 0 20px rgba(var(--led-primary-rgb), 0.16);
  transform: translateX(4px);
}

.channel-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.channel-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(var(--led-primary-rgb), 0.1);
  border: 1px solid rgba(var(--led-primary-rgb), 0.3);
  display: grid;
  place-items: center;
  color: var(--led-primary);
}

.channel-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}

.channel-val {
  font-size: 0.86rem;
  font-weight: 600;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  color: var(--led-primary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: rgba(3, 6, 12, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--led-primary);
  box-shadow: 0 0 16px rgba(var(--led-primary-rgb), 0.2);
}

.service-selector-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scope-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(3, 6, 12, 0.65);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.scope-pill.selected {
  border-color: var(--led-secondary);
  color: var(--led-secondary);
  background: rgba(var(--led-secondary-rgb), 0.12);
  box-shadow: 0 0 12px rgba(var(--led-secondary-rgb), 0.2);
}

/* Footer */
.hud-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 36px 0 48px;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Toast Notification */
.led-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 120;
  background: rgba(6, 12, 24, 0.92);
  border: 1px solid var(--led-primary);
  border-radius: 12px;
  padding: 12px 18px;
  color: var(--text-main);
  font-size: 0.8rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(var(--led-primary-rgb), 0.3);
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.led-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .hero-section {
    grid-template-columns: 1fr;
    padding-top: 112px;
    text-align: left;
  }
  .portrait-stage {
    order: -1;
    max-width: 360px;
    margin: 0 auto;
  }
  .services-grid,
  .projects-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hud-nav {
    display: none;
  }
  .side-led-rail {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-metrics {
    grid-template-columns: 1fr;
  }
  .hud-floating-chip {
    font-size: 0.64rem;
    padding: 6px 9px;
  }
}
