:root {
  --background: #031427;
  --surface-low: #0b1c30;
  --surface: #102034;
  --surface-high: #1b2b3f;
  --surface-bright: #26364a;
  --text: #d3e4fe;
  --muted: #c6c6cd;
  --dim: #909097;
  --line: #45464d;
  --primary: #bec6e0;
  --secondary: #7bd0ff;
  --tertiary: #a4d64c;
  --button-text: #00354a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 12%, rgba(123, 208, 255, 0.12), transparent 24rem),
    radial-gradient(circle at 84% 30%, rgba(164, 214, 76, 0.08), transparent 22rem),
    linear-gradient(to right, rgba(144, 144, 151, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(144, 144, 151, 0.05) 1px, transparent 1px),
    var(--background);
  background-size: auto, auto, 40px 40px, 40px 40px, auto;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  background: rgba(3, 20, 39, 0.72);
  backdrop-filter: blur(14px);
}

.wordmark,
.label,
.button,
.nav-action,
.chips span,
.stack-list span {
  font-family: "JetBrains Mono", monospace;
}

.wordmark {
  color: var(--primary);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.topbar nav a {
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.topbar nav a:hover {
  color: var(--secondary);
}

.nav-action {
  padding: 12px 18px;
  border-radius: 4px;
  color: var(--button-text);
  background: var(--secondary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

main {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.hero {
  min-height: 680px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-copy {
  flex: 1 1 760px;
  position: relative;
}

.hero-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -90px;
  left: -90px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(123, 208, 255, 0.1);
  filter: blur(50px);
}

.label {
  display: inline-block;
  margin: 0 0 16px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

h2 {
  max-width: 780px;
  margin-bottom: 30px;
  color: var(--text);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 22px;
  line-height: 1.25;
}

.lead {
  max-width: 720px;
  padding-left: 18px;
  border-left: 2px solid var(--secondary);
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

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

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.button.primary {
  color: var(--button-text);
  background: var(--secondary);
}

.button.ghost {
  border: 1px solid var(--line);
  color: var(--primary);
}

.button:hover,
.nav-action:hover {
  filter: brightness(1.08);
}

.metrics {
  flex: 0 0 330px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.metrics article,
.timeline-card,
.system-card,
.stack-panel,
.preferred-panel,
.education-panel,
.contact-panel {
  border: 1px solid rgba(144, 144, 151, 0.22);
  border-radius: 6px;
  background: rgba(16, 32, 52, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.metrics article {
  padding: 18px;
}

.metrics span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metrics strong {
  display: block;
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 24px;
}

.metrics small {
  color: var(--dim);
}

.section {
  padding: 72px 0;
}

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

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

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, var(--line), transparent);
}

.timeline article {
  position: relative;
  display: flex;
  width: 100%;
  margin-bottom: 28px;
}

.timeline article:nth-child(odd) {
  justify-content: flex-end;
}

.timeline article:nth-child(even) {
  justify-content: flex-start;
}

.marker {
  position: absolute;
  top: 30px;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border: 2px solid var(--secondary);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 16px rgba(123, 208, 255, 0.35);
}

.timeline-card {
  width: calc(50% - 44px);
  padding: 24px;
}

.timeline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.timeline-head p {
  margin-bottom: 0;
  color: var(--secondary);
}

.timeline-head span {
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 4px;
  color: var(--secondary);
  background: rgba(123, 208, 255, 0.1);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
}

.timeline-card > p,
.system-card p,
.stack-list p,
.contact-panel p {
  color: var(--muted);
  line-height: 1.62;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chips span {
  padding: 5px 8px;
  border: 1px solid rgba(144, 144, 151, 0.3);
  border-radius: 4px;
  color: var(--primary);
  background: var(--surface-high);
  font-size: 12px;
}

.systems {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.system-card {
  flex: 1 1 250px;
  min-height: 360px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.system-card {
  padding: 24px;
}

.system-card:hover,
.metrics article:hover,
.timeline-card:hover {
  border-color: rgba(123, 208, 255, 0.7);
  box-shadow: inset 0 0 18px rgba(123, 208, 255, 0.08), var(--shadow);
}

.system-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--secondary);
  font-family: "JetBrains Mono", monospace;
}

.stack-panel,
.preferred-panel,
.education-panel,
.contact-panel {
  display: flex;
  gap: 32px;
  padding: 28px;
}

.stack-panel > div:first-child,
.preferred-panel > div:first-child,
.education-panel > div:first-child,
.contact-panel > div:first-child {
  flex: 1 1 360px;
}

.stack-list,
.preferred-list,
.education-list,
.contact-card {
  flex: 1 1 520px;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.stack-list div {
  flex: 1 1 230px;
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(144, 144, 151, 0.22);
  background: rgba(3, 20, 39, 0.35);
}

.stack-list span {
  color: var(--tertiary);
  font-size: 12px;
  font-weight: 800;
}

.stack-list p {
  margin-bottom: 0;
}

.preferred-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}

.preferred-list span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(144, 144, 151, 0.28);
  border-radius: 4px;
  color: var(--primary);
  background: rgba(3, 20, 39, 0.38);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
}

.preferred-list span:hover {
  color: var(--secondary);
  border-color: var(--secondary);
}

.education-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.education-list article {
  padding: 16px;
  border: 1px solid rgba(144, 144, 151, 0.22);
  border-radius: 4px;
  background: rgba(3, 20, 39, 0.35);
}

.education-list span {
  display: block;
  margin-bottom: 7px;
  color: var(--tertiary);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
}

.education-list h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.education-list p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.62;
}

.contact-panel {
  align-items: stretch;
  overflow: hidden;
  position: relative;
}

.contact-panel::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: rgba(123, 208, 255, 0.08);
  filter: blur(42px);
  pointer-events: none;
}

.contact-copy {
  position: relative;
  z-index: 1;
}

.contact-copy p:last-child {
  max-width: 680px;
  margin-bottom: 0;
}

.contact-card {
  position: relative;
  z-index: 1;
  padding: 18px;
  border: 1px solid rgba(144, 144, 151, 0.24);
  border-radius: 6px;
  background: rgba(3, 20, 39, 0.36);
}

.contact-email {
  display: block;
  padding: 18px;
  border: 1px solid rgba(123, 208, 255, 0.42);
  border-radius: 6px;
  color: var(--text);
  background: linear-gradient(135deg, rgba(123, 208, 255, 0.16), rgba(164, 214, 76, 0.06));
  text-decoration: none;
}

.contact-email span,
.contact-meta span {
  display: block;
  margin-bottom: 7px;
  color: var(--secondary);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-email strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 20px;
}

.contact-meta {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.contact-meta div {
  flex: 1 1 0;
  padding: 14px;
  border: 1px solid rgba(144, 144, 151, 0.22);
  border-radius: 6px;
  background: rgba(16, 32, 52, 0.62);
}

.contact-meta strong {
  color: var(--primary);
  line-height: 1.4;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.contact-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 120px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--primary);
  background: rgba(16, 32, 52, 0.7);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.contact-email:hover,
.contact-links a:hover {
  color: var(--secondary);
  border-color: var(--secondary);
  box-shadow: inset 0 0 18px rgba(123, 208, 255, 0.08);
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar nav {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .hero,
  .stack-panel,
  .preferred-panel,
  .education-panel,
  .contact-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .metrics {
    flex-basis: auto;
  }

  .timeline::before {
    left: 5px;
  }

  .marker {
    left: 0;
  }

  .timeline article,
  .timeline article:nth-child(odd),
  .timeline article:nth-child(even) {
    justify-content: flex-start;
    padding-left: 30px;
  }

  .timeline-card {
    width: 100%;
  }
}

@media (max-width: 560px) {
  main,
  .topbar {
    width: min(100% - 28px, 1280px);
  }

  main {
    padding-top: 36px;
  }

  h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 16px;
  }

  .timeline-head {
    flex-direction: column;
  }

  .contact-meta {
    flex-direction: column;
  }
}
