/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  --bg:             #f8f7f4;
  --surface:        #ffffff;
  --accent:         #2d6a4f;
  --accent-hover:   #255c43;
  --accent-light:   #e8f4f0;
  --text-primary:   #1c1c1c;
  --text-secondary: #5a5a5a;
  --border:         #e2e2e2;

  --font:           'Inter', system-ui, -apple-system, sans-serif;
  --max-width:      900px;
  --nav-h:          60px;
  --section-gap:    88px;
  --radius:         5px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
  transition: opacity 0.18s ease;
}

.nav-name:hover {
  opacity: 0.7;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 5px 9px;
  border-radius: var(--radius);
  transition: color 0.18s ease, background-color 0.18s ease;
  line-height: 1;
}

.lang-btn:hover {
  color: var(--text-primary);
  background-color: var(--accent-light);
}

.lang-btn.active {
  color: var(--accent);
  font-weight: 600;
}

.lang-sep {
  display: block;
  width: 1px;
  height: 14px;
  background: var(--border);
  margin-inline: 2px;
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding-block: var(--section-gap);
}

.section-hero {
  padding-block: 80px 40px;
}

.section-alt {
  background: var(--surface);
}

/* Section label — small caps heading */
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 36px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 28px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero-inner {
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-legal {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.hero-name {
  font-size: clamp(3rem, 8vw, 4.75rem);
  font-weight: 700;
  line-height: 1.02;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 420px;
  line-height: 1.55;
  margin-bottom: 12px;
}

.hero-location {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  letter-spacing: 0.02em;
}

/* Social links */
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--surface);
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.hero-link:hover {
  color: var(--surface);
  background-color: var(--accent);
  border-color: var(--accent);
}

.hero-link-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Profile photo */
.hero-photo {
  flex-shrink: 0;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ============================================================
   About
   ============================================================ */
.about-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.about-body strong {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================
   Experience
   ============================================================ */
.exp-list {
  display: flex;
  flex-direction: column;
}

.exp-item {
  padding-block: 32px;
  border-bottom: 1px solid var(--border);
}

.exp-item:first-child {
  padding-top: 0;
}

.exp-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

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

.exp-meta {
  flex: 1;
  min-width: 0;
}

.exp-role {
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.exp-company {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.exp-sep {
  color: var(--border);
}

.exp-period {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 3px;
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.exp-bullets li {
  position: relative;
  padding-left: 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.exp-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.exp-bullets strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* ============================================================
   Publications
   ============================================================ */
.pub-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.pub-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
  border-bottom: 1px solid var(--border);
}

.pub-item:first-child {
  padding-top: 0;
}

.pub-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pub-content {
  flex: 1;
  min-width: 0;
}

.pub-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.pub-type {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 2px 9px;
  line-height: 1.5;
}

.pub-year {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.pub-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 4px;
}

.pub-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 9px;
  line-height: 1.4;
}

.pub-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.pub-meta strong {
  color: var(--text-primary);
  font-weight: 500;
}

.pub-venue {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.pub-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-primary);
  background: transparent;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.pub-link:hover {
  color: var(--surface);
  background-color: var(--accent);
  border-color: var(--accent);
}

.pub-link-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* ============================================================
   Skills
   ============================================================ */
.skills-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.skills-group-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.skills-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pill {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.775rem;
  font-weight: 500;
  line-height: 1.5;
}

/* ============================================================
   Education & Certifications
   ============================================================ */
.edu-cols {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.edu-col-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.edu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.edu-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.edu-degree {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.edu-inst {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 5px;
}

.edu-note {
  font-size: 0.74rem;
  color: var(--accent);
  font-style: italic;
}

.edu-year {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}

.cert-list {
  display: flex;
  flex-direction: column;
}

.cert-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-block: 14px;
  border-bottom: 1px solid var(--border);
}

.cert-item:first-child {
  padding-top: 0;
}

.cert-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cert-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.cert-issuer {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.cert-year {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}

/* ============================================================
   Contact
   ============================================================ */
.contact-intro {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 480px;
  line-height: 1.6;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--accent);
  color: var(--surface);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background-color 0.18s ease;
}

.contact-link:hover {
  background-color: var(--accent-hover);
}

.contact-link-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ============================================================
   Dev placeholders — removed once section is built
   ============================================================ */
.placeholder {
  color: var(--border);
  font-size: 0.85rem;
  font-style: italic;
  padding-block: 24px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 640px) {
  :root {
    --section-gap: 56px;
  }

  .section-hero {
    padding-block: 56px 40px;
  }

  .hero-inner {
    flex-direction: column-reverse;
    gap: 28px;
  }

  .hero-photo {
    width: 96px;
    height: 96px;
  }

  .exp-header {
    flex-wrap: wrap;
    gap: 4px;
  }

  .exp-period {
    width: 100%;
    order: -1;
    font-size: 0.75rem;
    padding-top: 0;
  }

  .pub-item {
    flex-direction: column;
    gap: 16px;
  }

  .pub-actions {
    flex-direction: row;
  }

  .skills-groups {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
