
:root {
  --bg: #0c0f14;
  --panel: #121722;
  --panel-2: #171d29;
  --text: #f3f6fa;
  --muted: #9aa5b5;
  --line: #273142;
  --accent: #7aa2ff;
  --accent-2: #a8c0ff;
  --max: 1040px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(122,162,255,.10), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
}

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

.wrap {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(12,15,20,.84);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-weight: 700;
  letter-spacing: -.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--text);
}

.lang {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.02);
}

.lang a {
  padding: 4px 8px;
  border-radius: 7px;
}

.lang a.active {
  background: var(--panel-2);
  color: var(--text);
}

.hero {
  padding: 72px 0 38px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.role {
  margin: 14px 0 0;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--muted);
}

.summary {
  margin: 28px 0 0;
  max-width: 820px;
  font-size: 18px;
  color: #cbd3df;
}

.contacts {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.02);
  color: #dbe3ef;
  font-size: 14px;
}

.contact:hover {
  border-color: #41506a;
  background: rgba(255,255,255,.04);
}

main {
  padding: 44px 0 76px;
}

section + section {
  margin-top: 52px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-size: 18px;
  letter-spacing: -.02em;
}

.section-title::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.experience {
  display: grid;
  gap: 18px;
}

.job {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.012));
}

.job-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 14px;
}

.job h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -.025em;
}

.job-role {
  margin-top: 4px;
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 600;
}

.job-meta {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}

.job ul {
  margin: 0;
  padding-left: 20px;
  color: #c7d0dc;
}

.job li + li {
  margin-top: 9px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.skill {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.skill h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 9px;
  border: 1px solid #2f3b50;
  border-radius: 8px;
  background: #101620;
  color: #cbd5e3;
  font-size: 13px;
}

.languages {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.language-card {
  min-width: 220px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.language-card strong {
  display: block;
  margin-bottom: 3px;
}

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

.footer {
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.home {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.home-card {
  width: min(100%, 720px);
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.home-card h1 {
  font-size: clamp(36px, 7vw, 58px);
}

.home-card p {
  color: var(--muted);
  font-size: 18px;
}

.language-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 26px;
}

.language-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #171d29;
  font-weight: 700;
}

.language-buttons a:hover {
  border-color: #41506a;
  background: #1b2230;
}

@media (max-width: 760px) {
  .nav .section-link { display: none; }

  .hero {
    padding-top: 48px;
  }

  .summary {
    font-size: 16px;
  }

  .job {
    padding: 19px;
  }

  .job-head {
    display: block;
  }

  .job-meta {
    margin-top: 8px;
    text-align: left;
    white-space: normal;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .language-buttons {
    grid-template-columns: 1fr;
  }
}
