:root {
  --navy: #0f2544;
  --navy-deep: #0a1a33;
  --red: #c81e2c;
  --red-deep: #8a0b20;
  --gold: #c9a227;
  --paper: #f6f5f2;
  --ink: #1b1f27;
  --ink-soft: #4b5361;
  --line: #e4e1da;
  --white: #ffffff;
  --shadow: 0 18px 40px -18px rgba(15,37,68,0.35);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy-deep); line-height: 1.18; margin: 0 0 0.5em; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(246,245,242,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; color: var(--navy-deep); font-size: 1.05rem; }
.brand img { width: 32px; height: 32px; }
.links { display: flex; align-items: center; gap: 28px; }
.links a { font-weight: 500; font-size: 0.94rem; color: var(--ink-soft); }
.links a:hover { color: var(--red); }
.cta { background: var(--red); color: var(--white) !important; padding: 9px 20px; border-radius: 999px; font-weight: 600 !important; }
.cta:hover { background: var(--red-deep); }
.lang-toggle { background: none; border: 1.5px solid var(--line); color: var(--ink-soft); font-family: inherit; font-weight: 700; font-size: 0.78rem; padding: 6px 12px; border-radius: 999px; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.lang-toggle:hover { border-color: var(--red); color: var(--red); }
.burger { display: none; flex-direction: column; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--navy-deep); border-radius: 2px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--white); padding: 90px 0 70px; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 90% -10%, rgba(200,30,44,0.35), transparent 60%),
    radial-gradient(500px 300px at 10% 110%, rgba(201,162,39,0.18), transparent 60%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; margin-bottom: 12px; }
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 6px; }
.role { color: rgba(255,255,255,0.85); font-weight: 600; font-size: 1.1rem; margin-bottom: 18px; }
.lead { color: rgba(255,255,255,0.78); max-width: 52ch; margin-bottom: 30px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; transition: transform 0.15s, background 0.15s; }
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 10px 24px -8px rgba(200,30,44,0.6); }
.btn-primary:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.3); color: var(--white); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.hero-photo { display: flex; justify-content: center; }
.photo-ring { width: min(280px, 60vw); aspect-ratio: 1; border-radius: 20px; padding: 8px; background: conic-gradient(from 180deg, var(--gold), var(--red), var(--gold)); }
.photo-ring img { width: 100%; height: 100%; border-radius: 14px; object-fit: cover; object-position: center 25%; border: 5px solid var(--navy); }

/* Stats */
.stats { background: var(--navy-deep); color: var(--white); padding: 26px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }
.stats strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--gold); }
.stats span { font-size: 0.8rem; color: rgba(255,255,255,0.75); }

/* Section generic */
.section { padding: 74px 0; }
.section-label { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.76rem; margin-bottom: 8px; }
.section-label.light { color: var(--gold); }
.section h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 44px; align-items: start; }
.about-grid p { color: var(--ink-soft); }
.skill-card { background: var(--white); border-radius: 16px; padding: 26px; box-shadow: var(--shadow); border-top: 4px solid var(--red); }
.skill-card h3 { font-size: 1rem; color: var(--navy-deep); margin-top: 18px; }
.skill-card h3:first-child { margin-top: 0; }
.tags { list-style: none; padding: 0; margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: rgba(200,30,44,0.08); color: var(--red-deep); font-size: 0.82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.tags.plain li { background: var(--paper); color: var(--ink-soft); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 34px 34px; }
.timeline li::before { content: ''; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--red); }
.timeline li:last-child { padding-bottom: 0; }
.period { display: inline-block; color: var(--gold-dark, var(--gold)); background: rgba(201,162,39,0.14); font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; color: #8a6d10; }
.timeline h3 { font-size: 1.1rem; margin-bottom: 2px; }
.org { color: var(--red-deep); font-weight: 600; font-size: 0.92rem; margin: 0 0 8px; }
.timeline p:not(.org) { color: var(--ink-soft); font-size: 0.93rem; margin: 0; max-width: 65ch; }

/* Education */
.education { background: var(--navy); color: var(--white); }
.education h2, .education h3 { color: var(--white); }
.edu-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; }
.edu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.edu-list li { display: flex; gap: 18px; }
.edu-list .yr { flex-shrink: 0; width: 92px; color: var(--gold); font-weight: 700; font-size: 0.85rem; }
.edu-list strong { display: block; font-size: 1rem; }
.edu-list span { color: rgba(255,255,255,0.75); font-size: 0.88rem; }
.sub-h { font-size: 1.05rem; color: var(--gold); margin-bottom: 16px; }
.nonformal { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.88rem; color: rgba(255,255,255,0.85); }
.nonformal span { display: inline-block; min-width: 78px; color: var(--gold); font-weight: 700; }

/* Organizations */
.org-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.org-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.org-card h3 { font-size: 0.95rem; margin-bottom: 4px; }
.org-card p { margin: 0; color: var(--ink-soft); font-size: 0.85rem; }

/* Contact */
.contact { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--white); }
.contact h2 { color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact-grid > div:first-child p { color: rgba(255,255,255,0.8); }
.contact-cards { display: grid; gap: 14px; }
.c-card { display: flex; flex-direction: column; gap: 4px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); border-radius: 14px; padding: 16px 18px; }
a.c-card:hover { background: rgba(255,255,255,0.14); }
.c-card strong { color: var(--gold); font-family: var(--font-head); font-size: 0.92rem; }
.c-card span { font-size: 0.9rem; color: rgba(255,255,255,0.88); }

/* Footer */
.footer { background: var(--navy-deep); color: rgba(255,255,255,0.65); padding: 22px 0; font-size: 0.85rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer a { color: var(--gold); }
.footer-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.footer-back img { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .hero-inner, .about-grid, .edu-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .photo-ring { width: 180px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 720px) {
  .links { position: fixed; top: 0; right: -100%; width: min(78vw,320px); height: 100vh; background: var(--white); flex-direction: column; align-items: flex-start; padding: 90px 28px 28px; gap: 22px; box-shadow: -10px 0 30px rgba(0,0,0,0.15); transition: right 0.3s ease; }
  .links.open { right: 0; }
  .burger { display: flex; }
}
