/* ── Reset & Base ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:   #e05c1a;
  --accent-2: #c94f10;
  --bg:       #f8f7f5;
  --surface:  #ffffff;
  --text:     #1a1a1a;
  --muted:    #6b6b6b;
  --border:   #e2e0db;
  --radius:   8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

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

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ──────────────────────────────────────────── */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
  flex-wrap: wrap;
}

.header-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.title {
  color: var(--accent);
  font-size: .9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 2px;
}

.header-nav {
  display: flex;
  gap: 24px;
  font-size: .9rem;
  font-weight: 500;
  flex-shrink: 0;
}

.header-nav a { color: var(--muted); }
.header-nav a:hover { color: var(--accent); text-decoration: none; }

/* ── Contact bar ─────────────────────────────────────── */
.contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin: 32px 0 0;
  font-size: .875rem;
  color: var(--muted);
}

.contact-bar a { color: var(--text); font-weight: 500; }
.contact-bar a:hover { color: var(--accent); }

.lang-badge {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: .8rem;
  color: var(--text);
}

/* ── Sections ────────────────────────────────────────── */
main section {
  margin-top: 48px;
}

main section:last-child {
  margin-bottom: 64px;
}

h2 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 24px;
}

#summary p {
  margin-bottom: 10px;
  color: var(--text);
}
#summary p:last-child { margin-bottom: 0; }

/* ── About ───────────────────────────────────────────── */
.about-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-tagline {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.about-box p {
  color: var(--text);
  font-size: .95rem;
}

.about-location {
  color: var(--muted);
  font-size: .875rem !important;
  margin-top: 4px;
}

/* ── Skills grid ─────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.skill-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.skill-group h3 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 6px;
}

.skill-group p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Experience ──────────────────────────────────────── */
.job {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 16px;
}

.job:last-child { margin-bottom: 0; }

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.job-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.dim { color: var(--muted); font-weight: 400; }

.job-sub {
  font-size: .875rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 3px;
}

.job-meta {
  font-size: .8rem;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 3px;
  flex-shrink: 0;
}

.job ul {
  padding-left: 18px;
  margin-bottom: 14px;
}

.job li {
  font-size: .9rem;
  margin-bottom: 7px;
  color: var(--text);
}

.job li:last-child { margin-bottom: 0; }

.tech-stack {
  font-size: .8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 14px;
  line-height: 1.6;
}

.tech-stack strong { color: var(--text); }

/* ── Footer ──────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 20px 0;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
}

footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 640px) {
  .skills-grid { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .header-nav { gap: 16px; }
  .job-header { flex-direction: column; gap: 4px; }
  .job-meta { white-space: normal; }
}
