/* ==========================================================================
   Cyberpunk Theme (Neon, Grid, HUD elements)
   ========================================================================== */
:root {
  /* Cyberpunk Color Palette */
  --bg-primary: #0a0a12;
  --bg-surface: #12121a;
  --bg-surface-elevated: #1a1a24;
  --bg-surface-translucent: rgba(10, 10, 18, 0.85);

  --cyan: #00f0ff;
  --cyan-dim: rgba(0, 240, 255, 0.15);
  --magenta: #ff2bd6;
  --magenta-dim: rgba(255, 43, 214, 0.15);
  --yellow: #fcee09;

  --border-subtle: #232333;
  --border-medium: #3a3a52;
  --border-focus: var(--cyan);

  --text-primary: #ffffff;
  --text-secondary: #a0a0b5;
  --text-muted: #6e6e85;
  --text-inverse: #0a0a12;

  --accent-primary: var(--cyan);
  --accent-primary-hover: #5cffff;
  --accent-secondary: var(--magenta);
  --accent-secondary-hover: #ff75e3;

  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'JetBrains Mono', monospace;

  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.3s cubic-bezier(0.25, 1, 0.5, 1);

  --glow-cyan: 0 0 10px rgba(0, 240, 255, 0.5), 0 0 20px rgba(0, 240, 255, 0.3);
  --glow-magenta: 0 0 10px rgba(255, 43, 214, 0.5), 0 0 20px rgba(255, 43, 214, 0.3);
}

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

*:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-surface);
  color: var(--cyan);
  padding: 1rem 2rem;
  border: 1px solid var(--cyan);
  z-index: 10000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Faint Grid Background */
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: center center;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Global Effects (CRT, Cursor)
   ========================================================================== */
.crt-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 4px, 3px 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.6;
}

.neon-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  background-color: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 10000;
  box-shadow: var(--glow-cyan);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
  mix-blend-mode: screen;
}

.neon-cursor.active {
  width: 20px; height: 20px;
  background-color: var(--magenta);
  box-shadow: var(--glow-magenta);
}

@media (hover: none) and (pointer: coarse) {
  .neon-cursor {
    display: none;
  }
}

@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;
  }
  .neon-cursor { display: none; }
  .crt-overlay { display: none; }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: var(--bg-surface-translucent);
  border-bottom: 1px solid var(--border-medium);
}

.hud-panel::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
  opacity: 0.5;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

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

.avatar-frame-sm {
  width: 40px; height: 40px;
  border: 1px solid var(--cyan);
  box-shadow: inset 0 0 5px var(--cyan-dim);
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 80% 100%, 0 100%);
}

.brand-avatar {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.2) sepia(0.2) hue-rotate(180deg);
}

.scanline-sm {
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 4px var(--cyan);
  animation: scan 4s linear infinite;
}

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

.brand-text .glitch-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

.brand-tag {
  font-size: 0.65rem;
  color: var(--yellow);
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  position: relative;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0%; height: 2px;
  background: var(--cyan);
  transition: width var(--transition-fast);
  box-shadow: var(--glow-cyan);
}

.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  min-height: 44px; /* A11y touch target */
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  letter-spacing: 0.05em;
  z-index: 1;
}

.btn-sm {
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
}

/* Neon Outline Button */
.btn-neon {
  color: var(--cyan);
  border: 1px solid var(--cyan);
  background: transparent;
  box-shadow: 0 0 5px var(--cyan-dim), inset 0 0 5px var(--cyan-dim);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 90% 100%, 0 100%);
}

.btn-neon:hover {
  background: var(--cyan-dim);
  box-shadow: var(--glow-cyan), inset 0 0 10px var(--cyan-dim);
}

/* Primary Cyber Button */
.btn-primary-cyber {
  background: var(--cyan);
  color: var(--bg-primary);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  border: none;
  font-weight: 900;
}

.btn-primary-cyber:hover {
  background: var(--accent-primary-hover);
  box-shadow: var(--glow-cyan);
  transform: translateY(-1px);
}

/* Secondary Cyber Button */
.btn-secondary-cyber {
  background: var(--bg-surface-elevated);
  color: var(--magenta);
  border: 1px solid var(--magenta);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.btn-secondary-cyber:hover {
  background: var(--magenta-dim);
  box-shadow: var(--glow-magenta);
}

/* Outline Cyber Button */
.btn-outline-cyber {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-outline-cyber:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: var(--bg-surface);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 6rem 0 4rem;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
  opacity: 0.15;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.hud-bracket {
  position: relative;
  padding: 2rem;
}

.hud-bracket::before, .hud-bracket::after {
  content: '';
  position: absolute;
  width: 30px; height: 30px;
  border: 2px solid var(--border-medium);
  z-index: 0;
  transition: border-color var(--transition-fast);
}

.hud-bracket::before {
  top: 0; left: 0;
  border-right: none; border-bottom: none;
}

.hud-bracket::after {
  bottom: 0; right: 0;
  border-left: none; border-top: none;
}

.hud-bracket:hover::before, .hud-bracket:hover::after {
  border-color: var(--cyan);
  box-shadow: inset 0 0 10px var(--cyan-dim);
}

.cyberpunk-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--yellow);
  background: rgba(252, 238, 9, 0.1);
  border: 1px solid var(--yellow);
  padding: 0.4rem 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 95% 100%, 0 100%);
}

.status-dot {
  width: 8px; height: 8px;
  background: var(--yellow);
  box-shadow: 0 0 5px var(--yellow);
}

.status-dot.blink {
  animation: blink 1.5s infinite;
}

.hero-title-container {
  min-height: 120px;
  margin-bottom: 1rem;
}

.boot-text {
  font-family: var(--font-body);
  color: var(--magenta);
  font-size: 1rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.1;
  color: var(--text-primary);
  text-shadow: 2px 2px 0px var(--cyan-dim);
}

.hero-title.hidden {
  display: none;
}

.hero-title .highlight {
  color: var(--cyan);
  position: relative;
  display: inline-block;
}

.neon-text-primary {
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

.hero-lead {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.recruiter-metric-ribbon {
  display: flex;
  gap: 2rem;
  border-top: 1px solid var(--border-medium);
  padding-top: 1.5rem;
}

.hud-box {
  display: flex;
  flex-direction: column;
}

.metric-value, .metric-plus {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--magenta);
  text-shadow: var(--glow-magenta);
}

.metric-label {
  font-size: 0.7rem;
  font-family: var(--font-body);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-portrait {
  position: relative;
}

.portrait-frame {
  width: 250px; height: 250px;
  background: var(--bg-surface);
  border: 2px solid var(--cyan);
  box-shadow: var(--glow-cyan);
  position: relative;
  padding: 5px;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.portrait-img {
  width: 100%; height: 100%;
  object-fit: cover;
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
  filter: contrast(1.1) brightness(0.9) saturate(0.8);
}

.scanline {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 5px;
  background: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 10px var(--cyan);
  animation: scan 6s linear infinite;
  z-index: 2;
}

/* ==========================================================================
   Recruiter Executive Summary (Terminal Cards)
   ========================================================================== */
.section-padding {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--magenta);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: inline-block;
  text-shadow: var(--glow-magenta);
}

.section-heading {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subheading {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 3rem;
  max-width: 700px;
}

.recruiter-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
}

.terminal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.terminal-window:hover {
  transform: translateY(-5px);
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.terminal-header {
  background: var(--bg-surface-elevated);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-medium);
}

.term-dots {
  display: flex;
  gap: 6px;
  margin-right: 1rem;
}

.term-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-medium);
}
.term-dots span:nth-child(1) { background: #ff5f56; }
.term-dots span:nth-child(2) { background: #ffbd2e; }
.term-dots span:nth-child(3) { background: #27c93f; }

.term-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-body);
}

.card-header-icon {
  font-size: 1.5rem;
  color: var(--cyan);
  margin-bottom: 1rem;
  text-shadow: var(--glow-cyan);
}

.terminal-body p {
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.recruiter-roles-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.recruiter-roles-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.prompt {
  color: var(--magenta);
  font-weight: bold;
}

/* ==========================================================================
   Skills Matrix (Modules)
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.module-panel {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  padding: 1.5rem;
  position: relative;
  transition: all var(--transition-fast);
}

.module-panel:hover {
  background: var(--bg-surface);
  border-color: var(--magenta);
}

.panel-corner {
  position: absolute;
  width: 15px; height: 15px;
  border: 2px solid var(--cyan);
}

.panel-corner.top-left { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.panel-corner.bottom-right { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.skill-category-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--cyan);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-pill {
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border-medium);
  background: var(--bg-primary);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: default;
}

.skill-pill.neon-hover:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: inset 0 0 5px var(--cyan-dim), 0 0 5px var(--cyan-dim);
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.filters-bar {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-surface);
  padding: 0.5rem;
  border: 1px solid var(--border-medium);
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.filter-btn:hover {
  color: var(--cyan);
}

.filter-btn.active {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--cyan-dim);
  box-shadow: var(--glow-cyan);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-fast);
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.project-card:hover {
  transform: translateY(-5px) rotate(0.5deg);
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

/* Soft glitch flicker on hover */
.project-card:hover .project-title {
  animation: textGlitch 0.3s steps(2) infinite;
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-badge {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  color: var(--yellow);
  border: 1px solid var(--yellow);
  padding: 0.2rem 0.5rem;
}

.project-category-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.project-title {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.project-details {
  flex-grow: 1;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-details p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.project-details strong {
  color: var(--magenta);
  font-weight: bold;
}

.metric-placeholder {
  background-color: var(--yellow);
  color: var(--bg-primary);
  padding: 0 4px;
  font-weight: bold;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.tech-pill.outlined {
  border: 1px solid var(--border-medium);
  color: var(--cyan);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: transparent;
}

.project-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-top: 1px dashed var(--border-medium);
  padding-top: 1.5rem;
}

.project-actions .btn {
  padding: 0.5rem;
  font-size: 0.75rem;
}

/* ==========================================================================
   Education (Log Entry)
   ========================================================================== */
.timeline-container {
  border-left: 2px solid var(--border-medium);
  padding-left: 2rem;
  position: relative;
}

.cyber-log-entry {
  background: transparent;
  border: 1px solid var(--border-medium);
  padding: 1.5rem;
  position: relative;
  background: var(--bg-surface);
}

.cyber-log-entry::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 1.5rem;
  width: 12px; height: 12px;
  background: var(--magenta);
  border-radius: 0;
  box-shadow: var(--glow-magenta);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.timeline-title {
  font-size: 1.1rem;
  color: var(--cyan);
}

.timeline-institution {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.timeline-period {
  font-size: 0.75rem;
  color: var(--yellow);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--yellow);
  padding: 0.2rem 0.5rem;
}

.timeline-period .pulsing {
  animation: pulseOpacity 1.5s infinite;
}

.timeline-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.neon-text-secondary {
  color: var(--magenta);
  text-shadow: var(--glow-magenta);
}

/* ==========================================================================
   Contact / Footer
   ========================================================================== */
.block-terminal {
  max-width: 600px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.contact-card .section-heading {
  margin-bottom: 1.5rem;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-buttons-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.hud-footer {
  border-top: 1px solid var(--border-medium);
  padding: 2rem 0;
  background: var(--bg-surface-elevated);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.cyberpunk-badge-sm {
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cyan);
  border: 1px solid var(--border-medium);
  padding: 0.3rem 0.6rem;
}

.ci-status-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: var(--glow-cyan);
}

/* ==========================================================================
   Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 18, 0.9);
  backdrop-filter: blur(5px);
}

.cyber-modal {
  position: relative;
  width: 100%;
  max-width: 700px;
  background: var(--bg-surface);
  border: 1px solid var(--cyan);
  padding: 2rem;
  box-shadow: var(--glow-cyan);
  z-index: 1001;
  transform: translateY(20px) scale(0.95);
  transition: all var(--transition-fast);
  max-height: 90vh;
  overflow-y: auto;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.modal-overlay.active .cyber-modal {
  transform: translateY(0) scale(1);
}

.modal-borders {
  position: absolute;
  top: 5px; left: 5px; right: 5px; bottom: 5px;
  border: 1px solid var(--border-medium);
  pointer-events: none;
}

.modal-close-btn {
  position: absolute;
  top: 1rem; right: 1rem;
  color: var(--cyan);
  font-size: 1.5rem;
  z-index: 10;
  transition: color var(--transition-fast);
}
.modal-close-btn:hover { color: var(--magenta); }

.modal-header-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.modal-title {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.modal-tagline {
  color: var(--magenta);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.meta-box h4 {
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 0.5rem;
}

.meta-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.modal-highlights h4, .modal-tech h4 {
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.modal-highlights ul {
  padding-left: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.modal-highlights li { margin-bottom: 0.5rem; }
.modal-tech { margin-bottom: 2rem; }

.modal-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  border-top: 1px solid var(--border-medium);
  padding-top: 1.5rem;
}

/* ==========================================================================
   Animations & Utilities
   ========================================================================== */
@keyframes scan {
  0% { top: -5%; }
  100% { top: 105%; }
}

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

@keyframes pulseOpacity {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes textGlitch {
  0% { transform: translate(0); text-shadow: none; }
  20% { transform: translate(-2px, 1px); text-shadow: 2px 0 var(--magenta); }
  40% { transform: translate(2px, -1px); text-shadow: -2px 0 var(--cyan); }
  60% { transform: translate(-1px, 2px); text-shadow: 2px 0 var(--magenta); }
  80% { transform: translate(1px, -2px); text-shadow: -2px 0 var(--cyan); }
  100% { transform: translate(0); text-shadow: none; }
}

.glitch-text {
  position: relative;
  display: inline-block;
}
.glitch-text:hover {
  animation: textGlitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

/* Toast */
.cyber-toast {
  position: fixed;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-surface);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  box-shadow: var(--glow-cyan);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 2000;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.cyber-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Scroll Reveals */
.reveal-text, .reveal-fade, .reveal-slide-up {
  opacity: 0;
  transition: all 0.8s ease-out;
}
.reveal-slide-up { transform: translateY(30px); }

.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .recruiter-metric-ribbon { justify-content: center; flex-wrap: wrap; }
  .hero-portrait { margin: 0 auto; order: -1; }
  .nav-links { display: none; } /* Could add a hamburger menu, but for brevity hiding on small mobile */
}

/* Enhancements */
html.magenta-mode {
  --cyan: #ff2bd6;
  --cyan-dim: rgba(255, 43, 214, 0.15);
  --magenta: #00f0ff;
  --magenta-dim: rgba(0, 240, 255, 0.15);
  --accent-primary: var(--cyan);
  --accent-primary-hover: #ff75e3;
  --accent-secondary: var(--magenta);
  --accent-secondary-hover: #5cffff;
  --glow-cyan: 0 0 10px rgba(255, 43, 214, 0.5), 0 0 20px rgba(255, 43, 214, 0.3);
  --glow-magenta: 0 0 10px rgba(0, 240, 255, 0.5), 0 0 20px rgba(0, 240, 255, 0.3);
}

.nav-hint {
  font-size: 0.7rem;
  color: var(--yellow);
  font-family: var(--font-body);
  position: absolute;
  right: -75px;
  top: 50%;
  transform: translateY(-50%);
}

@media (hover: none) and (pointer: coarse) {
  .hide-on-touch { display: none !important; }
}

#wireframe-canvas {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}

.cmd-palette-box {
  padding: 1rem;
  max-width: 600px;
}
.cmd-palette-input-wrapper {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--cyan);
  padding: 0.5rem;
  margin-bottom: 1rem;
}
.cmd-palette-input-wrapper .prompt {
  color: var(--magenta);
  margin-right: 0.5rem;
}
#cmd-palette-input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.1rem;
  width: 100%;
  outline: none;
}
.cmd-palette-list {
  list-style: none;
  max-height: 300px;
  overflow-y: auto;
}
.cmd-palette-list li {
  padding: 0.5rem 1rem;
  cursor: pointer;
  color: var(--text-secondary);
  font-family: var(--font-body);
  transition: all var(--transition-fast);
}
.cmd-palette-list li.active, .cmd-palette-list li:hover {
  background: var(--cyan-dim);
  color: var(--cyan);
  box-shadow: inset 2px 0 0 var(--cyan);
}
