:root {
  --brand: #1d4ed8;
  --brand-dark: #1e3a8a;
  --brand-soft: #eff4ff;
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --text: #1a2233;
  --text-soft: #5a6478;
  --border: #e3e8f0;
  --shadow: 0 10px 30px -12px rgba(29, 78, 216, 0.18);
  --radius: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 800;
}
.brand-name { font-size: 1.02rem; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--text-soft); font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--brand); text-decoration: none; }

.lang-switch {
  display: inline-flex; gap: 4px; align-items: center;
  border: 1px solid var(--border); background: #fff;
  border-radius: 999px; padding: 5px 12px; cursor: pointer;
  font-family: inherit; font-size: 0.82rem; font-weight: 600; color: var(--text-soft);
}
.lang-switch .lang-opt.active { color: var(--brand); }
.lang-switch .lang-sep { color: var(--border); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.25s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 0.96rem; cursor: pointer; transition: 0.2s; border: 1px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%); padding: 88px 0 72px; }
.hero-inner {
  display: flex; align-items: center; gap: 48px;
}
.hero-avatar {
  flex-shrink: 0;
  width: 220px; height: 220px; border-radius: 50%;
  object-fit: cover; display: block;
  border: 5px solid #fff;
  box-shadow: 0 0 0 1px var(--border), var(--shadow);
}
.hero-content { max-width: 640px; }
.hero-eyebrow { color: var(--brand); font-weight: 600; letter-spacing: 0.02em; margin-bottom: 16px; }
.hero-title { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.hero-subtitle { margin-top: 20px; font-size: 1.15rem; color: var(--text-soft); max-width: 640px; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 36px; list-style: none; margin-top: 48px; flex-wrap: wrap; }
.hero-meta strong { display: block; font-size: 1.7rem; color: var(--brand); font-weight: 800; }
.hero-meta span { font-size: 0.9rem; color: var(--text-soft); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-eyebrow { color: var(--brand); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; margin-top: 8px; }
.section-lead { color: var(--text-soft); max-width: 620px; margin-top: 14px; font-size: 1.05rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cdd9f3; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; font-weight: 700; }
.card > p { color: var(--text-soft); margin-top: 10px; font-size: 0.96rem; }
.card-list { list-style: none; margin-top: 18px; display: grid; gap: 9px; }
.card-list li { position: relative; padding-left: 24px; font-size: 0.92rem; color: var(--text); }
.card-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin-top: 44px; border-left: 2px solid var(--border); padding-left: 28px; display: grid; gap: 34px; }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -36px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--brand); }
.tl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.tl-head h3 { font-size: 1.12rem; font-weight: 700; }
.tl-head h3 span { font-weight: 500; color: var(--text-soft); }
.tl-date { font-size: 0.86rem; color: var(--brand); font-weight: 600; white-space: nowrap; }
.tl-item p { color: var(--text-soft); margin-top: 6px; font-size: 0.96rem; }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 44px; }
.skill-group h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; }
.tags li { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 7px 15px; font-size: 0.88rem; font-weight: 500; }
.section-alt .tags li { background: #fff; }
.skill-note { margin-top: 14px; font-size: 0.86rem; color: var(--text-soft); font-style: italic; }

/* ---------- Education ---------- */
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 44px; }
.edu-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.edu-item h3 { font-size: 1.05rem; font-weight: 700; }
.edu-item p { color: var(--text-soft); margin-top: 6px; font-size: 0.93rem; }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; margin-top: 24px; display: grid; gap: 12px; font-size: 1rem; }
.contact-form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-form label { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--text-soft); }
.contact-form input, .contact-form textarea {
  font-family: inherit; font-size: 0.96rem; color: var(--text);
  border: 1px solid var(--border); border-radius: 9px; padding: 11px 13px; background: #fdfdff; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 26px 0; color: var(--text-soft); font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { flex-direction: column; text-align: center; gap: 28px; }
  .hero-content { max-width: 100%; }
  .hero-cta, .hero-meta { justify-content: center; }
  .cards { grid-template-columns: 1fr; }
  .skills-grid, .edu-grid, .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: 0.22s;
  }
  .site-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav a { width: 100%; padding: 8px 0; }
  .lang-switch { margin-top: 8px; }
}
