:root {
  --bg: #101010;
  --paper: #f6f6f4;
  --text: #1a1a1a;
  --muted: #5e5e5e;
  --line: #262626;
  --soft-line: #d7d7d2;
  --accent: #111111;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.55;
}

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

.page-shell {
  min-height: 100vh;
  padding: 38px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.language-bar {
  width: 100%;
  max-width: 1050px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.lang-label {
  color: #f1f1f1;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.switch {
  position: relative;
  display: inline-block;
  width: 62px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #2d2d2d;
  border-radius: 999px;
  transition: background 0.25s ease;
  border: 1px solid #4a4a4a;
}

.slider::before {
  content: "";
  position: absolute;
  height: 26px;
  width: 26px;
  left: 4px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.switch input:checked + .slider {
  background: #d9d9d9;
}

.switch input:checked + .slider::before {
  transform: translateX(28px);
  background: #111111;
}

.page {
  width: 100%;
  max-width: 1050px;
  background: var(--paper);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  padding: 54px 58px 48px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
}

.name-block h1 {
  margin: 0;
  font-size: 3rem;
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.role {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 500;
}

.contact {
  min-width: 260px;
  color: var(--muted);
  font-size: 0.96rem;
}

.contact-item {
  margin-bottom: 7px;
  text-align: right;
}

.contact a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease;
}

.contact a:hover {
  border-color: currentColor;
}

.section {
  margin-top: 28px;
}

.section-title {
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--line);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.about-text,
.edu-line,
.info-line {
  margin: 0;
  font-size: 1rem;
  color: #292929;
}

.experience-item,
.project-item {
  margin-top: 18px;
}

.company-row,
.project-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}

.company {
  font-size: 0.97rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.date,
.stack {
  font-size: 0.95rem;
  color: #2f2f2f;
  font-weight: 700;
  white-space: nowrap;
}

.position,
.project-name {
  margin-top: 4px;
  font-size: 1.04rem;
  font-weight: 800;
}

ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

li {
  margin: 6px 0;
  color: #2b2b2b;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 42px;
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 42px;
}

.skill-line,
.cert-line {
  font-size: 1rem;
  color: #2a2a2a;
}

.label {
  font-weight: 800;
  color: var(--text);
}

@media (max-width: 920px) {
  .page {
    padding: 38px 28px 32px;
  }

  .top {
    flex-direction: column;
    gap: 20px;
  }

  .contact {
    min-width: auto;
  }

  .contact-item {
    text-align: left;
  }

  .name-block h1 {
    font-size: 2.35rem;
  }

  .company-row,
  .project-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .date,
  .stack {
    white-space: normal;
  }

  .two-col,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .language-bar {
    justify-content: center;
  }
}

@media print {
  body {
    background: white;
  }

  .page-shell {
    padding: 0;
  }

  .language-bar {
    display: none;
  }

  .page {
    max-width: none;
    box-shadow: none;
  }
}