:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #172033;
  --muted: #5f6b7a;
  --line: #dfe5ee;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --soft: #eaf1ff;
  --shadow: 0 24px 70px rgba(23, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #eef4ff 0%, var(--bg) 42%, #ffffff 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.language-nav,
.card-actions,
.sidebar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.language-nav a,
.card-actions a,
.sidebar-actions a,
.sidebar-actions button {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.language-nav a.active,
.card-actions a:first-child,
.sidebar-actions a:first-child {
  border-color: var(--brand);
  background: var(--soft);
  color: var(--brand-dark);
  font-weight: 700;
}

.resume-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 920px);
  gap: 2rem;
  width: min(1240px, calc(100% - 2rem));
  margin: 2rem auto 4rem;
}

.sidebar {
  position: sticky;
  top: 5.5rem;
  align-self: start;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
}

.sidebar h2 {
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
}

.section-nav {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.section-nav a {
  border-radius: 0.75rem;
  color: var(--muted);
  padding: 0.45rem 0.6rem;
}

.section-nav a:hover {
  background: var(--soft);
  color: var(--brand-dark);
  text-decoration: none;
}

.resume-card,
.landing {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.8rem;
  box-shadow: var(--shadow);
}

.resume-card {
  overflow: hidden;
}

.hero,
.resume-section,
.resume-footer {
  padding: clamp(1.4rem, 4vw, 2.4rem);
}

.hero {
  background: linear-gradient(135deg, #172033 0%, #25406f 58%, #2563eb 100%);
  color: #fff;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: #a9c7ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.landing-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.subtitle {
  max-width: 760px;
  margin: 1rem 0 0;
  color: #dbe8ff;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-list a {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  padding: 0.45rem 0.75rem;
}

.resume-section {
  border-top: 1px solid var(--line);
}

.resume-section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.04em;
}

.section-content h3 {
  margin-top: 2rem;
  color: #24324a;
  font-size: 1.2rem;
}

.section-content p,
.section-content ul {
  margin-top: 0;
}

.section-content li + li {
  margin-top: 0.35rem;
}

.section-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1rem 0 1.4rem;
}

.section-content th,
.section-content td {
  min-width: 10rem;
  border: 1px solid var(--line);
  padding: 0.7rem;
  text-align: left;
  vertical-align: top;
}

.section-content th {
  background: #f1f5fb;
}

.resume-footer {
  border-top: 1px solid var(--line);
  background: #f8fafc;
  color: var(--muted);
}

.landing {
  width: min(1040px, calc(100% - 2rem));
  margin: 3rem auto;
  padding: clamp(1.4rem, 5vw, 3rem);
}

.landing-hero {
  max-width: 760px;
}

.landing-hero p:last-child {
  color: var(--muted);
  font-size: 1.2rem;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.language-card {
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1.2rem;
  background: #fff;
}

.language-card h2 {
  margin: 0;
}

.language-card p {
  color: var(--muted);
}

@media (max-width: 980px) {
  .resume-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .section-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .language-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-nav,
  .language-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-header,
  .sidebar,
  .resume-footer p:last-child {
    display: none;
  }

  .resume-layout {
    display: block;
    width: 100%;
    margin: 0;
  }

  .resume-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .hero {
    background: #fff;
    color: #000;
    padding-top: 0;
  }

  .eyebrow,
  .subtitle,
  .contact-list a {
    color: #000;
  }

  .contact-list a {
    border-color: #ccc;
  }

  .resume-section,
  .resume-footer {
    break-inside: avoid;
    padding: 1rem 0;
  }
}
