:root {
  --bg: #0d1117;
  --bg-alt: #161b22;
  --surface: #1c2128;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #3fb950;
  --accent-hover: #56d364;
  --border: #30363d;
  --radius: 12px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --page-max: 1100px;
  --page-pad: 1.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

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

/* ─── Sticky bar ─────────────────────────────────────────── */
.sticky-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  transition: transform 0.25s ease;
  pointer-events: none;
}

.sticky-bar--visible {
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-bar__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sticky-bar__name {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.sticky-bar__social {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 4rem var(--page-pad) 3.5rem;
}

.hero__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
}

.hero__photo {
  width: 11rem;
  height: 11rem;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.hero__name {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero__tagline {
  margin: 0.4rem 0 0.9rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
}

.hero__social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

/* ─── Social icon buttons ────────────────────────────────── */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  line-height: 0;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.social-link .icon,
.social-link img.icon {
  width: 1.125rem;
  height: 1.125rem;
  display: block;
  flex-shrink: 0;
}

.social-link--linkedin img.icon { width: 1.25rem; height: 1.25rem; }
.social-link--medium .icon      { width: 1.35rem; height: 0.9rem; }

.social-link img.icon {
  object-fit: contain;
  object-position: center;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.social-link--linkedin:hover {
  border-color: rgba(10, 102, 194, 0.45);
  background: rgba(10, 102, 194, 0.1);
}

/* Smaller variant used inside the sticky bar */
.social-link.social-link--sm {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
}

.social-link--sm .icon,
.social-link--sm img.icon { width: 0.9rem; height: 0.9rem; }
.social-link--sm.social-link--linkedin img.icon { width: 1rem; height: 1rem; }
.social-link--sm.social-link--medium .icon      { width: 1.05rem; height: 0.7rem; }

/* ─── Page wrapper ───────────────────────────────────────── */
.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

/* ─── Sections ───────────────────────────────────────────── */
.section {
  padding: 2.25rem 0;
}

.section--border {
  border-bottom: 1px solid var(--border);
}

.section__title {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.prose p {
  margin: 0 0 0.85rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose a {
  font-weight: 500;
}

.cta-row {
  margin-top: 1.25rem !important;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: #0d1117 !important;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #0d1117 !important;
  transform: translateY(-1px);
}

/* ─── Two-column content area ────────────────────────────── */
.two-col {
  border-top: 1px solid var(--border);
  padding-top: 0;
}

.two-col__left,
.two-col__right {
  min-width: 0;
}

.two-col__right .section + .section {
  border-top: 1px solid var(--border);
}

/* ─── What I Do cards ────────────────────────────────────── */
.card-grid {
  display: grid;
  gap: 0.875rem;
}

.card {
  padding: 1.1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: rgba(63, 185, 80, 0.4);
}

.card__title {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
}

.card__text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ─── Experience ─────────────────────────────────────────── */
.experience-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.experience-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.experience-item__icon {
  font-size: 1.1rem;
  line-height: 1.5;
  flex-shrink: 0;
}

.experience-item__body {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.experience-item__org {
  color: var(--text);
  font-weight: 600;
}

/* ─── Beliefs ────────────────────────────────────────────── */
.beliefs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.beliefs-list__item {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.beliefs-list__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 1.5rem var(--page-pad) 3rem;
  border-top: 1px solid var(--border);
}

.footer__text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.error {
  padding: 2rem;
  text-align: center;
  color: #f85149;
}

/* ─── Responsive: tablet and up ─────────────────────────── */
@media (min-width: 640px) {
  .hero__photo {
    width: 12rem;
    height: 12rem;
  }

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

  .card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* ─── Responsive: desktop two-column ────────────────────── */
@media (min-width: 860px) {
  :root {
    --page-pad: 2rem;
  }

  .hero__photo {
    width: 12.5rem;
    height: 12.5rem;
  }

  .two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2.5rem;
    align-items: start;
    border-top: 1px solid var(--border);
  }

  .two-col__left {
    border-right: 1px solid var(--border);
    padding-right: 2.5rem;
  }

  .two-col__right {
    padding-left: 0;
  }

  .two-col__left .section,
  .two-col__right .section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}
