:root {
  --bg: #080b0d;
  --panel: rgba(12, 18, 21, 0.82);
  --panel-strong: rgba(10, 14, 16, 0.94);
  --line: rgba(0, 255, 140, 0.28);
  --text: #f4fff9;
  --muted: #9db3ad;
  --green: #00ff8c;
  --cyan: #00d9ff;
  --red: #ff4d66;
  --yellow: #ffd166;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Courier New", Courier, monospace;
  line-height: 1.6;
  overflow-x: hidden;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.scroll-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--yellow));
  box-shadow: 0 0 18px rgba(0, 255, 140, 0.65);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

a {
  color: inherit;
}

#matrix {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.28;
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #000;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.boot-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.boot-card {
  width: min(760px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.74);
  box-shadow: 0 0 40px rgba(0, 255, 140, 0.2);
}

.ascii {
  margin: 0 0 24px;
  overflow: auto;
  color: var(--green);
  font-size: clamp(0.48rem, 1.6vw, 0.82rem);
  line-height: 1.15;
  text-shadow: 0 0 18px rgba(0, 255, 140, 0.5);
}

.boot-lines p {
  margin: 8px 0;
  color: var(--muted);
}

.boot-lines span {
  color: var(--cyan);
}

.boot-bar {
  height: 5px;
  margin: 24px 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.boot-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  animation: bootFill 2.8s ease forwards;
}

.skip-boot,
.button {
  min-height: 44px;
  border: 1px solid var(--green);
  border-radius: 6px;
  padding: 0.85rem 1.2rem;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.skip-boot:hover,
.button.primary:hover {
  background: var(--green);
  color: #04110c;
  transform: translateY(-2px);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 13, 0.84);
  backdrop-filter: blur(16px);
}

.logo {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(9px, 1.25vw, 18px);
}

.nav-links a {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--green);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--green);
}

.section-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 96px 0;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  padding-top: 128px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.92rem;
  text-transform: lowercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(3.25rem, 8vw, 7.8rem);
  line-height: 0.9;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
}

h3 {
  margin: 0;
  line-height: 1.25;
}

.subtitle,
.lead {
  color: #d3e6df;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.status-strip article {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(0, 217, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(0, 217, 255, 0.06);
}

.status-strip span {
  color: var(--muted);
  font-size: 0.84rem;
}

.status-strip strong {
  color: var(--text);
  line-height: 1.3;
}

.button.secondary {
  border-color: var(--cyan);
  color: var(--cyan);
}

.button.secondary:hover {
  background: var(--cyan);
  color: #021015;
  transform: translateY(-2px);
}

.terminal-window,
.panel,
.code-card,
.project-card,
.contact-form,
.command-console,
.radar-panel,
.triage-panel,
.playbook-step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28), 0 0 30px rgba(0, 255, 140, 0.08);
}

.terminal-window {
  overflow: hidden;
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.terminal-top p {
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 0.85rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red { background: var(--red); }
.yellow { background: var(--yellow); }
.green { background: var(--green); }

.terminal-body {
  padding: clamp(18px, 3vw, 28px);
}

.terminal-body p {
  margin: 0 0 10px;
}

.terminal-body a {
  color: var(--cyan);
  text-decoration: none;
}

.prompt {
  color: var(--green);
}

.output {
  color: var(--muted);
}

.cursor::after {
  content: "_";
  color: var(--green);
  animation: blink 1s infinite;
}

.section-heading {
  margin-bottom: 34px;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 24px;
}

.panel,
.contact-form {
  padding: clamp(20px, 4vw, 32px);
}

.panel p {
  color: var(--muted);
}

.code-card {
  overflow: hidden;
}

.code-card pre {
  margin: 0;
  padding: 22px;
  overflow: auto;
  color: #d9fff0;
}

.stats-grid,
.skills-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.competency-grid,
.cert-grid,
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.competency-grid article,
.cert-card {
  border: 1px solid rgba(0, 217, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(0, 217, 255, 0.06);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22), 0 0 30px rgba(0, 255, 140, 0.06);
}

.competency-grid article {
  min-height: 112px;
  display: grid;
  align-content: center;
  padding: 22px;
  color: #d3e6df;
}

.cert-card {
  min-height: 250px;
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cert-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: 0 24px 80px rgba(0, 255, 140, 0.12);
}

.cert-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 0.9rem;
}

.cert-card h3 {
  color: var(--green);
  margin-bottom: 12px;
}

.cert-card p {
  color: var(--muted);
}

.summary-panel {
  margin-top: 24px;
}

.summary-panel h3,
.focus-grid h3 {
  color: var(--green);
  margin-bottom: 14px;
}

.summary-panel p,
.focus-grid p {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-list span {
  border: 1px solid rgba(0, 255, 140, 0.28);
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  background: rgba(0, 255, 140, 0.08);
  color: var(--green);
  font-size: 0.86rem;
}

.clean-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.clean-list li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--green);
}

.intel-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr) minmax(260px, 0.75fr);
  gap: 18px;
  align-items: stretch;
}

.triage-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1fr);
  gap: 18px;
}

.triage-panel {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 4vw, 32px);
}

.triage-panel label {
  color: var(--green);
  font-weight: 700;
}

.triage-panel textarea {
  width: 100%;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.triage-result {
  min-height: 100%;
}

.triage-result p {
  color: var(--muted);
}

#triageBadge {
  border: 1px solid rgba(0, 255, 140, 0.34);
  border-radius: 999px;
  padding: 0.3rem 0.62rem;
  color: var(--green);
  font-size: 0.8rem;
}

#triageBadge.warning {
  border-color: rgba(255, 209, 102, 0.45);
  color: var(--yellow);
}

#triageBadge.alert {
  border-color: rgba(255, 77, 102, 0.48);
  color: var(--red);
}

.playbook-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.playbook-step {
  min-height: 250px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.playbook-step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 140, 0.1), transparent 45%);
  pointer-events: none;
}

.playbook-step span {
  color: var(--cyan);
  font-weight: 800;
  position: relative;
}

.playbook-step h3,
.playbook-step p {
  position: relative;
}

.playbook-step h3 {
  color: var(--green);
}

.playbook-step p {
  color: var(--muted);
}

.radar-panel {
  display: grid;
  gap: 18px;
  align-content: center;
  padding: 24px;
  overflow: hidden;
}

.radar {
  position: relative;
  width: min(300px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 1px solid rgba(0, 255, 140, 0.45);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 24%, rgba(0, 255, 140, 0.14) 25% 25.8%, transparent 26% 49%, rgba(0, 217, 255, 0.16) 50% 50.8%, transparent 51% 74%, rgba(0, 255, 140, 0.14) 75% 75.8%, transparent 76%),
    linear-gradient(rgba(0, 255, 140, 0.2), rgba(0, 255, 140, 0.2)) center / 1px 100% no-repeat,
    linear-gradient(90deg, rgba(0, 255, 140, 0.2), rgba(0, 255, 140, 0.2)) center / 100% 1px no-repeat;
  box-shadow: inset 0 0 30px rgba(0, 255, 140, 0.12), 0 0 34px rgba(0, 217, 255, 0.08);
}

.radar-sweep {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 48%;
  height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
  transform-origin: left center;
  animation: radarSweep 3.6s linear infinite;
}

.radar i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 16px var(--yellow);
  animation: pulsePoint 1.8s ease-in-out infinite;
}

.radar-caption {
  display: grid;
  gap: 2px;
  text-align: center;
}

.radar-caption strong,
.quick-facts strong {
  color: var(--text);
}

.radar-caption span,
.quick-facts span {
  color: var(--muted);
}

.intel-feed {
  min-height: 100%;
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.feed-header h3 {
  color: var(--green);
}

#intelClock {
  color: var(--cyan);
  white-space: nowrap;
}

.feed-list {
  display: grid;
  gap: 10px;
}

.feed-list p {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(0, 217, 255, 0.18);
  border-radius: 6px;
  background: rgba(0, 217, 255, 0.055);
  color: var(--muted);
}

.feed-list span {
  color: var(--green);
}

.quick-facts {
  display: grid;
  gap: 18px;
}

.quick-facts article {
  display: grid;
  gap: 8px;
  min-height: 118px;
  align-content: center;
  padding: 22px;
  border: 1px solid rgba(0, 217, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(0, 217, 255, 0.06);
}

.stats-grid article {
  min-height: 132px;
  display: grid;
  align-content: center;
  padding: 24px;
  border: 1px solid rgba(0, 217, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(0, 217, 255, 0.06);
}

.stats-grid strong {
  color: var(--green);
  font-size: 2.2rem;
  line-height: 1;
}

.stats-grid span {
  color: var(--muted);
}

.skill-card h3 {
  color: var(--green);
  margin-bottom: 20px;
}

.meter {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
}

.meter i {
  display: block;
  width: 0;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transition: width 1s ease;
}

.meter::after {
  content: "";
  height: 8px;
  margin-top: -16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  z-index: -1;
}

.timeline {
  display: grid;
  gap: 18px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--green), var(--cyan));
}

.timeline-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 18px;
}

.timeline-item > span {
  width: 22px;
  height: 22px;
  margin-top: 8px;
  border: 4px solid var(--bg);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 24px rgba(0, 255, 140, 0.6);
  z-index: 1;
}

.timeline-item > div {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.timeline-item p {
  margin: 0 0 10px;
  color: var(--muted);
}

.timeline-item div > p:first-child {
  color: var(--cyan);
}

.project-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.filter-button,
.copy-button,
.console-form button {
  min-height: 40px;
  border: 1px solid rgba(0, 217, 255, 0.38);
  border-radius: 6px;
  padding: 0.62rem 0.9rem;
  background: rgba(0, 217, 255, 0.055);
  color: var(--cyan);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.filter-button:hover,
.filter-button.active,
.copy-button:hover,
.console-form button:hover {
  border-color: var(--green);
  background: var(--green);
  color: #04110c;
  transform: translateY(-1px);
}

.project-card.hidden {
  display: none;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--green);
  box-shadow: 0 24px 80px rgba(0, 255, 140, 0.14);
}

.project-card h3 {
  color: var(--green);
  font-size: 1.4rem;
}

.project-card p {
  color: var(--muted);
}

.project-index {
  color: var(--cyan) !important;
  margin: 0 0 22px;
}

.project-card a {
  margin-top: auto;
  color: var(--cyan);
  font-weight: 700;
  text-decoration: none;
}

.command-console {
  overflow: hidden;
}

.console-output {
  min-height: 280px;
  max-height: 360px;
  overflow: auto;
  padding: 22px;
}

.console-output p {
  margin: 0 0 10px;
}

.console-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
}

.console-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(0, 255, 140, 0.24);
  border-radius: 6px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font: inherit;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact-links a {
  color: var(--cyan);
  text-decoration: none;
}

.copy-button {
  margin-top: 20px;
}

.copy-status {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--green) !important;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--green);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font: inherit;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

footer {
  padding: 32px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  text-align: center;
  background: var(--panel-strong);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 12;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-strong);
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.back-to-top:hover {
  background: var(--green);
  color: #04110c;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.visible {
  animation: fadeUp 0.7s ease forwards;
}

@media (max-width: 860px) {
  .menu-button {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 77px;
    left: 18px;
    right: 18px;
    display: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-strong);
  }

  .nav-links.open {
    display: grid;
  }

  .hero,
  .about-grid,
  .contact-grid,
  .intel-grid,
  .triage-grid,
  .stats-grid,
  .skills-grid,
  .projects-grid,
  .status-strip,
  .competency-grid,
  .cert-grid,
  .focus-grid,
  .playbook-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 116px;
  }

  .section-shell {
    padding: 72px 0;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-inline: 14px;
  }

  .section-shell {
    width: min(100% - 28px, 1180px);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    text-align: center;
  }

  .console-form {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .console-form button {
    grid-column: 1 / -1;
  }
}
