:root {
  --blue: #2f6bff;
  --ink: #14151a;
  --gray: #6b7280;
  --line: #e6e8ee;
  --panel: #eef0f4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #eef1f6;
  color: var(--ink);
}

.page {
  min-height: 100vh;
  padding: 48px 20px;
}

.card {
  width: 100%;
  max-width: 1400px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(20, 21, 26, 0.14);
  overflow: hidden;
}

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

.nav-brand { display: flex; align-items: center; gap: 12px; }

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #dfe4ee, #c9cfda);
  flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.brand-name { font-weight: 600; font-size: 16px; }

.nav-social { display: flex; gap: 10px; }
.social-pill {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f4f5f8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
}
.social-pill--text { font-weight: 700; font-size: 14px; }

.menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  padding: 40px 0 0;
  position: relative;
}

.hero-left {
  padding: 40px 20px 60px 48px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.tag-outline {
  display: inline-block;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  width: fit-content;
}

.headline {
  font-size: 58px;
  line-height: 1.05;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.5px;
}

.headline-chip {
  display: inline-block;
  width: 130px;
  height: 74px;
  vertical-align: middle;
  margin: 0 6px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(20,21,26,0.15);
  transform: translateY(-4px);
}
.headline-chip svg { display: block; }

.headline-accent {
  display: block;
  color: var(--blue);
}

.lede {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
  max-width: 420px;
  margin: 0;
}

.cta-row { display: flex; align-items: center; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  padding-right: 8px;
}
.btn-play {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-play svg path { fill: #fff; }

.btn-outline {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.hero-divider {
  width: 1px;
  background: var(--line);
  margin: 20px 0 0;
}

.hero-right {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, var(--panel) 25%, transparent 25%),
    linear-gradient(-45deg, var(--panel) 25%, transparent 25%);
  background-size: 64px 64px;
  background-color: #fafbfc;
  opacity: 0.7;
}


.portrait {
  position: relative;
  width: 78%;
  max-width: 520px;
  height: 92%;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  z-index: 2;
  background: linear-gradient(180deg, #e7eaf1, #d3d8e2);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
/* Marquee */
.marquee {
  background: var(--blue);
  overflow: hidden;
  padding: 18px 0;
  margin-top: 30px;
  box-shadow: 0 14px 30px rgba(47,107,255,0.35);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll 22s linear infinite;
}
.marquee-track span {
  white-space: nowrap;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  padding-right: 0;
}
.marquee-track b {
  color: #fff;
  font-weight: 400;
  margin: 0 26px;
  opacity: 0.8;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section {
  padding: 64px 48px;
}
.section--tint { background: #f7f8fb; }

.section-tag {
  display: block;
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 36px;
  letter-spacing: -0.3px;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 880px;
}
.timeline-item {
  position: relative;
  padding-left: 26px;
  border-left: 2px solid var(--line);
}
.timeline-dot {
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px #fff;
}
.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.timeline-head h3 { margin: 0; font-size: 19px; font-weight: 700; }
.timeline-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}
.timeline-org {
  margin: 4px 0 14px;
  color: var(--gray);
  font-size: 14px;
  font-weight: 500;
}
.timeline-body ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.timeline-body li { color: #3a3d46; font-size: 14.5px; line-height: 1.6; }

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
}
.project-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.project-meta { color: var(--blue); font-size: 12.5px; font-weight: 600; margin: 0 0 12px; }
.project-card p:not(.project-meta) { color: var(--gray); font-size: 14px; line-height: 1.65; margin: 0; }

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.skills-col h4 { margin: 0 0 16px; font-size: 15px; font-weight: 700; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--panel);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
}

/* Education */
.edu-block { max-width: 720px; }
.edu-block h3 { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.edu-block p:not(.project-meta) { color: var(--gray); font-size: 14.5px; line-height: 1.7; margin: 12px 0 0; }

/* Footer */
.footer {
  background: var(--ink);
  color: #fff;
  padding: 56px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-main h2 { margin: 0 0 8px; font-size: 26px; font-weight: 800; }
.footer-main p { margin: 0; color: #9aa0ad; font-size: 14px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-divider { display: none; }
  .hero-right { min-height: 360px; }
  .headline { font-size: 38px; }
  .nav { padding: 20px 24px 0; }
  .hero-left { padding: 32px 24px 40px; }
  .section { padding: 48px 24px; }
  .project-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .footer { padding: 40px 24px; flex-direction: column; align-items: flex-start; }
}
