:root {
  --bg: #f2f6fb;
  --card: #ffffff;
  --ink: #1d2a38;
  --muted: #5f6f82;
  --primary: #0a66c2;
  --accent: #f59f00;
  --ring: rgba(10, 102, 194, 0.16);
  --shadow: 0 12px 35px rgba(17, 38, 62, 0.1);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% -10%, rgba(245, 159, 0, 0.15), transparent 35%),
    radial-gradient(circle at 0% 20%, rgba(10, 102, 194, 0.15), transparent 28%),
    var(--bg);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: "Sora", "Manrope", "Segoe UI", sans-serif;
  margin: 0 0 10px;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

h2 {
  font-size: 1.25rem;
}

h3 {
  font-size: 1.03rem;
}

p,
li {
  color: var(--ink);
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(29, 42, 56, 0.1);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.topbar-inner {
  width: min(1180px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 12px 0;
}

.brand {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #0f86ff);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.top-nav a {
  color: #324457;
  font-weight: 500;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.contact-btn:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 36px;
  border: 1px solid rgba(10, 102, 194, 0.28);
  border-radius: 10px;
  background: #fff;
  padding: 7px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: #264560;
}

.mobile-nav {
  display: none;
  width: min(1180px, 92%);
  margin: 0 auto 10px;
  background: #fff;
  border: 1px solid rgba(35, 51, 68, 0.08);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mobile-nav a {
  display: block;
  padding: 11px 14px;
  color: #27425b;
  border-top: 1px solid rgba(47, 65, 84, 0.1);
}

.mobile-nav a:first-child {
  border-top: none;
}

.mobile-nav.is-open {
  display: block;
}

.page-wrap {
  width: min(1180px, 92%);
  margin: 24px auto 56px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(35, 51, 68, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-hero {
  margin-bottom: 18px;
}

.cover-gradient {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 1;
  object-fit: contain;
  object-position: center center;
  background:
    linear-gradient(118deg, rgba(10, 102, 194, 0.9), rgba(25, 180, 197, 0.75) 55%, rgba(245, 159, 0, 0.7));
}

.profile-main {
  display: flex;
  gap: 20px;
  padding: 0 24px 22px;
  transform: translateY(-36px);
}

.avatar {
  min-width: 92px;
  width: 92px;
  height: 92px;
  border-radius: 20px;
  display: block;
  object-fit: cover;
  object-position: center;
  border: 4px solid #fff;
  background: #dbe7f4;
}

.identity {
  padding-top: 38px;
}

.headline {
  max-width: 900px;
  font-size: clamp(0.95rem, 1.7vw, 1rem);
  margin: 8px 0;
}

.meta,
.subtle {
  color: var(--muted);
  font-size: 0.95rem;
}

.entity-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.entity-links span {
  background: #eef6ff;
  color: #1e476d;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.9rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 18px;
  align-items: start;
}

.section {
  padding: 20px;
  margin-bottom: 18px;
}

.qr-section {
  text-align: center;
  margin-top: 4px;
}

.qr-link {
  display: inline-block;
  margin-top: 6px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(10, 102, 194, 0.2);
  background: #fff;
}

.qr-link img {
  display: block;
  width: 220px;
  height: 220px;
  max-width: 100%;
}

.main-column > article:not(#about),
.side-column > section {
  content-visibility: auto;
  contain-intrinsic-size: 500px;
}

.section ul {
  padding-left: 18px;
  margin: 10px 0 0;
}

.timeline-item,
.post,
.publication,
.edu-item {
  padding: 12px 0;
  border-top: 1px solid rgba(47, 65, 84, 0.12);
}

.timeline-item:first-of-type,
.post:first-of-type,
.publication:first-of-type,
.edu-item:first-of-type {
  border-top: none;
  padding-top: 4px;
}

.post p,
.publication p,
.timeline-item p,
.edu-item p {
  margin: 5px 0 0;
  color: #2a3b4e;
}

.publication a {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10, 102, 194, 0.08);
}

.stats .metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-top: 1px solid rgba(47, 65, 84, 0.12);
  padding: 10px 0;
}

.stats .metric:first-of-type {
  border-top: none;
}

.stats .metric span {
  font-size: 1.55rem;
  font-weight: 700;
  color: #10253f;
}

.stats .metric p {
  margin: 0;
  color: #364d64;
}

.skills {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills li {
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(10, 102, 194, 0.2);
  background: rgba(10, 102, 194, 0.04);
}

blockquote {
  margin: 0 0 14px;
  padding: 12px;
  border-left: 4px solid var(--accent);
  background: rgba(245, 159, 0, 0.08);
  border-radius: 8px;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

blockquote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  color: #4e5f73;
  font-family: "Sora", "Manrope", "Segoe UI", sans-serif;
}

.card:focus-within,
.card:hover {
  box-shadow: 0 14px 38px rgba(21, 37, 57, 0.15);
  border-color: var(--ring);
}

@media (max-width: 980px) {
  .page-wrap {
    width: min(980px, 94%);
    margin-top: 18px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .top-nav {
    display: none;
  }

  .contact-btn {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .mobile-nav {
    width: 94%;
  }

  .topbar-inner {
    gap: 10px;
  }

  .contact-btn {
    padding: 7px 12px;
    font-size: 0.92rem;
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: clamp(1.45rem, 5.8vw, 1.85rem);
  }

  h2 {
    font-size: 1.16rem;
  }

  .topbar {
    position: static;
  }

  .topbar-inner {
    width: 94%;
    padding: 10px 0;
    gap: 8px;
  }

  .brand {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 0.9rem;
  }

  .contact-btn {
    margin-left: auto;
  }

  .menu-toggle {
    width: 38px;
    height: 34px;
    border-radius: 9px;
    padding: 6px;
  }

  .page-wrap {
    width: 94%;
    margin-top: 14px;
    margin-bottom: 40px;
  }

  .cover-gradient {
    aspect-ratio: 16 / 5;
  }

  .profile-main {
    flex-direction: column;
    gap: 12px;
    transform: translateY(-30px);
    padding-left: 18px;
    padding-right: 18px;
    padding-bottom: 16px;
  }

  .identity {
    padding-top: 0;
  }

  .avatar {
    width: 84px;
    height: 84px;
    min-width: 84px;
  }

  .section {
    padding: 16px;
    margin-bottom: 14px;
  }

  .qr-link img {
    width: 180px;
    height: 180px;
  }

  .entity-links span {
    font-size: 0.84rem;
    padding: 5px 9px;
  }

  .stats .metric {
    flex-wrap: wrap;
    gap: 4px 8px;
  }

  blockquote {
    padding: 10px;
  }
}

@media (max-width: 420px) {
  .section {
    padding: 14px;
  }

  .profile-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .avatar {
    width: 76px;
    height: 76px;
    min-width: 76px;
  }

  .headline,
  .meta,
  .subtle,
  p,
  li {
    font-size: 0.94rem;
  }

  .qr-link img {
    width: 160px;
    height: 160px;
  }
}
