:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef3f8;
  --text: #18212b;
  --muted: #5c6977;
  --line: #d9e2ec;
  --primary: #1e4f8f;
  --primary-dark: #163b6b;
  --shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
  --radius: 18px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

.site-nav a:hover {
  color: var(--text);
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary:hover {
  background: var(--primary-dark);
  color: #fff;
}
.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(246, 248, 251, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(217, 226, 236, 0.8);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text);
}

.hero {
  padding: 5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 2rem;
  align-items: start;
}

.eyebrow,
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-text {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.cv-viewer {
  width: 100%;
  height: 750px;
  border: none;
  border-radius: var(--radius);
  margin-top: 1.5rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--primary);
  color: #fff;
}

.button.primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.hero-card,
.content-card,
.info-card,
.skill-card {
  background: var(--surface);
  border: 1px solid rgba(217, 226, 236, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.5rem;
}

.hero-card h2,
.skill-card h3,
.info-card h3,
.note-card h3 {
  margin-top: 0;
}

.summary-list,
.contact-list,
.publication-list,
.info-card ul {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.section {
  padding: 1.5rem 0 4rem;
}

.alt-bg {
  background: linear-gradient(180deg, rgba(238,243,248,0.65), rgba(238,243,248,0.3));
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.content-card,
.skill-card,
.info-card {
  padding: 1.5rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  padding: 1.3rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.timeline-meta,
.meta {
  color: var(--muted);
  font-weight: 600;
}

.timeline-content h3 {
  margin: 0 0 0.35rem;
}

.cards-grid,
.skills-grid,
.contact-grid {
  display: grid;
  gap: 1.25rem;
}

.cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skills-grid,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer {
  padding: 1.5rem 0 2.25rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .timeline-item,
  .cards-grid,
  .skills-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    padding: 1.2rem;
  }

  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 4rem;
  }

  .site-nav {
    gap: 0.75rem;
  }

  .button {
    width: 100%;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}


main.section {
  min-height: 70vh;
}

.publication-list li {
  margin-bottom: 1rem;
}

.site-nav a.active {
  color: var(--text);
  font-weight: 700;
}

section {
    scroll-margin-top: 90px;
}
.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}
  
  