:root {
  color-scheme: dark;
  --bg: #030712;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.2);
  --blue: #60a5fa;
  --cyan: #22d3ee;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(37, 99, 235, 0.24), transparent 28rem),
    radial-gradient(circle at 90% 10%, rgba(34, 211, 238, 0.16), transparent 24rem),
    var(--bg);
}

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

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

.shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(96, 165, 250, 0.45);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(34, 211, 238, 0.6));
  color: white;
  box-shadow: 0 18px 60px rgba(37, 99, 235, 0.3);
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: var(--muted);
  font-size: 0.95rem;
  backdrop-filter: blur(18px);
}

.nav-links a:hover,
.active {
  color: white;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: center;
  padding: 58px 0 76px;
}

.eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 999px;
  color: #bfdbfe;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.72);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: -0.08em;
}

.prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0;
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.cursor {
  width: 9px;
  height: 18px;
  background: var(--cyan);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.7);
}

.lede {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
}

.typewriter-copy::after {
  display: inline-block;
  width: 0.65ch;
  height: 1.05em;
  margin-left: 3px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.55);
  content: "";
  transform: translateY(0.18em);
  animation: typewriter-blink 900ms steps(2, start) infinite;
}

@keyframes typewriter-blink {
  50% {
    opacity: 0;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: white;
  font-weight: 700;
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  box-shadow: 0 18px 50px rgba(37, 99, 235, 0.25);
}

.cred-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.cred-strip div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.58);
}

.cred-strip strong,
.cred-strip span {
  display: block;
}

.cred-strip strong {
  margin-bottom: 6px;
  color: white;
  font-size: 1.05rem;
}

.cred-strip span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.portrait-card {
  position: relative;
  max-width: 430px;
  justify-self: end;
  padding: 12px;
  border: 1px solid rgba(96, 165, 250, 0.26);
  border-radius: 36px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.62));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.portrait-card::before {
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: 48px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.32), rgba(34, 211, 238, 0.12));
  content: "";
  transform: rotate(-4deg);
}

.portrait-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 28px;
}

.availability {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  max-width: 240px;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.86);
  color: #dbeafe;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
}

.availability span {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.9);
}

.section {
  padding: 68px 0;
  border-top: 1px solid var(--line);
}

.section.compact {
  padding: 44px 0;
}

.section h2 {
  margin-bottom: 28px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  letter-spacing: -0.05em;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 1;
}

.skill-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-strip span {
  padding: 12px 15px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #cbd5e1;
  font-weight: 700;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stack-card {
  padding: 22px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.5));
}

.stack-card h3 {
  margin-bottom: 10px;
}

.stack-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.card,
.timeline-item {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.card:hover,
.timeline-item:hover {
  border-color: rgba(96, 165, 250, 0.38);
  background: rgba(15, 23, 42, 0.92);
  transform: translateY(-3px);
}

.card h3,
.timeline-item h3 {
  margin-bottom: 8px;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: #bfdbfe;
  font-weight: 800;
}

.text-link::after {
  margin-left: 8px;
  content: "->";
}

.meta,
.tagline {
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 700;
}

.muted,
.card p,
.timeline-item p {
  color: var(--muted);
  line-height: 1.7;
}

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

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.26), transparent 22rem),
    rgba(15, 23, 42, 0.78);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.contact-panel h2 {
  margin: 14px 0;
}

.contact-panel p {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resume-frame {
  width: 100%;
  min-height: 76vh;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel-strong);
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 32px, 1080px);
  }

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

  .nav {
    gap: 16px;
    padding: 18px 0 10px;
  }

  .nav-links {
    width: 100%;
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    border-radius: 22px;
    padding: 8px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
  }

  .hero,
  .grid,
  .cred-strip,
  .stack-grid,
  .contact-panel,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 34px;
    padding: 14px 0 48px;
  }

  h1 {
    font-size: clamp(3.8rem, 16vw, 5.2rem);
  }

  .prompt {
    margin: 16px 0;
  }

  .portrait-card {
    justify-self: stretch;
    max-width: none;
  }
}
