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

:root {
  --bg: #090b09;
  --panel: #10140f;
  --panel-2: #151b13;
  --text: #f2f4f1;
  --muted: #9aa79c;
  --line: rgba(255,255,255,.08);
  --green-dark: #143423;
  --green: #22c55e;
  --green-bright: #4ade80;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(34,197,94,.10), transparent 32%),
    radial-gradient(circle at 88% 15%, rgba(74,222,128,.06), transparent 30%);
}

.bg-grid {
  position: absolute;
  top: -140px;
  left: 0;
  right: 0;
  height: calc(100% + 140px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cg fill='none' stroke='%23234a34' stroke-width='1' opacity='0.4'%3E%3Cpath d='M70 0 V45 M70 45 L38 90 M70 45 L102 90 M38 90 V140 M102 90 V140'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 140px 140px;
}

.bg-pulses {
  position: absolute;
  top: -140px;
  left: 0;
  width: 100%;
  height: calc(100% + 140px);
}

.pulse-line {
  fill: none;
  stroke: var(--green-bright);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 22 100;
  stroke-dashoffset: 100;
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(74,222,128,.65));
  animation: pulseTravel 5.5s ease-in-out infinite;
}

@keyframes pulseTravel {
  0%   { stroke-dashoffset: 100; opacity: 0; }
  8%   { opacity: .65; }
  48%  { stroke-dashoffset: 0; opacity: .65; }
  60%  { opacity: 0; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-grid,
  .pulse-line {
    animation: none;
  }
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(94%, 1100px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9,11,9,.78);
  backdrop-filter: blur(18px);
  animation: headerGlow 8s ease-in-out infinite;
}

@keyframes headerGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(74,222,128,0); }
  50%      { box-shadow: 0 0 18px rgba(74,222,128,.12); }
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    animation: none;
  }
}

.logo {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

.logo span,
.hero h1 span {
  background: linear-gradient(90deg, var(--green), var(--green-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a,
.social-row a {
  color: var(--muted);
  transition: .2s ease;
}

.nav a:hover,
.social-row a:hover {
  color: var(--text);
}

.header-cta {
  padding: 9px 15px;
  background: var(--text);
  color: #0d120f;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px;
  background: white;
}

.section {
  width: min(1120px, 90%);
  margin: 0 auto;
  padding: 110px 0;
}

.hero {
  width: min(1120px, 90%);
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 70px;
  padding-top: 150px;
}

.eyebrow {
  color: var(--green-bright);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  line-height: .96;
  letter-spacing: -.065em;
  max-width: 850px;
}

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

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.primary {
  background: linear-gradient(90deg, var(--green), var(--green-bright));
  color: #06120a;
}

.secondary {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  font-size: .88rem;
}

.social-row a {
  border: 1px solid var(--line);
  background: rgba(34,197,94,.06);
  border-radius: 999px;
  padding: 9px 16px;
}

.social-row a:hover {
  border-color: rgba(74,222,128,.4);
  background: rgba(34,197,94,.12);
}

.hero-card {
  position: relative;
  min-height: 440px;
  display: grid;
  place-items: center;
}

.code-card {
  position: relative;
  width: min(100%, 400px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(24,30,22,.97);
  box-shadow: 0 30px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(74,222,128,.06);
}

.code-top {
  display: flex;
  gap: 7px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.code-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #33392f;
}

.code-card pre {
  padding: 28px;
  overflow: auto;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .92rem;
  line-height: 1.75;
  color: var(--text);
}

.code-card .muted { color: var(--muted); }
.code-card .key { color: var(--text); }
.code-card .str { color: var(--green-bright); }
.code-card .accent { color: var(--green); }

.big-heading {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  letter-spacing: -.05em;
  line-height: 1;
  margin-bottom: 48px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
}

.about-copy,
.skills-card,
.experience-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(34,197,94,.06), rgba(255,255,255,.015));
  border-radius: 22px;
}

.about-copy {
  padding: 34px;
  color: var(--muted);
  font-size: 1.06rem;
}

.about-copy p + p {
  margin-top: 18px;
}

.skills-card {
  padding: 34px;
}

.skills-card h3 {
  margin-bottom: 8px;
}

.skills-caption {
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 18px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips span {
  border: 1px solid var(--line);
  background: rgba(34,197,94,.06);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: .88rem;
}

.timeline {
  display: grid;
  gap: 20px;
}

.experience-card {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 30px;
  padding: 30px;
}

.card-kicker {
  color: var(--green-bright);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  margin-bottom: 7px;
}

.org {
  margin-top: 6px;
  color: var(--muted);
  font-size: .88rem;
}

.experience-card p:last-child {
  color: var(--muted);
}

.contact-section {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
}

.contact-section h2 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  letter-spacing: -.05em;
  line-height: 1;
}

.contact-section p {
  max-width: 620px;
  margin-top: 18px;
  color: var(--muted);
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

footer {
  width: min(1120px, 90%);
  margin: 0 auto;
  padding: 35px 0 50px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: .88rem;
}

footer .logo {
  color: var(--text);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 170px;
  }

  .hero-card {
    min-height: 300px;
  }

  .about-grid,
  .experience-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    border-radius: 24px;
  }

  .menu-btn {
    display: block;
    order: 3;
  }

  .header-cta {
    display: none;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(9,11,9,.96);
    backdrop-filter: blur(18px);
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .contact-section,
  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions,
  .social-row {
    flex-wrap: wrap;
  }

  .section {
    padding: 85px 0;
  }
}