@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f7f8fa; --surface: #ffffff; --text: #17202b; --muted: #687386;
  --line: #e2e6ec; --accent: #2864e8; --accent-soft: #e9efff;
  --shadow: 0 24px 70px rgba(24, 39, 75, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.topbar { position: sticky; top: 0; z-index: 20; height: 76px; padding: 0 max(6vw, calc((100vw - 1180px)/2)); display: flex; align-items: center; justify-content: space-between; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { font-family: Manrope, sans-serif; font-weight: 800; font-size: 1.25rem; letter-spacing: -.07em; }
.brand span, .hero h1 span { color: var(--accent); }
nav { display: flex; align-items: center; gap: 30px; font-size: .91rem; font-weight: 600; }
nav a:hover, footer a:hover { color: var(--accent); }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 1.5rem; color: var(--text); }
.theme-toggle { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer; }
main { max-width: 1180px; padding: 0 30px; margin: auto; }
.hero { min-height: 590px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 65px; align-items: center; padding: 70px 0 76px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: .76rem; letter-spacing: .16em; margin: 0 0 15px; }
.hero h1 { font: 800 clamp(3.5rem, 7vw, 6.2rem)/1.02 Manrope, sans-serif; letter-spacing: -.075em; margin: 0 0 25px; }
.hero-summary { max-width: 520px; color: var(--muted); font-size: 1.12rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 13px 19px; border-radius: 8px; border: 1px solid transparent; font-weight: 700; font-size: .9rem; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.primary { color: white; background: var(--accent); box-shadow: 0 8px 22px #2864e82b; }
.secondary { background: var(--surface); border-color: var(--line); color: var(--text); }
.hero-photo-wrap { position: relative; justify-self: center; width: min(100%, 355px); padding: 0 16px 20px 0; }
.photo-accent { position: absolute; z-index: 0; top: 24px; right: 0; bottom: 0; left: 32px; background: var(--accent-soft); border-radius: 20px; transform: rotate(4deg); }
.hero-photo { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; border-radius: 18px; box-shadow: var(--shadow); }
.photo-label { position: absolute; z-index: 2; bottom: 0; left: -20px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); font-size: .78rem; font-weight: 700; }
.status-dot { display: inline-block; width: 8px; height: 8px; background: #28b779; border-radius: 50%; margin-right: 8px; }
.contact-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 27px 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 35px #1b2d4b08; }
.contact-label { display: block; font-size: .68rem; letter-spacing: .12em; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.contact-strip a, .contact-strip p { font-size: .9rem; margin: 0; overflow-wrap: anywhere; }
.section { display: grid; grid-template-columns: .75fr 1.25fr; gap: 65px; padding: 85px 0; border-bottom: 1px solid var(--line); }
.section-heading h2, .closing h2 { font: 700 clamp(1.9rem, 3vw, 2.6rem)/1.2 Manrope, sans-serif; letter-spacing: -.055em; margin: 0; }
.section-content { color: var(--muted); }
.section-content > p { margin-top: 0; }
.timeline-item { position: relative; padding: 0 0 30px 22px; border-left: 2px solid var(--line); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -6px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.timeline-top { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.timeline-top h3, .skill-card h3 { color: var(--text); font-size: 1.08rem; margin: 0; }
.timeline-top span { color: var(--accent); font-size: .8rem; font-weight: 700; }
.timeline-item p { margin: 8px 0; }
.timeline-item .muted, .role { color: var(--accent); font-size: .88rem; font-weight: 600; }
.timeline-item ul, .skill-card ul { padding-left: 19px; margin: 12px 0 0; }
.timeline-item li, .skill-card li { padding: 3px 0; }
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.skill-card { padding: 24px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; }
.skill-card h3 { font-family: Manrope, sans-serif; }
.closing { text-align: center; padding: 90px 20px 100px; }
.closing h2 { margin-bottom: 28px; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px max(6vw, calc((100vw - 1180px)/2)); background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
body.dark { --bg: #10141c; --surface: #171e29; --text: #edf2f9; --muted: #a0aec0; --line: #2b3544; --accent: #7ca2ff; --accent-soft: #202d49; --shadow: 0 24px 70px rgba(0,0,0,.28); }
body.dark .primary { color: #10141c; }
@media (max-width: 760px) {
  .topbar { height: 66px; padding: 0 22px; }
  .menu-toggle { display: block; }
  nav { display: none; position: absolute; top: 65px; left: 0; right: 0; padding: 20px 24px; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 18px; }
  nav.open { display: flex; }
  main { padding: 0 22px; }
  .hero { grid-template-columns: 1fr; gap: 45px; padding: 65px 0 55px; }
  .hero h1 { font-size: clamp(3.5rem, 15vw, 5.4rem); }
  .hero-photo-wrap { width: min(78%, 310px); }
  .contact-strip { grid-template-columns: 1fr 1fr; padding: 22px; gap: 20px; }
  .section { grid-template-columns: 1fr; gap: 28px; padding: 60px 0; }
  .skills-grid { grid-template-columns: 1fr; }
  .timeline-top { gap: 5px; }
  footer { padding: 22px; }
}
@media print {
  :root { --bg: white; --surface: white; --text: #17202b; --muted: #4b5563; --line: #d7dce3; --accent: #2864e8; --accent-soft: #e9efff; }
  .topbar, .hero-actions, .closing .button, .menu-toggle, .theme-toggle { display: none !important; }
  main { max-width: 100%; padding: 0 12px; }
  .hero { min-height: auto; padding: 25px 0; grid-template-columns: 1.2fr .6fr; gap: 25px; }
  .hero h1 { font-size: 42px; }
  .hero-photo-wrap { max-width: 190px; }
  .contact-strip { box-shadow: none; padding: 15px; }
  .section { padding: 25px 0; gap: 25px; }
  .closing { padding: 30px 0; }
  footer { padding: 12px 0; }
  a { text-decoration: none; }
  .timeline-item, .skill-card { break-inside: avoid; }
}
