:root {
  --ink: #12151c;
  --muted: #5b6472;
  --paper: #f8fafc;
  --panel: #ffffff;
  --line: #d9e1ea;
  --cyan: #0e7490;
  --coral: #f26f4c;
  --violet: #6d5dfc;
  --lime: #9cc84a;
  --shadow: 0 24px 70px rgba(18, 21, 28, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

img,
object {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 30;
  width: min(1120px, calc(100% - 32px));
  min-height: 64px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(18, 21, 28, 0.74);
  color: #fff;
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 700;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 132px 24px 64px;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(18, 21, 28, 0.96) 0%, rgba(18, 21, 28, 0.74) 46%, rgba(14, 116, 144, 0.58) 100%),
    #12151c;
}

.resume-background {
  position: absolute;
  top: 6%;
  right: -4%;
  width: min(52vw, 640px);
  height: 92%;
  border: 0;
  object-fit: cover;
  object-position: top center;
  opacity: 0.34;
  filter: saturate(0.75) contrast(1.12);
  transform: rotate(-2deg);
  transform-origin: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 21, 28, 0.04), rgba(18, 21, 28, 0.84)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 88px);
}

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

.hero-inner {
  padding-top: 28px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.93;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 690px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.02rem, 2vw, 1.28rem);
}

.hero-actions,
.contact-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

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

.button-primary {
  background: var(--coral);
  color: #16100d;
  box-shadow: 0 14px 35px rgba(242, 111, 76, 0.3);
}

.button-secondary {
  border-color: rgba(18, 21, 28, 0.16);
  background: #fff;
  color: var(--ink);
}

.hero .button-secondary {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(14px);
}

.button-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 48px;
}

.proof-strip div {
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.proof-strip dt {
  color: var(--cyan);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 900;
  line-height: 1;
}

.proof-strip dd {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.section-band {
  background: #fff;
}

.section-block {
  padding: 96px 0;
}

.intro {
  margin-top: -1px;
  padding: 48px 0;
}

.intro-grid,
.education-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.intro h2,
.section-heading h2,
.education-grid h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.intro p:last-child,
.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.heading-row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-bottom: 2px solid var(--coral);
  color: var(--ink);
  font-weight: 900;
}

.timeline {
  position: relative;
  display: grid;
  gap: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 220px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 62px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 212px;
  width: 18px;
  height: 18px;
  border: 4px solid var(--paper);
  border-radius: 999px;
  background: var(--cyan);
  z-index: 1;
}

.timeline-date {
  padding-top: 21px;
  color: var(--cyan);
  font-weight: 900;
}

.timeline-card,
.project-card,
.skill-group,
.education-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(18, 21, 28, 0.07);
}

.timeline-card {
  padding: 28px;
}

.timeline-card h3,
.project-card h3,
.skill-group h3,
.education-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.meta {
  margin: 8px 0 20px;
  color: var(--muted);
  font-weight: 700;
}

ul {
  padding-left: 20px;
}

li + li {
  margin-top: 8px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--cyan);
}

.accent-card::before {
  background: var(--violet);
}

.project-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.project-label {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(14, 116, 144, 0.1);
  color: var(--cyan);
}

.accent-card .project-label {
  background: rgba(109, 93, 252, 0.1);
  color: var(--violet);
}

.project-card p {
  color: var(--muted);
}

.compact-list {
  margin: 22px 0;
  color: var(--ink);
}

.card-actions {
  margin-top: auto;
}

.card-actions a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.card-actions a:hover {
  border-color: var(--coral);
  color: var(--coral);
  transform: translateY(-2px);
}

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

.skill-group {
  padding: 24px;
  min-height: 174px;
}

.skill-group:nth-child(1) {
  border-top: 5px solid var(--coral);
}

.skill-group:nth-child(2) {
  border-top: 5px solid var(--cyan);
}

.skill-group:nth-child(3) {
  border-top: 5px solid var(--violet);
}

.skill-group:nth-child(4) {
  border-top: 5px solid var(--lime);
}

.skill-group:nth-child(5) {
  border-top: 5px solid #222831;
}

.skill-group:nth-child(6) {
  border-top: 5px solid #d49a22;
}

.skill-group p,
.education-card p {
  color: var(--muted);
}

.education-grid {
  grid-template-columns: minmax(220px, 0.85fr) repeat(2, minmax(0, 1fr));
}

.education-card {
  min-height: 230px;
  padding: 28px;
}

.certificate-card {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.certificate-card p {
  color: rgba(255, 255, 255, 0.74);
}

.resume-section {
  padding-bottom: 110px;
}

.resume-viewer {
  height: min(760px, 78vh);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.resume-viewer object {
  width: 100%;
  height: 100%;
  border: 0;
}

.resume-viewer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  background: #f8fafc;
}

.contact {
  padding: 92px 0;
  background:
    linear-gradient(110deg, rgba(18, 21, 28, 0.98), rgba(18, 21, 28, 0.92)),
    var(--ink);
  color: #fff;
}

.contact-inner {
  display: grid;
  justify-items: start;
  gap: 22px;
}

.contact p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.74);
}

.contact-actions {
  margin-top: 10px;
}

.contact-detail {
  font-weight: 700;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 8px;
    background: rgba(18, 21, 28, 0.96);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav a {
    justify-content: center;
  }

  .resume-background {
    right: -44%;
    width: 92vw;
  }

  .proof-strip,
  .intro-grid,
  .project-grid,
  .skills-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before,
  .timeline-item::before {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .timeline-date {
    padding-top: 0;
  }

  .heading-row {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 58px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .hero {
    min-height: 88vh;
    padding: 114px 0 56px;
  }

  .hero-inner,
  .section-shell {
    width: min(100% - 28px, 1120px);
  }

  .hero h1 {
    font-size: clamp(2.85rem, 14vw, 4.6rem);
  }

  .hero-actions,
  .contact-actions,
  .card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .card-actions a {
    width: 100%;
  }

  .proof-strip div {
    min-height: 92px;
  }

  .section-block {
    padding: 72px 0;
  }

  .intro {
    padding: 40px 0;
  }

  .timeline-card,
  .project-card,
  .skill-group,
  .education-card {
    padding: 22px;
  }

  .resume-viewer {
    height: 560px;
  }
}
