:root {
  color-scheme: light;
  --primary: #002b5c;
  --primary-strong: #001f43;
  --primary-soft: rgba(0, 43, 92, 0.09);
  --background: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
  --muted-soft: #64748b;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --content-width: 1200px;
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

@supports not (overflow: clip) {
  body {
    overflow-x: hidden;
  }
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(0, 43, 92, 0.32);
  outline-offset: 3px;
}

.page {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
}

.header-inner,
.content,
.footer-inner {
  width: min(100% - 48px, var(--content-width));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-size: 1.18rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.brand-mark,
.card-icon,
.section-marker {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
}

.brand-mark {
  width: 40px;
  height: 40px;
  background: var(--primary);
}

.brand-mark svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.site-nav a,
.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  transition: color 160ms ease;
}

.site-nav a:hover,
.footer-links a:hover {
  color: var(--primary);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 3px;
}

.language-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 5px;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1;
  transition: background-color 160ms ease, color 160ms ease;
}

.language-option:hover,
.language-option.is-active {
  background: var(--primary-soft);
  color: var(--primary);
}

.flag {
  display: block;
  width: 24px;
  height: 16px;
  flex: 0 0 auto;
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 40px;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  transition: background-color 160ms ease, transform 160ms ease;
}

.header-action:hover {
  background: var(--primary-strong);
}

.header-action:active,
.button:active {
  transform: translateY(1px);
}

.content {
  padding-block: 48px;
}

.section {
  padding-block: 48px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 60px);
  min-height: auto;
  padding-block: clamp(28px, 5vw, 58px);
}

.hero-media {
  display: flex;
  justify-content: center;
}

.hero-photo {
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: var(--surface-muted);
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: 50% 12%;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 22px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.02;
}

h2 {
  margin-bottom: 0;
  color: var(--text);
  font-size: clamp(1.85rem, 4vw, 2.25rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.18;
}

h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
}

.lead {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  padding: 12px 22px;
  cursor: pointer;
  font-weight: 850;
  line-height: 1.1;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 43, 92, 0.18);
}

.button-primary:hover {
  background: var(--primary-strong);
}

.button-secondary {
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text);
}

.button-secondary:hover {
  background: var(--surface);
  border-color: #cbd5e1;
}

.divider {
  height: 1px;
  margin-block: 18px;
  background: var(--border);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 44px;
}

.section-marker {
  position: relative;
  width: 34px;
  height: 34px;
}

.section-marker::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 8px var(--primary-soft);
}

.expertise-grid,
.card-grid,
.education-grid {
  display: grid;
  gap: 24px;
}

.expertise-grid,
.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.feature-card,
.project-card,
.skill-card,
.education-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
}

.feature-card p,
.project-card p,
.education-card p {
  margin-bottom: 0;
  color: var(--muted-soft);
  font-size: 0.95rem;
}

.card-icon {
  width: 44px;
  height: 44px;
  font-size: 0.9rem;
}

.card-icon svg {
  display: block;
  width: 26px;
  height: 26px;
}

.timeline {
  max-width: 920px;
  margin-left: 17px;
}

.timeline-item {
  position: relative;
  padding: 0 0 48px 42px;
  border-left: 2px solid rgba(0, 43, 92, 0.18);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 2px;
  left: -1px;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border: 4px solid var(--background);
  border-radius: 999px;
  background: #cbd5e1;
}

.timeline-item.is-current::before {
  background: var(--primary);
}

.job-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.company {
  margin-bottom: 0;
  color: var(--primary);
  font-weight: 780;
}

.location {
  margin: 2px 0 0;
  color: var(--muted-soft);
  font-size: 0.82rem;
}

.date-pill,
.date-line {
  color: var(--primary);
  font-weight: 780;
}

.date-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 6px;
  padding: 5px 11px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.job-body {
  color: var(--muted);
}

.job-body p {
  margin-bottom: 16px;
}

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

.job-body ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

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

.tools {
  color: var(--muted-soft);
  font-size: 0.92rem;
}

.project-card,
.skill-card,
.education-card {
  padding: 24px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.skill-card {
  display: flex;
  min-height: 104px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 12px;
  text-align: center;
}

.skill-card h3 {
  margin: 0;
  font-size: 0.95rem;
}

.skill-logo {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
}

.skill-logo svg {
  display: block;
  width: 31px;
  height: 31px;
}

.skill-logo-linux {
  color: #111827;
}

.skill-logo-bash {
  color: #4eaa25;
}

.skill-logo-kubernetes {
  color: #326ce5;
}

.skill-logo-terraform {
  color: #7b42bc;
}

.skill-logo-ansible {
  color: #111827;
}

.skill-logo-helm {
  color: #0f5b99;
}

.skill-logo-gitlab {
  color: #fc6d26;
}

.skill-logo-cicd {
  color: #2563eb;
}

.skill-logo-git {
  color: #f05032;
}

.skill-logo-docker {
  color: #1d63ed;
}

.skill-logo-proxmox {
  color: #e57000;
}

.skill-logo-cloud {
  color: #0284c7;
}

.skill-logo-networking {
  color: #0f766e;
}

.skill-logo-haproxy {
  color: #2563eb;
}

.skill-logo-vault {
  color: #111827;
}

.skill-logo-python {
  color: #2563eb;
}

.skill-logo-prometheus {
  color: #e6522c;
}

.skill-logo-grafana {
  color: #f46800;
}

.skill-logo-n8n {
  color: #ea4b71;
}

.skill-logo-vllm {
  color: #334155;
}

.skill-logo-ragmcp {
  color: #7c3aed;
}

.skill-logo-codex {
  color: #10a37f;
}

.project-card {
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.project-card:hover {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.card-kicker {
  margin-bottom: 12px;
  color: var(--primary) !important;
  font-size: 0.76rem !important;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.education-card {
  background: #f8fafc;
}

.date-line {
  margin-bottom: 6px !important;
  color: var(--primary) !important;
  font-size: 0.92rem !important;
}

.muted {
  margin-top: 8px !important;
}

.contact {
  padding-block: 72px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  overflow: hidden;
  border-radius: 16px;
  background: var(--primary);
  box-shadow: var(--shadow);
}

.contact-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 64px);
  color: #ffffff;
}

.contact-copy h2 {
  margin-bottom: 18px;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.contact-copy > p {
  max-width: 540px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.contact-copy > p:last-of-type {
  margin-bottom: 0;
}

.contact-details {
  display: flex;
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  background: var(--surface);
}

.contact-list {
  display: grid;
  gap: 24px;
  width: 100%;
  margin: 0;
}

.contact-list div {
  display: grid;
  gap: 3px;
}

.contact-list dt {
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-list dd {
  margin: 0;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 750;
}

.contact-list a {
  color: inherit;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-block: 34px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  margin-bottom: 0;
  color: var(--text);
  font-weight: 850;
}

.footer-copy {
  margin-bottom: 0;
  color: var(--muted-soft);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
    padding-block: 14px;
  }

  .header-action {
    margin-left: auto;
  }

  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .hero,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-details {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    max-width: none;
  }

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

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

@media (max-width: 720px) {
  .header-inner,
  .content,
  .footer-inner {
    width: min(100% - 32px, var(--content-width));
  }

  .header-inner {
    column-gap: 8px;
  }

  .brand {
    width: auto;
    gap: 8px;
    font-size: 1.05rem;
  }

  .site-nav {
    justify-content: space-between;
    gap: clamp(4px, 1.5vw, 10px);
    overflow-x: visible;
  }

  .site-nav a {
    flex: 0 1 auto;
    font-size: clamp(0.65rem, 3vw, 0.8rem);
    white-space: nowrap;
  }

  .section {
    padding-block: 36px;
  }

  .hero {
    padding-block: 20px 34px;
  }

  h1 {
    font-size: 2.65rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .expertise-grid,
  .card-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }

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

  .job-header {
    flex-direction: column;
    gap: 10px;
  }

  .date-pill {
    white-space: normal;
  }

  .timeline-item {
    padding-left: 30px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 424px) {
  .header-action {
    display: none;
  }
}

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

@media print {
  :root {
    --background: #ffffff;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --border: #cbd5e1;
    --text: #0f172a;
    --muted: #334155;
    --muted-soft: #475569;
    --primary: #002b5c;
  }

  html {
    font-size: 10px;
  }

  body {
    background: #ffffff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .site-header,
  .site-footer,
  .hero-actions {
    display: none;
  }

  .content {
    width: 100%;
    padding: 0;
  }

  .section,
  .hero {
    min-height: 0;
    padding-block: 12px;
  }

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

  .hero {
    display: block;
    padding-top: 0;
  }

  .hero-media {
    display: none;
  }

  .eyebrow {
    margin-bottom: 10px;
    padding: 4px 10px;
    font-size: 0.9rem;
  }

  h1 {
    margin-bottom: 10px;
    font-size: 3.6rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  h3 {
    font-size: 1.35rem;
  }

  .lead {
    font-size: 1.2rem;
    line-height: 1.55;
  }

  .divider {
    margin-block: 8px;
  }

  .section-heading {
    gap: 10px;
    margin-bottom: 14px;
    break-after: avoid;
  }

  .section-marker {
    width: 22px;
    height: 22px;
  }

  .section-marker::before {
    width: 8px;
    height: 8px;
    box-shadow: 0 0 0 6px var(--primary-soft);
  }

  .expertise-grid,
  .card-grid {
    gap: 8px;
  }

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

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

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

  .education-grid {
    gap: 8px;
  }

  .feature-card,
  .project-card,
  .skill-card,
  .education-card {
    break-inside: avoid;
    padding: 10px;
  }

  .feature-card {
    gap: 10px;
  }

  .feature-card p,
  .project-card p,
  .education-card p {
    font-size: 1rem;
    line-height: 1.35;
  }

  .skill-card {
    min-height: 72px;
    gap: 6px;
    padding: 8px;
  }

  .skill-card h3 {
    font-size: 0.86rem;
  }

  .skill-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .skill-logo svg {
    width: 22px;
    height: 22px;
  }

  .card-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 0.9rem;
  }

  .timeline {
    max-width: none;
    margin-left: 11px;
  }

  .timeline-item {
    padding: 0 0 14px 24px;
    break-inside: avoid;
  }

  .timeline-item::before {
    top: 1px;
    left: -1px;
    width: 14px;
    height: 14px;
    border-width: 3px;
  }

  .job-header {
    gap: 12px;
    margin-bottom: 8px;
  }

  .date-pill {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 1rem;
  }

  .job-body p {
    margin-bottom: 8px;
  }

  .job-body ul {
    margin-bottom: 8px;
    padding-left: 16px;
  }

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

  .tools {
    font-size: 0.95rem;
  }

  .project-card:hover {
    box-shadow: none;
    transform: none;
  }

  .feature-card,
  .project-card,
  .skill-card,
  .education-card,
  .contact-panel {
    box-shadow: none;
  }

  .contact-panel {
    display: block;
    overflow: visible;
    break-inside: avoid;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
  }

  .contact-copy {
    padding: 10px;
    color: var(--text);
  }

  .contact-details {
    display: block;
    padding: 10px;
    background: #ffffff;
  }

  .contact-copy h2 {
    color: var(--text);
    margin-bottom: 6px;
    font-size: 2.2rem;
  }

  .contact-copy > p {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.35;
  }

  .contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .contact-list dt {
    color: var(--muted);
    font-size: 0.9rem;
  }

  .contact-list dd {
    color: var(--text);
    font-size: 1.1rem;
  }
}
