:root {
  --color-navy: #12263f;
  --color-navy-light: #1d3557;
  --color-accent: #2a9d8f;
  --color-accent-dark: #1f7f73;
  --color-bg: #ffffff;
  --color-bg-soft: #f4f7fb;
  --color-border: #dce5ef;
  --color-text: #243247;
  --color-muted: #64748b;
  --shadow-soft: 0 20px 45px rgba(18, 38, 63, 0.09);
  --shadow-card: 0 12px 30px rgba(18, 38, 63, 0.08);
  --radius: 8px;
  --header-height: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 92px 0; }
.section-muted { background: var(--color-bg-soft); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 229, 239, 0.82);
  backdrop-filter: blur(16px);
}
.nav { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo {
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: var(--color-navy); border-radius: var(--radius); font-weight: 800;
}
.nav-menu { display: flex; align-items: center; gap: 8px; padding: 0; margin: 0; list-style: none; }
.nav-menu a {
  display: inline-flex; min-height: 42px; align-items: center; padding: 0 14px;
  color: var(--color-muted); border-radius: var(--radius); font-weight: 700;
  transition: color 180ms ease, background 180ms ease;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--color-navy); background: #edf5f4; }
.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column;
  gap: 5px; padding: 0; border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--color-navy); border-radius: 999px; transition: transform 180ms ease, opacity 180ms ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex; align-items: center; overflow: hidden;
  background:
    linear-gradient(120deg, rgba(244, 247, 251, 0.96), rgba(255, 255, 255, 0.8)),
    linear-gradient(135deg, #fff 0%, #fff 52%, #e8f5f3 52%, #e8f5f3 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); align-items: center; gap: clamp(36px, 7vw, 86px); }
.profile-frame {
  position: relative; aspect-ratio: 4 / 5; width: min(100%, 360px); display: flex; align-items: center;
  justify-content: center; justify-self: center; margin: 0; color: var(--color-navy);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(244, 247, 251, 0.95)),
    repeating-linear-gradient(-45deg, rgba(42,157,143,.08) 0, rgba(42,157,143,.08) 10px, rgba(18,38,63,.04) 10px, rgba(18,38,63,.04) 20px);
  border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden;
}
.profile-photo { width: 100%; height: 100%; display: block; object-fit: cover; }
.profile-frame.photo-missing .profile-photo { display: none; }
.profile-frame.has-photo { background: #fff; }
.profile-frame.has-photo figcaption { display: none; }
.profile-frame figcaption {
  padding: 10px 16px; color: var(--color-navy); background: rgba(255,255,255,.88);
  border: 1px solid var(--color-border); border-radius: var(--radius); font-weight: 800;
}
.hero-content { max-width: 740px; }
.eyebrow { margin: 0 0 12px; color: var(--color-accent-dark); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; color: var(--color-navy); line-height: 1.15; }
h1 { max-width: 760px; font-size: clamp(2.6rem, 8vw, 5.4rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); }
h3 { font-size: 1.08rem; }
.role { margin: 14px 0 20px; color: var(--color-navy-light); font-size: clamp(1.2rem, 2.4vw, 1.55rem); font-weight: 800; }
.hero-summary { max-width: 680px; margin: 0; color: var(--color-muted); font-size: 1.04rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--radius); font-weight: 800; cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.btn-primary { color: #fff; background: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-dark); }
.btn-secondary { color: var(--color-navy); background: #fff; border-color: var(--color-border); }
.btn-full { width: 100%; }
.contact-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; padding: 0; margin: 34px 0 0; list-style: none; }
.contact-strip li, .section-card, .education-card, .timeline-card, .contact-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-card);
}
.contact-strip li { min-width: 0; padding: 16px; }
.contact-strip span, .contact-card span, .education-card span { display: block; margin-bottom: 4px; color: var(--color-muted); font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.contact-strip a, .contact-strip strong, .contact-card a, .contact-card strong { color: var(--color-navy); font-size: .95rem; font-weight: 800; word-break: break-word; }

.split-section { display: grid; grid-template-columns: minmax(240px,.75fr) minmax(0,1fr); gap: clamp(28px,5vw,64px); align-items: start; }
.section-card { padding: clamp(22px,4vw,34px); transition: transform 180ms ease, box-shadow 180ms ease; }
.section-card p { margin: 0; color: var(--color-muted); }
.section-title { max-width: 700px; margin-bottom: 36px; }
.timeline { position: relative; display: grid; gap: 22px; }
.timeline::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: 11px; width: 2px; background: var(--color-border); }
.timeline-item { position: relative; display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 22px; }
.timeline-marker { position: relative; z-index: 1; width: 24px; height: 24px; margin-top: 24px; background: #fff; border: 6px solid var(--color-accent); border-radius: 50%; box-shadow: 0 0 0 6px var(--color-bg-soft); }
.timeline-card { padding: clamp(22px,3vw,30px); transition: transform 180ms ease, box-shadow 180ms ease; }
.timeline-card:hover, .education-card:hover, .section-card:hover, .contact-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(18,38,63,.12); }
.card-topline { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.card-topline p { margin: 6px 0 0; color: var(--color-accent-dark); font-weight: 800; }
.card-topline span { flex: 0 0 auto; align-self: flex-start; padding: 6px 10px; color: var(--color-navy); background: var(--color-bg-soft); border-radius: var(--radius); font-size: .85rem; font-weight: 800; }
.timeline-card ul { padding-left: 20px; margin: 0; color: var(--color-muted); }
.education-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.education-card { padding: clamp(22px,3vw,30px); transition: transform 180ms ease, box-shadow 180ms ease; }
.education-card p { margin: 0; color: var(--color-muted); font-weight: 700; }
.skills-layout { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr); gap: 18px; }
.skill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-list span { min-height: 38px; display: inline-flex; align-items: center; padding: 0 13px; color: var(--color-navy); background: #edf5f4; border: 1px solid rgba(42,157,143,.2); border-radius: var(--radius); font-weight: 800; }
.language-grid { display: grid; gap: 10px; }
.language-grid article { min-height: 52px; display: flex; align-items: center; padding: 0 16px; color: var(--color-navy); background: var(--color-bg-soft); border: 1px solid var(--color-border); border-radius: var(--radius); font-weight: 800; }
.contact-section { background: linear-gradient(120deg, rgba(18,38,63,.94), rgba(29,53,87,.93)), linear-gradient(135deg, var(--color-navy), var(--color-accent-dark)); }
.contact-panel { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,420px); align-items: center; gap: clamp(28px,5vw,64px); }
.contact-panel h2, .contact-panel > div:first-child p { color: #fff; }
.contact-panel > div:first-child p:last-child { max-width: 620px; margin: 18px 0 0; color: rgba(255,255,255,.78); }
.contact-panel .eyebrow { color: #78d7cc; }
.contact-card { padding: 24px; transition: transform 180ms ease, box-shadow 180ms ease; }
.contact-card ul { display: grid; gap: 16px; padding: 0; margin: 0 0 22px; list-style: none; }
.site-footer { padding: 28px 0; color: var(--color-muted); background: #fff; border-top: 1px solid var(--color-border); text-align: center; }
.site-footer p { margin: 0; font-size: .92rem; }

@media (max-width: 900px) {
  .hero-grid, .split-section, .skills-layout, .contact-panel { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 72px; }
  .hero-content { text-align: center; }
  .hero-actions { justify-content: center; }
  .contact-strip { grid-template-columns: 1fr; text-align: left; }
  .profile-frame { width: min(100%, 320px); }
}
@media (max-width: 720px) {
  :root { --header-height: 66px; }
  .container { width: min(100% - 28px, 1120px); }
  .section { padding: 68px 0; }
  .nav-menu {
    position: fixed; inset: var(--header-height) 14px auto; display: grid; gap: 4px; padding: 12px;
    background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
    box-shadow: var(--shadow-soft); opacity: 0; pointer-events: none; transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }
  .nav-menu.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-menu a { width: 100%; justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .hero { padding-top: 54px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .education-grid { grid-template-columns: 1fr; }
  .card-topline { display: grid; }
}
@media (max-width: 420px) {
  h1 { font-size: 2.45rem; }
  .profile-frame { width: min(100%, 280px); }
  .timeline::before { left: 8px; }
  .timeline-item { grid-template-columns: 18px minmax(0,1fr); gap: 12px; }
  .timeline-marker { width: 18px; height: 18px; border-width: 5px; }
}
