:root {
  --bg: #0f172a;
  --bg-alt: #020617;
  --card: #0b1220;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.15);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #1f2933;
  --chip: #111827;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.7);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #1e293b 0, #020617 45%, #020617 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.page {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 16px 40px;
}

header {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr);
  gap: 32px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(8, 47, 73, 0.9));
  padding: 28px 24px;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 16px;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.header-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.headshot {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.8);
}

@media (max-width: 768px) {
  header {
    grid-template-columns: 1fr;
    position: static;
  }
  .page {
    margin-top: 20px;
  }
  .header-right {
    flex-direction: row;
    align-items: center;
  }
}

.name {
  font-size: clamp(2rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

.summary {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 600px;
}

.summary strong {
  color: var(--text);
  font-weight: 600;
}

.header-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.contact-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(51, 65, 85, 0.85);
  display: grid;
  row-gap: 8px;
  font-size: 0.9rem;
  width: 100%;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6b7280;
  min-width: 80px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background-color: var(--chip);
  border: 1px solid rgba(55, 65, 81, 0.9);
  font-size: 0.78rem;
  color: var(--muted);
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background-color: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.95));
  font-size: 0.85rem;
  font-weight: 500;
  color: #e5e7eb;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.9);
  white-space: nowrap;
}
.btn-primary:hover {
  border-color: var(--accent);
  text-decoration: none;
}

main {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.3fr);
  gap: 28px;
}

@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
  }
}

section {
  margin-bottom: 24px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  border-radius: var(--radius-xl);
  padding: 18px 18px 16px;
  border: 1px solid rgba(31, 41, 55, 0.95);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.7);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  gap: 10px;
}

.section-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #9ca3af;
}

.section-subtitle {
  font-size: 0.8rem;
  color: #6b7280;
}

.item {
  padding: 10px 0;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
}
.item:first-of-type {
  border-top: none;
  padding-top: 2px;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.item-title {
  font-weight: 600;
  font-size: 0.98rem;
}

.item-meta {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.item-subtitle {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-top: 2px;
}

.item-location {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 1px;
}

.item ul {
  margin-top: 8px;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.item ul li {
  margin-bottom: 6px;
}

.item-note {
  font-size: 0.86rem;
  color: #9ca3af;
  margin-top: 6px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.pill {
  border-radius: 999px;
  padding: 4px 10px;
  background-color: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(55, 65, 81, 0.9);
  font-size: 0.78rem;
  color: #d1d5db;
  white-space: nowrap;
}

.skills-block {
  margin-bottom: 14px;
}

.list-compact {
  list-style: none;
  padding-left: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.list-compact li {
  margin-bottom: 4px;
}

.badge-group-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6b7280;
  margin-bottom: 4px;
}

footer {
  margin-top: 10px;
  padding: 16px 4px 4px;
  font-size: 0.78rem;
  color: #4b5563;
  text-align: center;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
}

.nav-links a {
  padding: 4px 9px;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(55, 65, 81, 0.9);
  text-decoration: none;
  color: #e5e7eb;
}
.nav-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

html {
  scroll-behavior: smooth;
}
