:root {
  --bg: #0b1220;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.08);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --accent: #7dd3fc;
  --accent-2: #a78bfa;

  --radius: 16px;
  --radius-sm: 12px;

  --max: 1100px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fb;
    --panel: rgba(255, 255, 255, 0.92);
    --panel-2: rgba(255, 255, 255, 0.88);
    --text: rgba(10, 20, 35, 0.92);
    --muted: rgba(10, 20, 35, 0.72);
    --border: rgba(10, 20, 35, 0.12);
    --shadow: 0 10px 30px rgba(17, 24, 39, 0.12);
    --accent: #0369a1;
    --accent-2: #6d28d9;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 720px at 20% 0, rgba(125, 211, 252, 0.2), transparent 70%),
    radial-gradient(1000px 640px at 85% 0, rgba(167, 139, 250, 0.18), transparent 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
    "Liberation Sans", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(125, 211, 252, 0.5);
  text-underline-offset: 3px;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid rgba(125, 211, 252, 0.6);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (prefers-color-scheme: light) {
  .site-header {
    background: linear-gradient(to bottom, rgba(246, 247, 251, 0.82), rgba(246, 247, 251, 0.45));
    border-bottom: 1px solid rgba(10, 20, 35, 0.08);
  }
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
}

.name {
  font-size: clamp(26px, 3.4vw, 40px);
  margin: 0;
  letter-spacing: -0.02em;
}

.role {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 500;
}

.hero__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.meta-pill {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-bottom: 12px;
}

.nav a {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 13px;
  color: var(--muted);
}

.nav a:hover {
  text-decoration: none;
  border-color: rgba(125, 211, 252, 0.3);
  background: rgba(125, 211, 252, 0.08);
  color: var(--text);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 30px;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 919.98px) {
  .col {
    display: contents;
  }

  #summary {
    order: 1;
  }
  #competencies {
    order: 2;
  }
  #projects {
    order: 3;
  }
  #skills {
    order: 4;
  }
  #experience {
    order: 5;
  }
  #strengths {
    order: 6;
  }
  #positioning {
    order: 7;
  }
}

@media (min-width: 920px) {
  .grid {
    grid-template-columns: 1.3fr 1fr;
  }
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.92);
}

@media (prefers-color-scheme: light) {
  .card h2 {
    color: rgba(3, 105, 161, 0.95);
  }
}

.card h3 {
  margin: 14px 0 8px;
  font-size: 15px;
}

.card p {
  margin: 10px 0;
  color: var(--text);
}

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

.chips {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips li {
  padding: 9px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  font-size: 13px;
}

ul {
  margin: 10px 0 0 18px;
}

li {
  margin: 6px 0;
  color: var(--text);
}

.item {
  margin-top: 12px;
  padding-top: 2px;
}

.item__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.item__meta {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 720px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 14px 0;
}

.emphasis {
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(125, 211, 252, 0.24);
  background: rgba(125, 211, 252, 0.08);
  color: var(--text);
  font-weight: 600;
}

@media (prefers-color-scheme: light) {
  .emphasis {
    border-color: rgba(3, 105, 161, 0.22);
    background: rgba(3, 105, 161, 0.07);
  }
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 20px;
}

@media (prefers-color-scheme: light) {
  .site-footer {
    border-top: 1px solid rgba(10, 20, 35, 0.08);
  }
}

/* Print-friendly resume */
@media print {
  :root {
    --bg: #ffffff;
    --panel: #ffffff;
    --panel-2: #ffffff;
    --text: #0b1220;
    --muted: #334155;
    --border: rgba(2, 6, 23, 0.18);
    --shadow: none;
  }

  body {
    background: #ffffff !important;
  }

  .site-header {
    position: static;
    backdrop-filter: none;
    border-bottom: 1px solid var(--border);
  }

  .nav,
  .skip-link,
  .site-footer {
    display: none !important;
  }

  .card {
    box-shadow: none;
    border: 1px solid var(--border);
    break-inside: avoid;
  }

  a {
    text-decoration: none !important;
  }
}

