:root {
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --surface: #ffffff;
  --surface-muted: #f3f6fa;
  --text: #1f2937;
  --muted: #5f6b7a;
  --line: #e5e7eb;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff6ff;
  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --shadow: 0 22px 70px rgba(31, 41, 55, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 52%, #ffffff 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

img,
svg {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.navbar {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  border-radius: 999px;
  color: #475467;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 12px;
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.nav-cta,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-cta {
  flex: 0 0 auto;
  background: var(--text);
  color: #ffffff;
  padding: 0 18px;
  box-shadow: 0 10px 25px rgba(31, 41, 55, 0.14);
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

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

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
  padding: 74px 0 62px;
}

.hero-content {
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  color: var(--text);
  font-size: clamp(2.45rem, 7vw, 5.65rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  padding: 0 20px;
}

.button svg,
.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.button.primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.22);
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
}

.button.secondary:hover {
  border-color: #cbd5e1;
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.08);
}

.profile-card {
  justify-self: end;
  width: min(100%, 410px);
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 28px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  padding: clamp(16px, 3vw, 24px);
  box-shadow: var(--shadow);
}

.profile-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  background: var(--surface-muted);
}

.profile-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: inherit;
  pointer-events: none;
}

.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-meta {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-meta strong {
  color: var(--text);
  white-space: nowrap;
}

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

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 690px;
}

.section-heading h2 {
  margin: 10px 0 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.07;
  letter-spacing: 0;
}

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

.skill-card,
.timeline-card,
.feature-card,
.leadership-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 40px rgba(31, 41, 55, 0.05);
}

.skill-card {
  padding: 24px;
}

.skill-card h3,
.timeline-card h3,
.feature-card h3,
.leadership-card h3 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.3;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span {
  border: 1px solid #dbe3ec;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 7px 11px;
}

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

.timeline-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}

.timeline-date {
  width: fit-content;
  height: fit-content;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 8px 12px;
  white-space: nowrap;
}

.role-meta {
  margin-bottom: 10px;
  color: var(--emerald);
  font-size: 0.93rem;
  font-weight: 800;
}

.timeline-card p:last-child,
.feature-card p,
.leadership-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

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

.feature-card,
.leadership-card {
  padding: 28px;
}

.feature-card {
  min-height: 265px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.feature-card.blue {
  background: linear-gradient(145deg, #ffffff 0%, var(--blue-soft) 100%);
}

.feature-card.green {
  background: linear-gradient(145deg, #ffffff 0%, var(--emerald-soft) 100%);
}

.feature-badge,
.card-index {
  width: fit-content;
  border-radius: 999px;
  font-weight: 800;
}

.feature-badge {
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-size: 0.8rem;
  padding: 8px 12px;
}

.card-index {
  display: inline-flex;
  margin-bottom: 22px;
  background: var(--surface-muted);
  color: var(--blue);
  font-size: 0.82rem;
  padding: 7px 11px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 118px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  color: #475467;
  font-size: 0.92rem;
  font-weight: 600;
}

.contact-links a:hover {
  color: var(--blue);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.social-links a:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.08);
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .navbar {
    min-height: auto;
    padding: 18px 0;
    flex-wrap: wrap;
  }

  .brand {
    flex: 1;
  }

  .nav-links {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 56px;
  }

  .profile-card {
    justify-self: start;
    max-width: 460px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 28px 0;
  }

  .contact-links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .section-shell,
  .navbar,
  .footer-inner {
    width: min(100% - 28px, 1180px);
  }

  .nav-cta {
    min-height: 40px;
    padding: 0 14px;
  }

  .hero {
    gap: 34px;
    padding: 42px 0 36px;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }

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

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

  .skill-grid,
  .feature-grid,
  .leadership-grid,
  .timeline-card {
    grid-template-columns: 1fr;
  }

  .timeline-card,
  .feature-card,
  .leadership-card,
  .skill-card {
    border-radius: 16px;
    padding: 22px;
  }
}

@media (max-width: 440px) {
  .brand {
    font-size: 0.94rem;
  }

  .nav-cta {
    font-size: 0.88rem;
  }

  .profile-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .contact-links {
    flex-direction: column;
  }
}
