:root {
  --bg: #0d1117;
  --text: #e6e6e6;
  --muted: #8b949e;
  --accent-blue: #58a6ff;
  --accent-green: #56d364;
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(148, 163, 184, 0.28);
  --col: min(900px, calc(100% - 2.5rem));
  --header-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 2rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 22, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms, box-shadow 200ms;
}

.site-header.scrolled {
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 1px 20px rgba(0,0,0,0.35);
}

.header-inner {
  width: var(--col);
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: "Inter", sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 150ms;
}

.site-nav a:hover { color: var(--text); }

/* ── MAIN COLUMN ── */
main {
  width: var(--col);
  margin: 0 auto;
  padding-bottom: 6rem;
}

/* ── HERO ── */
.hero {
  padding: 8rem 0 7rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: start;
  border-bottom: 3px solid var(--line-strong);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-eyebrow {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-name {
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-summary {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
}

.hero-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.target-pill {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
}

.target-pill:nth-child(1) {
  background: rgba(26, 86, 219, 0.07);
  color: var(--accent-blue);
  border-color: rgba(26, 86, 219, 0.18);
}

.target-pill:nth-child(2) {
  background: rgba(86, 211, 100, 0.12);
  color: var(--accent-green);
  border-color: rgba(86, 211, 100, 0.22);
}

.target-pill:nth-child(3) {
  background: rgba(9, 65, 60, 0.12);
  color: var(--accent-green);
  border-color: rgba(225, 191, 20, 0.22);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
  justify-content: flex-start;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.95rem;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: transparent;
  transition: background 150ms, border-color 150ms, color 150ms;
}

.btn:hover { background: rgba(17,17,17,0.05); }

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-primary:hover { background: #333; border-color: #333; }

/* Hero socials — vertical column on the right */
.hero-socials {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

/* Hero photo container */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo-container {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #e0e0e0 0%, #f0f0f0 100%);
  z-index: 2;
}

/* ── WAVE DIVIDERS ── */
.wave-divider {
  display: block;
  width: 100%;
  height: 60px;
  margin: 0;
  transform: translateY(1px);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text);
  transition: border-color 150ms, color 150ms, transform 150ms;
}

.social-link:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  transform: translateY(-1px);
}

.social-link svg { width: 1rem; height: 1rem; display: block; }

/* ── SECTIONS ── */
.section {
  padding-top: 7rem;
  padding-bottom: 3rem;
  border-bottom: 3px solid var(--line-strong);
}

.section:last-of-type {
  border-bottom: none;
}

.qualification {
  max-width: 780px;
  margin: 0 auto 2rem;
  padding: 2.5rem 1.5rem 1.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  text-align: center;
}

.qualification-title {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.qualification-subtitle {
  margin: 0 auto;
  max-width: 45ch;
  color: var(--muted);
  font-size: 1rem;
}

.qualification-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.qualification-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: lowercase;
  cursor: pointer;
  transition: border-color 150ms, color 150ms, background 150ms, transform 150ms;
}

.qualification-tab:hover {
  transform: translateY(-1px);
}

.qualification-tab.active {
  border-color: rgba(88, 166, 255, 0.35);
  color: var(--text);
  background: rgba(88, 166, 255, 0.16);
}

.qualification-tab-icon {
  display: inline-flex;
  font-size: 1rem;
}

.qualification-tab-icon {
  display: inline-flex;
  font-size: 1.1rem;
}

.section-label {
  margin: 0 0 2.5rem;
  font-family: "Inter", sans-serif;
  font-size: clamp(2rem, 2.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
  color: var(--text);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

/* ── JOURNEY TABS ── */
.journey-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

/* ── TIMELINE ── */
.timeline {
  display: grid;
  gap: 1rem;
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 2px;
  background: rgba(255, 255, 255, 0.15);
}

.timeline-entry {
  position: relative;
  padding: 1.5rem 1.5rem 1.25rem 2.5rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}

.timeline-entry::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 1.6rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.08);
}

.timeline-entry:hover {
  transform: translateY(-2px);
  border-color: rgba(88, 166, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.timeline-entry:first-child { padding-top: 1.5rem; }
.timeline-entry:last-child { border-bottom: none; }

.timeline-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.timeline-year {
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.timeline-type {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  color: var(--accent-blue);
  text-transform: lowercase;
  background: rgba(88, 166, 255, 0.12);
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}

.timeline-type.edu {
  color: var(--accent-green);
  background: rgba(86, 211, 100, 0.14);
  border-color: rgba(86, 211, 100, 0.22);
}

.timeline-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
}

.timeline-sub {
  margin: 0.4rem 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.timeline-sub {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--muted);
}

.timeline-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.timeline-points li {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
}

.timeline-points li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--muted);
}

/* ── PROJECTS ── */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-entry {
  display: block;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}

.project-entry:first-child { padding-top: 0; }
.project-entry:last-child { border-bottom: none; }

.project-year {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-bottom: 0.5rem;
}

.project-body {}

.project-title {
  margin: 0 0 0.3rem;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.project-desc {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-bottom: 1rem;
}

.stack-tag {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.stack-tag::before { content: "#"; margin-right: 0.1rem; }

.project-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.project-link {
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.2rem;
  transition: color 150ms, border-color 150ms;
}

.project-link:hover { color: var(--accent-blue); border-color: var(--accent-blue); }

/* ── CONTACT ── */
.contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 150ms, border-color 150ms, background 150ms;
}

.contact-link:hover {
  color: var(--text);
  border-color: var(--text);
  background: rgba(17,17,17,0.03);
}

.contact-link svg { width: 0.9rem; height: 0.9rem; flex-shrink: 0; }

/* ── FOOTER ── */
.site-footer {
  background: rgba(10, 14, 22, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3.5rem 0 2.5rem;
}

.footer-inner {
  width: var(--col);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
}

.footer-copywriting {
  max-width: 28rem;
}

.footer-name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.footer-summary {
  margin: 0.5rem 0 0;
  max-width: 38ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-copy {
  width: var(--col);
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  text-align: center;
  color: var(--muted);
}

/* ── SCROLL UP ── */
.scrollup {
  position: fixed;
  right: 2rem;
  bottom: -20%;
  background: var(--text);
  color: #111;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: bottom 0.3s ease, background 150ms, opacity 150ms;
  z-index: 99;
}

.scrollup svg { width: 1.2rem; height: 1.2rem; }
.scrollup:hover {
  background: #242b36;
  color: #fff;
  opacity: 1;
}
.scrollup.show-scroll { bottom: 3rem; }

@media (max-width: 600px) {
  .scrollup { right: 1rem; }
  .scrollup.show-scroll { bottom: 1.5rem; }
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  :root {
    --col: min(100% - 1.5rem, 900px);
    --header-h: 94px;
  }

  body {
    font-size: 1rem;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    height: auto;
    min-height: var(--header-h);
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.65rem 0;
  }

  .brand {
    font-size: 1.45rem;
    line-height: 1;
  }

  .site-nav {
    width: 100%;
    gap: 0.85rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
  }

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

  .site-nav a {
    flex: 0 0 auto;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }

  .footer-inner {
    flex-direction: column;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 0 3.5rem;
    gap: 1.5rem;
  }

  .hero-right,
  .hero-socials {
    order: -1;
  }

  .hero-socials {
    flex-direction: row;
  }

  .hero-name { font-size: clamp(2.4rem, 12vw, 3.5rem); }

  .hero-photo-container {
    width: min(72vw, 270px);
    height: min(72vw, 270px);
    margin: 0 auto;
  }

  .hero-photo {
    width: min(68vw, 250px);
    height: min(68vw, 250px);
  }

  .section {
    padding-top: 4rem;
    padding-bottom: 2.5rem;
  }

  .section-label {
    margin-bottom: 1.75rem;
    font-size: 2rem;
  }

  .timeline {
    gap: 0.85rem;
    padding: 0.8rem;
    border-radius: 1rem;
  }

  .timeline-entry {
    padding: 1rem;
    border-radius: 0.9rem;
  }

  .timeline-entry::before {
    display: none;
  }

  .timeline::before {
    display: none;
  }

  .timeline-top {
    gap: 0.55rem;
    margin-bottom: 0.65rem;
  }

  .timeline-year {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .timeline-type {
    font-size: 0.66rem;
    padding: 0.2rem 0.55rem;
  }

  .timeline-title {
    font-size: 1.05rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .timeline-sub {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .timeline-points {
    gap: 0.5rem;
  }

  .timeline-points li {
    font-size: 0.9rem;
    line-height: 1.5;
    padding-left: 0.85rem;
  }

  .project-entry {
    padding: 1.75rem 0;
  }

  .site-nav { gap: 1rem; }
}
