:root {
  --navy: #0f3557;
  --navy-dark: #071d31;
  --blue: #2c6da3;
  --sky: #e8f2fb;
  --white: #ffffff;
  --text: #172033;
  --muted: #657386;
  --line: #dbe6ef;
  --shadow: 0 24px 70px rgba(15, 53, 87, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(44, 109, 163, 0.18), transparent 36rem),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 45%, #f2f7fc 100%);
}

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

main {
  overflow: hidden;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--blue));
  box-shadow: var(--shadow);
}

.nav-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--navy);
}

.section,
.section-grid,
.contact-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 92px 24px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(330px, 0.84fr);
  gap: 40px;
  align-items: center;
  min-height: calc(100vh - 86px);
}

.hero-content h1 {
  margin: 16px 0;
  max-width: 780px;
  color: var(--navy-dark);
  font-size: clamp(3.4rem, 8vw, 6.9rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.eyebrow,
.section-header span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-summary {
  max-width: 760px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--blue));
  box-shadow: 0 18px 38px rgba(44, 109, 163, 0.28);
}

.btn.secondary {
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
}

.btn.full {
  width: 100%;
}

.hero-card {
  position: relative;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(232, 242, 251, 0.78)),
    linear-gradient(135deg, rgba(15, 53, 87, 0.1), rgba(44, 109, 163, 0.05));
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: '';
  position: absolute;
  right: -48px;
  top: -48px;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: rgba(44, 109, 163, 0.18);
}

.avatar {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  margin-bottom: 28px;
  border-radius: 34px;
  color: var(--white);
  font-size: 2.7rem;
  font-weight: 950;
  letter-spacing: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent),
    linear-gradient(135deg, var(--navy-dark), var(--blue));
  box-shadow: 0 24px 55px rgba(15, 53, 87, 0.25);
}

.hero-card h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 1.7rem;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.metrics div {
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
}

.metrics strong {
  display: block;
  color: var(--navy);
  font-size: 1.35rem;
}

.metrics span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.section-header {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-header h2 {
  margin: 12px 0 14px;
  color: var(--navy-dark);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.cards.four-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.mini-card,
.stack-card,
.education-item,
.contact-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(15, 53, 87, 0.08);
}

.mini-card {
  min-height: 182px;
  padding: 24px;
  border-radius: 26px;
}

.mini-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 14px;
  color: var(--white);
  font-weight: 900;
  background: var(--blue);
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.dark-section {
  max-width: none;
  margin: 0;
  padding-left: max(24px, calc((100vw - 1180px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1180px) / 2 + 24px));
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(44, 109, 163, 0.88), rgba(7, 29, 49, 0.96)),
    var(--navy-dark);
}

.dark-section .section-header h2,
.dark-section .section-header p {
  color: var(--white);
}

.dark-section .section-header span {
  color: #9bd0ff;
}

.timeline {
  display: grid;
  gap: 20px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 18px;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  margin-top: 28px;
  border-radius: 999px;
  background: #9bd0ff;
  box-shadow: 0 0 0 8px rgba(155, 208, 255, 0.12);
}

.timeline-content {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.period {
  color: #9bd0ff;
  font-weight: 900;
  font-size: 0.9rem;
}

.timeline-content h3 {
  margin: 10px 0 4px;
  font-size: 1.35rem;
}

.timeline-content h4 {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.75);
}

.timeline-content p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(44, 109, 163, 0.16);
  border-radius: 999px;
  color: var(--navy);
  background: var(--sky);
  font-size: 0.86rem;
  font-weight: 800;
}

.dark-section .chip {
  color: #eaf6ff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stack-card {
  padding: 26px;
  border-radius: 28px;
}

.stack-card h3 {
  margin: 0 0 18px;
  color: var(--navy);
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 38px;
  align-items: start;
}

.education-list {
  display: grid;
  gap: 14px;
}

.education-item {
  padding: 20px 22px;
  border-radius: 20px;
  color: var(--muted);
  font-weight: 700;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 36px;
  align-items: center;
  margin-bottom: 80px;
  border-radius: 36px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-dark), var(--blue));
}

.contact-section h2 {
  max-width: 760px;
  margin: 12px 0 14px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
  letter-spacing: 0;
}

.contact-section p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.75;
}

.contact-section .eyebrow {
  color: #9bd0ff;
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.1);
}

.contact-card a,
.contact-card span {
  display: block;
  padding: 15px 16px;
  border-radius: 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  overflow-wrap: anywhere;
}

.contact-card .btn {
  margin-top: 4px;
  background: var(--white);
  color: var(--navy);
}

.profile-photo {
  overflow: hidden;
  padding: 0;
  background: var(--white);
}

.profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 980px) {
  .section-grid,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .cards.four-columns,
  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-section {
    border-radius: 0;
    margin-bottom: 0;
  }
}

@media (max-width: 680px) {
  .navbar {
    align-items: flex-start;
    gap: 16px;
  }

  .nav-links {
    display: none;
  }

  .section,
  .section-grid,
  .contact-section {
    padding: 70px 18px;
  }

  .hero-content h1 {
    font-size: clamp(3.2rem, 18vw, 4.8rem);
  }

  .hero-card,
  .timeline-content,
  .stack-card,
  .mini-card {
    border-radius: 24px;
  }

  .cards.four-columns,
  .stack-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
/* Dynamic profile refresh */
body {
  background:
    linear-gradient(120deg, rgba(44, 109, 163, 0.08) 0 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(180deg, #f6fbff 0%, #ffffff 44%, #eef8f4 100%);
}

main {
  position: relative;
  isolation: isolate;
}

.brand,
.hero-content h1,
.section-header h2,
.contact-section h2 {
  letter-spacing: 0;
}

.navbar {
  border-bottom: 1px solid rgba(219, 230, 239, 0.75);
  background: rgba(247, 251, 255, 0.72);
}

.hero.section-grid {
  position: relative;
  max-width: 1240px;
  grid-template-columns: minmax(0, 1.26fr) minmax(360px, 0.74fr);
  gap: 48px;
  padding-top: 72px;
}

.hero.section-grid::before {
  content: '';
  position: absolute;
  right: 22px;
  top: 112px;
  z-index: -1;
  width: min(460px, 40vw);
  height: min(460px, 40vw);
  border: 1px solid rgba(44, 109, 163, 0.16);
  transform: rotate(-7deg);
}

.hero-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
}

.portrait-frame {
  position: relative;
  width: 178px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 8px solid var(--white);
  border-radius: 32px;
  background: var(--white);
  box-shadow: 0 26px 70px rgba(15, 53, 87, 0.24);
  transform: rotate(-2deg);
}

.portrait-frame::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  pointer-events: none;
}

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

.hero-heading h1 {
  margin: 12px 0 14px;
  font-size: 5.4rem;
  line-height: 0.92;
}

.hero-badges,
.hero-strip,
.focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span,
.hero-strip span,
.focus-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(44, 109, 163, 0.15);
  border-radius: 999px;
  color: #17425f;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 900;
}

.hero-summary {
  max-width: 860px;
  padding-left: 206px;
  font-size: 1.14rem;
}

.hero-actions {
  padding-left: 206px;
}

.hero-strip {
  margin-top: 18px;
  padding-left: 206px;
}

.hero-strip span {
  color: #0f3557;
  background: #e8f2fb;
}

.profile-panel {
  align-self: center;
  overflow: hidden;
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(232, 242, 251, 0.84)),
    linear-gradient(135deg, rgba(48, 165, 138, 0.12), rgba(44, 109, 163, 0.1));
}

.profile-panel::before {
  right: auto;
  left: -72px;
  top: -72px;
  width: 190px;
  height: 190px;
  border-radius: 42px;
  background: linear-gradient(135deg, rgba(48, 165, 138, 0.2), rgba(44, 109, 163, 0.08));
  transform: rotate(18deg);
}

.panel-label {
  display: inline-flex;
  margin-bottom: 18px;
  color: #2f8a74;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.profile-panel h3 {
  position: relative;
  margin-bottom: 16px;
  color: var(--navy-dark);
  font-size: 1.85rem;
  line-height: 1.1;
}

.profile-panel p {
  position: relative;
  font-size: 1rem;
}

.focus-list {
  position: relative;
  margin-top: 22px;
}

.focus-list span {
  color: #1e5f50;
  background: rgba(225, 247, 239, 0.86);
  border-color: rgba(48, 165, 138, 0.18);
}

.profile-panel .metrics {
  position: relative;
  margin-top: 28px;
}

.profile-panel .metrics div,
.mini-card,
.stack-card,
.timeline-content,
.education-item {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.profile-panel .metrics div:hover,
.mini-card:hover,
.stack-card:hover,
.education-item:hover {
  border-color: rgba(48, 165, 138, 0.28);
  box-shadow: 0 22px 55px rgba(15, 53, 87, 0.12);
  transform: translateY(-4px);
}

.timeline-content:hover {
  transform: translateX(6px);
}

.section-header h2,
.contact-section h2 {
  font-size: 3rem;
}

@media (max-width: 980px) {
  .hero.section-grid {
    grid-template-columns: 1fr;
  }

  .hero.section-grid::before {
    width: 340px;
    height: 340px;
  }

  .hero-heading h1 {
    font-size: 4.1rem;
  }

  .hero-summary,
  .hero-actions,
  .hero-strip {
    padding-left: 0;
  }
}

@media (max-width: 680px) {
  .hero.section-grid {
    padding-top: 52px;
  }

  .hero-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .portrait-frame {
    width: 148px;
    border-radius: 26px;
  }

  .hero-heading h1 {
    font-size: 3.25rem;
  }

  .section-header h2,
  .contact-section h2 {
    font-size: 2.2rem;
  }

  .hero-badges span,
  .hero-strip span,
  .focus-list span {
    min-height: 32px;
    font-size: 0.78rem;
  }
}
/* End dynamic profile refresh */