:root {
  --bg: #0f1021;
  --bg-deep: #0a0b17;
  --panel: #1b1c33;
  --panel-soft: #212444;
  --text: #f2f5ff;
  --muted: #b8bce0;
  --line: #3a3e6d;
  --accent: #63f6b2;
  --accent-2: #8c8bff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(99, 246, 178, 0.14), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(140, 139, 255, 0.2), transparent 65%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--text);
  padding: 24px;
}

.bg-orb {
  position: fixed;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.24;
  pointer-events: none;
}

.orb-a {
  top: 80px;
  left: -70px;
  background: #5ef4b0;
}

.orb-b {
  right: -80px;
  top: 280px;
  background: #7268ff;
}

.topbar {
  max-width: 1140px;
  margin: 0 auto 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.top-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdf-btn {
  border: 1px solid var(--line);
  background: #24274a;
  color: #dde3ff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}

.pdf-btn:hover {
  background: #2c3060;
}

.lang-switch {
  display: flex;
  gap: 8px;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn.is-active {
  color: #101126;
  background: linear-gradient(135deg, var(--accent), #b1ffe0);
  border-color: transparent;
}

.resume-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: start;
}

.left-column,
.right-column {
  display: grid;
  grid-auto-rows: min-content;
  gap: 18px;
  align-content: start;
}

.panel {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-soft) 100%);
  border: 1px solid #2f3360;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.avatar-shell {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.avatar-photo {
  width: 160px;
  height: 160px;
  border-radius: 20px;
  object-fit: cover;
  object-position: center 20%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  filter: grayscale(12%);
}

.name {
  margin: 0;
  font-size: 34px;
  line-height: 1.06;
  font-family: "Space Grotesk", sans-serif;
  text-align: center;
}

.role {
  display: table;
  margin: 12px auto 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(99, 246, 178, 0.9), rgba(140, 139, 255, 0.8));
  color: #141532;
  font-weight: 800;
}

.experience {
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 700;
  text-align: center;
}

.facts {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  line-height: 1.7;
}

.contact-list {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.contact-key {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ea4d8;
}

.contact-value {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.contact-value:hover {
  text-decoration: underline;
}

h2 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
}

h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: #dbdeff;
}

.skills-list,
.achievements-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.66;
}

.exp-list {
  display: grid;
  gap: 14px;
}

.exp-item {
  border-left: 2px solid #3f4478;
  padding-left: 12px;
}

.exp-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.exp-meta {
  margin: 0 0 6px;
  color: #9ca2d4;
  font-size: 13px;
}

.founder-panel p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

.project-list {
  display: grid;
  gap: 12px;
}

.project-item {
  border-left: 2px solid #4a4f86;
  padding-left: 12px;
}

.project-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.lang-list {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  line-height: 1.8;
}

.portfolio-link {
  display: inline-block;
  color: #dfe5ff;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #262a52;
}

.portfolio-link:hover {
  background: #313569;
}

.about-panel p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.62;
}

.salary-role {
  margin: 0;
  color: var(--muted);
}

.salary-value {
  margin: 10px 0 0;
  font-size: 30px;
  font-weight: 800;
  color: var(--accent);
}

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

  .left-column,
  .right-column {
    gap: 14px;
  }

  .name {
    font-size: 30px;
  }

  h2 {
    font-size: 24px;
  }
}

@media (max-width: 600px) {
  body {
    padding: 14px;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .top-controls {
    width: 100%;
    justify-content: space-between;
  }
}

@page {
  size: A4;
  margin: 7mm;
}

@media print {
  :root {
    --text: #111;
    --muted: #333;
    --panel: #fff;
    --panel-soft: #fff;
    --line: #cfcfcf;
    --accent: #000;
  }

  body {
    background: #fff;
    color: #111;
    padding: 0;
    font-size: 10pt;
    line-height: 1.34;
  }

  .bg-orb,
  .lang-switch,
  .pdf-btn {
    display: none !important;
  }

  .top-controls {
    display: none !important;
  }

  .topbar {
    margin: 0 0 4px;
  }

  .brand {
    color: #666;
    font-size: 10pt;
  }

  .resume-grid {
    max-width: none;
    grid-template-columns: 230px 1fr;
    gap: 6px;
  }

  .left-column,
  .right-column {
    gap: 6px;
  }

  .panel {
    background: #fff;
    border: 1px solid #d8d8d8;
    box-shadow: none;
    break-inside: avoid;
    page-break-inside: avoid;
    padding: 7px;
  }

  h2 {
    font-size: 15pt;
    margin: 0 0 6px;
  }

  h3 {
    font-size: 10.5pt;
    margin: 0 0 4px;
  }

  .name {
    font-size: 20pt;
    margin-bottom: 4px;
  }

  .avatar-photo {
    width: 120px;
    height: 120px;
    filter: none;
  }

  .role {
    border: 1px solid #111;
    background: #fff;
    color: #111;
    font-size: 9pt;
    padding: 4px 8px;
    margin: 6px 0 4px;
  }

  .experience {
    margin: 0 0 8px;
    font-size: 9.5pt;
  }

  .facts {
    padding-top: 8px;
    line-height: 1.35;
  }

  .contact-list {
    margin-top: 8px;
    padding-top: 8px;
    gap: 6px;
  }

  .contact-key {
    font-size: 9px;
  }

  .skills-list,
  .achievements-list,
  .lang-list {
    line-height: 1.35;
  }

  .exp-list,
  .project-list {
    gap: 8px;
  }

  .exp-meta {
    font-size: 9.5pt;
    margin: 0 0 3px;
  }

  .about-panel p,
  .founder-panel p,
  .project-item p,
  .exp-item p {
    line-height: 1.4;
    margin: 0 0 6px;
  }

  .salary-value {
    margin-top: 6px;
    font-size: 18pt;
    color: #111;
  }

  .portfolio-panel {
    display: none !important;
  }

  a {
    color: #111;
    text-decoration: none;
  }
}
