:root {
  --navy: #12233f;
  --navy-2: #0b172a;
  --blue: #2f6fed;
  --sky: #eaf1ff;
  --text: #263246;
  --muted: #667085;
  --line: #dfe5ee;
  --white: #ffffff;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(223,229,238,.9);
}
.nav-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; }
.logo {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--navy); color: white; font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .95rem; font-weight: 600; }
.nav-links a:hover { color: var(--blue); }
.nav-cta { padding: 10px 16px; border-radius: 10px; background: transparent; color: inherit; }
.nav-cta:hover { background: transparent; color: var(--blue); }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 1.5rem; }

.hero {
  padding: 104px 0 86px;
  background:
    radial-gradient(circle at 90% 10%, rgba(47,111,237,.18), transparent 30%),
    linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 56px; align-items: center; }
.eyebrow, .section-tag { color: var(--blue); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
h1, h2 { font-family: "Playfair Display", serif; color: var(--navy); line-height: 1.15; margin: 0 0 22px; }
h1 { font-size: clamp(3rem, 7vw, 5.3rem); max-width: 780px; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.hero-text { max-width: 730px; font-size: 1.14rem; color: #475467; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 26px; }
.btn { padding: 13px 20px; border-radius: 12px; font-weight: 700; border: 1px solid transparent; }
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(47,111,237,.25); }
.btn-secondary { border-color: #bcc8dc; background: white; }
.quick-info { display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); font-size: .93rem; }
.hero-card { background: var(--navy); color: white; padding: 30px; border-radius: 24px; box-shadow: 0 20px 55px rgba(18,35,63,.2); }
.stat { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.stat:last-child { border-bottom: 0; }
.stat strong { display: block; font-size: 2rem; line-height: 1.1; }
.stat span { color: #ced8ea; font-size: .92rem; }

.section { padding: 88px 0; }
.section-soft { background: #f7f9fc; }
.two-column { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; }
.two-column p { color: #4b5565; margin-top: 0; }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.skill-card { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: white; transition: .25s ease; }
.skill-card:hover { transform: translateY(-5px); box-shadow: 0 16px 38px rgba(18,35,63,.08); }
.skill-card h3 { margin-top: 0; color: var(--navy); }
.skill-card p { margin-bottom: 0; color: var(--muted); }

.timeline { margin-top: 38px; }
.timeline-item { display: grid; grid-template-columns: 190px 1fr; gap: 34px; padding: 30px 0; border-top: 1px solid var(--line); }
.timeline-date { color: var(--blue); font-weight: 700; }
.timeline-content h3 { margin: 0; color: var(--navy); font-size: 1.3rem; }
.company { margin: 4px 0 12px; color: var(--muted); font-weight: 600; }
.timeline-content ul { margin-bottom: 0; padding-left: 20px; }

.section-dark { background: var(--navy-2); color: white; }
.section-dark h2 { color: white; }
.section-tag.light { color: #8fb4ff; }
.education-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.education-grid article { padding: 26px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.education-grid span { color: #8fb4ff; font-weight: 700; }
.education-grid h3 { margin-bottom: 8px; }
.education-grid p { color: #cbd5e1; }

.contact-section { background: var(--sky); }
.contact-card { display: grid; grid-template-columns: 1.25fr .75fr; gap: 50px; align-items: center; background: white; border-radius: 24px; padding: 46px; box-shadow: 0 18px 50px rgba(18,35,63,.08); }
.contact-links { display: grid; gap: 14px; }
.contact-links a { padding: 14px 16px; border-radius: 12px; background: #f6f8fb; font-weight: 700; color: var(--navy); }
.contact-links a:hover { background: var(--blue); color: white; }

footer { background: white; border-top: 1px solid var(--line); }
.footer-wrap { min-height: 80px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 20px; right: 20px;
    padding: 20px; background: white; border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 20px 40px rgba(18,35,63,.12);
    display: none; flex-direction: column; align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .hero-grid, .two-column, .contact-card { grid-template-columns: 1fr; }
  .skills-grid, .education-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, var(--max)); }
  .hero { padding: 74px 0 62px; }
  .section { padding: 66px 0; }
  .skills-grid, .education-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 28px; }
  .quick-info { flex-direction: column; gap: 6px; }
  .footer-wrap { flex-direction: column; justify-content: center; gap: 4px; }
}
