:root {
  --background: #f6f8fb;
  --foreground: #17212d;
  --muted: #617080;
  --primary: #2f6ef3;
  --secondary: #17a591;
  --dark: #15202c;
  --card: rgba(255, 255, 255, 0.88);
  --line: rgba(23, 33, 45, 0.1);
  --shadow: 0 18px 42px rgba(20, 33, 45, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--foreground);
  background:
    radial-gradient(circle at top left, rgba(47, 110, 243, 0.14), transparent 24rem),
    radial-gradient(circle at 88% 18%, rgba(23, 165, 145, 0.16), transparent 24rem),
    linear-gradient(180deg, #fbfdff 0%, var(--background) 100%);
}

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

button {
  font: inherit;
  cursor: pointer;
}

.page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand,
h1,
h2,
h3,
.stat-value {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
}

.brand {
  font-size: 2rem;
}

.topbar-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.topbar-links a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--muted);
}

.hero {
  padding-top: 1rem;
}

.hero-frame {
  margin-top: 1.5rem;
}

.hero-main {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 1.5rem;
}

.hero-copy,
.stat-card,
.card,
.hero-note {
  border-radius: 1.7rem;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 2rem;
  color: white;
  background: linear-gradient(135deg, rgba(47, 110, 243, 0.98), rgba(23, 165, 145, 0.92));
}

.hero-kicker,
.section-kicker,
.card-kicker,
.stat-label,
.note-label,
.timeline-date {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.96;
}

h1 {
  margin-top: 0.8rem;
  font-size: clamp(4rem, 7vw, 7rem);
}

h2 {
  font-size: clamp(2.6rem, 4vw, 4rem);
}

h3 {
  font-size: 1.7rem;
}

.hero-role,
.hero-summary,
.card p,
.muted,
.timeline-copy p,
.hero-note p {
  line-height: 1.7;
  font-size: 1rem;
}

.hero-role {
  margin: 0.85rem 0 0;
  font-size: 1.12rem;
  font-weight: 700;
}

.hero-summary {
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  font-weight: 800;
}

.button-primary {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.button-secondary {
  background: white;
  color: var(--foreground);
}

.portrait-button {
  min-height: 25rem;
  padding: 0;
  border: 0;
  border-radius: 1.7rem;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
}

.portrait-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stat-card {
  min-height: 10.5rem;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: var(--card);
  backdrop-filter: blur(18px);
}

.stat-value {
  font-size: clamp(2.6rem, 4vw, 4rem);
}

.section {
  margin-top: 4.5rem;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.overview-grid,
.education-grid,
.cards-grid {
  display: grid;
  gap: 1rem;
}

.overview-grid {
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
}

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

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

.card {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: var(--card);
  backdrop-filter: blur(18px);
}

.card-dark {
  color: white;
  background: linear-gradient(180deg, #1b293b, #0f1824);
  border-color: rgba(255, 255, 255, 0.08);
}

.card-accent {
  color: white;
  background: linear-gradient(135deg, rgba(47, 110, 243, 0.95), rgba(23, 165, 145, 0.88));
}

.section-kicker,
.card-kicker,
.text-link {
  color: var(--secondary);
}

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

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 18rem 1fr;
  gap: 1.2rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 1.5rem;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.timeline-role,
.timeline-org {
  margin: 0;
}

.timeline-role {
  font-weight: 800;
}

.timeline-org {
  color: var(--muted);
  font-weight: 600;
}

.timeline-date {
  margin-top: 0.45rem;
  color: var(--secondary);
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-top: 1rem;
}

.link-list a {
  padding: 0.72rem 0.92rem;
  border-radius: 999px;
  background: rgba(47, 110, 243, 0.08);
  color: var(--primary);
  font-weight: 700;
}

.contact-list {
  margin-top: 1rem;
}

.contact-list p {
  margin: 0 0 0.75rem;
  line-height: 1.7;
}

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

.portfolio-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.15rem;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: rgba(47, 110, 243, 0.08);
  color: var(--primary);
  font-weight: 800;
}

.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(13, 20, 30, 0.82);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(36rem, 100%);
  padding: 1rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.lightbox-close {
  display: inline-flex;
  margin-left: auto;
  margin-bottom: 0.75rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
}

.lightbox-image {
  width: 100%;
  max-height: 80vh;
  border-radius: 1rem;
  object-fit: contain;
}

@media (max-width: 980px) {
  .hero-main,
  .hero-stats,
  .overview-grid,
  .education-grid,
  .cards-grid,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 2rem;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1rem, 1180px);
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

  .hero-copy {
    padding: 1.5rem;
  }
}
