:root {
  --bg: #fafaf9;
  --bg-card: #ffffff;
  --text: #0a0a0a;
  --muted: #6b6b6b;
  --muted-2: #bdbdbb;
  --accent: #1a8cff;
  --line: #e6e6e4;
  --line-strong: #ececea;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
}

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

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 6vw;
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}

.nav-name { font-weight: 700; letter-spacing: 0.2px; font-size: 18px; }

.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--text); }
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  background: var(--text);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 500;
}
.nav-cta:hover { background: #1f1f1f; color: #fff !important; }

.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 200;
  width: 0%;
  transition: width 0.1s linear;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 140px 6vw 60px;
  position: relative;
}

.hero-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  margin-bottom: 36px;
}

.chat-bubble {
  position: relative;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  padding: 18px 26px;
  border-radius: 22px 22px 22px 4px;
  max-width: 420px;
  margin-bottom: 8px;
  box-shadow: 0 10px 30px rgba(26,140,255,0.25);
}

.chat-delivered {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  box-shadow: none;
  margin-top: 10px;
  font-weight: 400;
  text-align: center;
}

.scroll-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text);
  margin: 20px 0 40px;
}

.hero h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  line-height: 1.1;
  max-width: 920px;
  letter-spacing: -1px;
}

.hero h1 .muted { color: var(--muted-2); }

.hero-sub {
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---------- Timeline ---------- */
.timeline {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 6vw 160px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: calc(6vw + 1px);
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.chapter {
  padding: 90px 0 90px 46px;
  position: relative;
  will-change: opacity, filter, transform;
}

.chapter::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 94px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text);
}

.chapter-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.chapter h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  line-height: 1.25;
  margin-bottom: 22px;
  max-width: 640px;
  letter-spacing: -0.5px;
}

.chapter p {
  color: #333;
  font-size: 17px;
  max-width: 600px;
  margin-bottom: 14px;
}

.next-tag {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Stat card ---------- */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 520px;
  margin: 24px 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.stat-number {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  color: var(--text);
  letter-spacing: -1px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.stat-unit {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-caption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  max-width: 400px;
}

/* ---------- Skills / projects grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 28px;
  max-width: 600px;
}

.grid-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--bg-card);
}

.grid-item .label { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.grid-item .value { font-weight: 700; font-size: 16px; }

.meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
}

/* ---------- Closing / CTA ---------- */
.closing {
  text-align: center;
  padding: 150px 6vw 100px;
  border-top: 1px solid var(--line);
}

.closing-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.closing h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 3rem);
  max-width: 760px;
  margin: 0 auto 24px;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.closing p { color: var(--muted); max-width: 560px; margin: 0 auto 40px; font-size: 16px; }

.social-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.social-btn {
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.social-btn:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

footer {
  text-align: center;
  padding: 30px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
  .nav-links { gap: 14px; font-size: 13px; }
  .timeline::before { left: calc(6vw + 1px); }
  .chapter { padding: 70px 0 70px 30px; }
  .closing { padding: 100px 6vw 70px; }
}
