
:root {
  --pink: #ef6294;
  --purple: #6253b2;
  --ink: #28233b;
  --muted: #756f83;
  --line: #ebe5ee;
  --bg: #fcfafd;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body {
  margin: 0;
  color: var(--ink);
  font: 14px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { letter-spacing: -.045em; line-height: 1.16; }
h1 { font-size: clamp(37px, 5.2vw, 65px); }
h2 { font-size: clamp(28px, 3.5vw, 39px); }
h3 { font-size: 17px; line-height: 1.35; }
.container { width: min(100% - 46px, 1050px); margin-inline: auto; }
.section { padding-block: 75px; }
.tinted { background: linear-gradient(135deg,#fdf1f6,#f8f6fd); }
.eyebrow {
  display: block;
  color: var(--pink);
  font-size: 10px;
  letter-spacing: .16em;
  font-weight: 850;
}
.section-head { margin-bottom: 29px; }
.section-head h2 { margin: 7px 0 10px; }
.section-head p { max-width: 630px; color: var(--muted); font-size: 13px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--pink);
  color: #fff;
  border: 1px solid var(--pink);
  padding: 11px 19px;
  border-radius: 28px;
  font-size: 12px;
  font-weight: 750;
  transition: transform .2s, background .2s;
}
.button:hover { transform: translateY(-2px); background: #de5084; }
.button.secondary {
  background: transparent;
  border-color: #a9a1b9;
  color: var(--ink);
}
.button.secondary:hover { background: #f8edf4; }
.button.small { padding: 9px 14px; }
.text-link { color: var(--purple); font-size: 12px; font-weight: 750; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 24px; }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fffc;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  min-height: 67px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo { font-size: 25px; font-weight: 900; letter-spacing: -.1em; }
.logo span { color: var(--pink); }
.nav nav { display: flex; align-items: center; gap: 20px; }
.nav nav a { font-size: 11px; font-weight: 700; }
.nav nav a:not(.button):hover { color: var(--pink); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.16fr .84fr;
  align-items: center;
  gap: 55px;
  padding-block: 72px;
}
.hero h1 { margin: 16px 0; }
.hero h1 em, .contact h2 em { font-style: normal; color: var(--pink); }
.hero p { font-size: 14px; color: var(--muted); max-width: 480px; }
.type-line { color: var(--pink); height: 30px; font-weight: 750; margin-top: 17px; }
.cursor { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.portrait-wrap {
  height: 370px;
  border-radius: 27px 27px 85px 27px;
  background: linear-gradient(135deg,#f5cfde,#d6c8f3);
  position: relative;
  display: grid;
  place-items: center;
}
.portrait-wrap > img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.portrait-placeholder {
  text-align: center;
  font-weight: 750;
  color: #715e8b;
  border: 2px dashed #fff9;
  padding: 40px;
  border-radius: 25px;
}
.portrait-placeholder small { display: block; font-weight: 400; font-size: 11px; }
.floating {
  position: absolute;
  box-shadow: 0 8px 25px #261a3d22;
  background: #fff;
  border: 1px solid #eee3f0;
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 11px;
  font-weight: 750;
}
.floating.first { top: 42px; right: -15px; }
.floating.second { bottom: 32px; left: -17px; }

/* International experience */
.country-strip { background: #f3eefb; border-block: 1px solid #ede5f4; }
.countries {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-block: 18px;
  flex-wrap: wrap;
}
.countries > strong { font-size: 13px; }
.countries > div { display: flex; gap: 9px; flex-wrap: wrap; }
.countries span {
  border: 1px solid #e8dff1;
  background: #fff;
  border-radius: 99px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 700;
}

/* Moving logos */
.logo-banner {
  margin-top: 23px;
  background: #fff;
  box-shadow: 0 9px 24px #23163b0a;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 0;
  overflow: hidden;
}
.logo-label {
  font-size: 10px;
  letter-spacing: .12em;
  font-weight: 850;
  color: #73698a;
  padding: 0 23px 12px;
}
.marquee { overflow: hidden; }
.marquee-track {
  display: flex;
  width: max-content;
  animation: marq 27s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-set { display: flex; align-items: center; gap: 55px; padding-right: 55px; }
.logo-set span { white-space: nowrap; font-size: 15px; font-weight: 850; color: #625681; }
@keyframes marq { to { transform: translateX(-50%); } }

/* About me */
.about {
  display: grid;
  grid-template-columns: 1fr .95fr;
  gap: 55px;
  align-items: center;
}
.about p { margin-top: 14px; color: var(--muted); }
.about h2 { margin-top: 8px; }
.skills {
  border: 1px solid var(--line);
  background: #faf4fc;
  border-radius: 23px;
  padding: 24px;
}
.skills h3 { margin-bottom: 16px; }
.skill-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.skill-grid > div {
  border: 1px solid #e9e1ed;
  border-radius: 12px;
  background: #fff;
  padding: 13px;
  font-size: 12px;
  font-weight: 700;
}

/* Experience */
.filters { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 23px; }
.filter {
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  color: #665d76;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 700;
}
.filter.active { background: var(--pink); color: white; border-color: var(--pink); }
.master {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 20px;
  align-items: start;
}
.selector-list { display: flex; flex-direction: column; gap: 9px; }
.select-item {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 13px;
}
.select-item.active { border-color: #7665c8; background: #f0ecfb; }
.select-item .symbol {
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: #eee7fa;
  color: var(--purple);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
}
.select-item strong { font-size: 12px; line-height: 1.35; display: block; }
.select-item small { color: #80788b; font-size: 10px; display: block; }
.detail-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  min-height: 290px;
  padding: 28px;
  box-shadow: 0 8px 22px #26193a0b;
}
.detail-box h3 { font-size: 23px; margin: 8px 0 3px; }
.detail-box .org { color: var(--purple); font-weight: 750; }
.date { font-size: 12px; color: #b25388; margin: 9px 0; }
.detail-box p { font-size: 13px; color: var(--muted); margin: 15px 0; }
.detail-box ul, .education-card ul {
  padding-left: 20px;
  color: #6f687c;
  font-size: 12px;
  line-height: 1.9;
}
.impact {
  background: #fcebf2;
  color: #a6386c;
  font-size: 12px;
  font-weight: 800;
  padding: 12px;
  border-radius: 12px;
  margin: 17px 0;
}

/* Education timeline */
.timeline { position: relative; }
.timeline:before {
  content: "";
  position: absolute;
  left: 50%;
  height: 100%;
  width: 2px;
  background: #dcccfb;
}
.education-card {
  position: relative;
  width: calc(50% - 28px);
  padding: 25px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 6px 19px #30214011;
  margin-bottom: 30px;
}
.education-card:after {
  content: '✦';
  position: absolute;
  top: 23px;
  right: -44px;
  border-radius: 50%;
  background: #efeafd;
  color: var(--purple);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}
.education-card.right { margin-left: calc(50% + 28px); }
.education-card.right:after { right: auto; left: -45px; }

.education-card img {
  max-width: 180px;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 15px;
}

.education-card h3 { margin-bottom: 5px; }
.education-card strong { font-size: 12px; color: var(--purple); }
.education-card ul { margin-bottom: 0; }

/* Certifications */
.cert-carousel { display: flex; align-items: center; gap: 12px; }
.circle-button {
  border-radius: 50%;
  width: 35px;
  height: 35px;
  min-width: 35px;
  border: 1px solid var(--line);
  background: white;
  font-size: 23px;
  color: var(--purple);
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.cert-card {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  gap: 9px;
  min-height: 224px;
  padding: 22px 14px;
}
.cert-card img { height: 72px; width: 92px; object-fit: contain; }
.cert-fallback {
  height: 72px;
  width: 76px;
  display: grid;
  place-items: center;
  background: #6653b5;
  clip-path: polygon(50% 0,94% 25%,94% 75%,50% 100%,6% 75%,6% 25%);
  color: white;
  font-weight: 900;
}
.cert-card h3 { font-size: 13px; }
.cert-card p { font-size: 11px; color: var(--muted); }
.cert-card a { font-size: 11px; font-weight: 750; color: var(--purple); }
.page-number { text-align: center; color: #8b7eaa; font-size: 11px; margin-top: 15px; }

/* Awards */
.award-grid, .project-grid, .media-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 17px;
}
.award {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 21px;
  display: flex;
  gap: 14px;
}
.award > span {
  font-size: 22px;
  background: #ffeff5;
  min-width: 47px;
  height: 47px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.award h3 { font-size: 14px; }
.award p { color: var(--muted); font-size: 12px; margin-top: 6px; }

/* Projects */
.project-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--line);
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: 280px;
  box-shadow: 0 7px 20px #311d3e0b;
  transition: transform .2s,box-shadow .2s;
}
.project-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  background: var(--accent);
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 15px 28px #311d3e18; }
.project-icon {
  width: 53px;
  height: 53px;
  border-radius: 14px;
  background: #f0eafb;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: var(--purple);
}
.project-card .project-type {
  font-size: 10px;
  color: #8765a5;
  letter-spacing: .1em;
  font-weight: 850;
  text-transform: uppercase;
}
.project-card h3 { font-size: 17px; }
.project-card p { font-size: 12px; color: var(--muted); }
.project-outcome {
  background: #fff0f6;
  color: #a93f74;
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 12px;
  font-weight: 800;
  margin-top: auto;
}
.project-card button {
  align-self: start;
  background: none;
  border: 0;
  padding: 5px 0;
  color: #a73977;
  font-weight: 800;
  font-size: 12px;
}

/* Media features */
.media-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .2s;
}
.media-card:hover { transform: translateY(-3px); }
.media-art {
  height: 125px;
  background: linear-gradient(135deg,#ece3fa,#f7e0ed);
  display: grid;
  place-items: center;
  font-size: 44px;
  color: var(--purple);
}
.media-art.tv { background: linear-gradient(135deg,#dce6f8,#d5c6f1); }
.media-body { padding: 23px; }
.media-body h3 { margin: 8px 0; font-size: 16px; }
.media-body p { color: var(--muted); font-size: 12px; }
.media-body a {
  display: inline-block;
  color: var(--purple);
  font-weight: 800;
  font-size: 12px;
  margin: 12px 12px 0 0;
}

/* Speaking */
.speaking-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.speaking-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

/* Consistent speaking card layout */
.speaking-card {
  background: white;
  border: 1px solid #ebe5ee;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.speaking-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f1eafb;
  flex-shrink: 0;
  display: block;
}

.speaking-image img,
.speaking-image video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Keep all text below the picture */
.speaking-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.speaking-body h3 {
  font-size: 15px;
  margin: 8px 0;
  line-height: 1.4;
}

.speaking-body p {
  font-size: 12px;
  color: #756f83;
  line-height: 1.7;
  margin-top: 6px;
}

/* Consistent spacing between cards */
.speaking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 800px) {
  .speaking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 610px) {
  .speaking-grid {
    grid-template-columns: 1fr;
  }
}

.speaking-image img, .speaking-image video { height: 100%; width: 100%; object-fit: cover; }
.speaking-placeholder { color: white; text-align: center; font-size: 13px; padding: 15px; }
.speaking-body { padding: 19px; }
.speaking-body h3 { font-size: 15px; margin: 7px 0; }
.speaking-body p { font-size: 12px; color: var(--muted); }
.speaking-body a {
  display: inline-block;
  color: var(--purple);
  font-size: 11px;
  font-weight: 750;
  margin-top: 12px;
}

/* How I solve problems — light background */
.steps {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 18px;
  margin-top: 30px;
}
.steps article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 6px 18px #20142c08;
}
.steps b {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ed6a9a;
  color: white;
  margin-bottom: 15px;
}
.steps article:nth-child(2) b { background: #9474dc; }
.steps article:nth-child(3) b { background: #61a6e0; }
.steps article:nth-child(4) b { background: #4abba4; }
.steps h3 { font-size: 14px; }
.steps p { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* Contact */
.contact {
  background: linear-gradient(120deg,#f9dfeb,#eae1f8);
  text-align: center;
  padding: 75px 20px;
}
.contact h2 { max-width: 650px; margin: 12px auto; }
.contact p { max-width: 615px; margin: 14px auto; color: #676074; }
.centered { justify-content: center; }

/* Light footer with readable text */
.footer {
  background: #eee8f5;
  color: #2c2543;
  padding: 37px 0 27px;
  border-top: 1px solid #dcd0e8;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
.footer h3 { font-size: 15px; color: #2b2342; margin-bottom: 10px; font-weight: 850; }
.footer p, .footer a {
  display: block;
  color: #4f4662;
  font-size: 12px;
  line-height: 2;
  overflow-wrap: anywhere;
}
.footer a:hover { color: #a53671; }
.copyright {
  border-top: 1px solid #d4c7df;
  margin-top: 26px;
  padding-top: 16px;
  font-size: 11px;
  color: #5e546e;
}

/* Project detail pop-up */
.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #20172bc2;
  padding: 18px;
  backdrop-filter: blur(4px);
}
.dialog-backdrop[hidden] { display: none; }
.dialog {
  width: min(100%,650px);
  max-height: 86vh;
  overflow: auto;
  background: white;
  border-radius: 25px;
  padding: 32px;
  position: relative;
  border-top: 7px solid var(--accent,#eda8cb);
}
.dialog h2 { font-size: 27px; margin: 10px 0; }
.dialog > p { color: var(--muted); font-size: 13px; margin: 12px 0; }
.dialog h3 { font-size: 14px; margin-top: 21px; }
.dialog ul { padding-left: 20px; color: var(--muted); font-size: 13px; }
.dialog li { margin: 8px 0; }
.dialog-close {
  position: absolute;
  right: 15px;
  top: 13px;
  background: #f4eff6;
  border: 0;
  border-radius: 50%;
  height: 34px;
  width: 34px;
  font-size: 22px;
}
.dialog .button { margin-top: 13px; }

/* Scroll animations */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s,transform .65s; }
.reveal.visible { opacity: 1; transform: none; }

/* Tablet */
@media(max-width:800px) {
  .nav nav { gap: 10px; }
  .nav nav a { font-size: 10px; }
  .hero { gap: 25px; }
  .about { gap: 24px; }
  .cert-grid { grid-template-columns: repeat(2,1fr); }
  .cert-card:nth-child(3) { display: none; }
  .speaking-grid { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
}

/* Mobile */
@media(max-width:610px) {
  .container { width: min(100% - 30px,1050px); }
  .nav nav a:nth-child(3), .nav nav a:nth-child(4) { display: none; }
  .nav nav { gap: 11px; }
  .hero { grid-template-columns: 1fr; padding-block: 44px; }
  .portrait-wrap { height: 260px; margin-inline: 10px; }
  .section { padding-block: 53px; }
  .about, .master, .award-grid, .project-grid, .media-grid, .speaking-grid { grid-template-columns: 1fr; }
  .selector-list { flex-direction: row; overflow-x: auto; padding-bottom: 9px; }
  .select-item { min-width: 175px; }
  .timeline:before { left: 14px; }
  .education-card, .education-card.right { width: calc(100% - 46px); margin-left: 46px; }
  .education-card:after, .education-card.right:after { left: -48px; right: auto; }
  .cert-grid { grid-template-columns: 1fr; }
  .cert-card:nth-child(2) { display: none; }
  .skill-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: span 2; }
  .countries { align-items: flex-start; }
  .detail-box { padding: 22px; }
  .dialog { padding: 25px; }
}

@media(prefers-reduced-motion:reduce) {
  *, *:before, *:after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}



/* Contact footer */
.footer {
  background: #eee8f5;
  color: #28233b;
  padding: 55px 20px 25px;
  text-align: center;
}

.footer-contact h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.footer-contact > p {
  color: #625b71;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin: 25px 0 35px;
}

.contact-links a {
  color: #724b96;
  font-weight: 700;
  font-size: 14px;
}

.contact-links a:hover {
  color: #ef6294;
}

.footer .copyright {
  border-top: 1px solid #d4c7df;
  padding-top: 18px;
  font-size: 11px;
}


.aws-badge {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aws-badge img {
  height: 22px;
  width: auto;
  display: block;
}




/* Stronger emphasis on professional achievements */
.detail-box .impact {
  background: linear-gradient(110deg, #fce6f0, #f2ebfc);
  color: #982d67;
  border-left: 4px solid #ef6294;
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.7;
  margin: 22px 0;
}

.detail-box ul li {
  margin-bottom: 12px;
  line-height: 1.85;
}

.detail-box h3 {
  font-size: 24px;
  font-weight: 800;
}

.detail-box {
  padding: 30px;
}


/* ==========================================
   RESPONSIVE DESIGN IMPROVEMENTS
   ========================================== */

/* Prevent content overflowing the screen */
html, body {
  max-width: 100%;
  overflow-x: clip;
}

img, video {
  max-width: 100%;
}

.container {
  width: min(100% - 40px, 1100px);
}

/* Fluid typography */
h1 {
  font-size: clamp(32px, 5vw, 65px);
}

h2 {
  font-size: clamp(25px, 3.2vw, 39px);
}

/* More flexible desktop layouts */
.hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}

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

.master {
  grid-template-columns: minmax(210px, 30%) minmax(0, 1fr);
}

/* ==========================================
   TABLETS AND SMALL LAPTOPS
   ========================================== */

@media (max-width: 1024px) {

  .nav nav {
    gap: 12px;
  }

  .hero {
    gap: 30px;
  }

  .portrait-wrap {
    height: 330px;
  }

  .about {
    gap: 30px;
  }

  .section {
    padding-block: 60px;
  }

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

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

}

/* ==========================================
   TABLETS
   ========================================== */

@media (max-width: 768px) {

  .container {
    width: calc(100% - 36px);
  }

  /* Navigation */
  .nav-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding-block: 12px;
  }

  .nav nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
  }

  .nav nav a {
    font-size: 12px;
  }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-block: 50px;
  }

  .hero > div:first-child {
    max-width: 650px;
  }

  .portrait-wrap {
    width: min(100%, 450px);
    height: 390px;
    margin-inline: auto;
  }

  /* About Me */
  .about {
    grid-template-columns: 1fr;
  }

  .skills {
    width: 100%;
  }

  /* Work experience */
  .master {
    grid-template-columns: 1fr;
  }

  .selector-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
  }

  .select-item {
    min-width: 190px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .detail-box {
    min-height: auto;
  }

  /* Education timeline */
  .timeline::before {
    left: 16px;
  }

  .education-card,
  .education-card.right {
    width: calc(100% - 52px);
    margin-left: 52px;
  }

  .education-card::after,
  .education-card.right::after {
    left: -51px;
    right: auto;
  }

  /* Certifications */
  .cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Awards and projects */
  .award-grid,
  .project-grid,
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

/* ==========================================
   MOBILE PHONES
   ========================================== */

@media (max-width: 600px) {

  .container {
    width: calc(100% - 30px);
  }

  .section {
    padding-block: 48px;
  }

  /* Navigation: keep all links accessible */
  .nav-inner {
    justify-content: center;
  }

  .logo {
    font-size: 23px;
  }

  .nav nav {
    gap: 9px 13px;
  }

  .nav nav a,
  .nav nav a:nth-child(3),
  .nav nav a:nth-child(4) {
    display: inline-flex;
    font-size: 11px;
  }

  .nav nav .button {
    padding: 7px 11px;
  }

  /* Hero */
  .hero {
    gap: 28px;
    padding-block: 38px;
  }

  .hero h1 {
    font-size: clamp(32px, 9vw, 43px);
    line-height: 1.16;
  }

  .hero p {
    font-size: 13px;
  }

  .portrait-wrap {
    width: calc(100% - 18px);
    height: 300px;
  }

  .floating {
    font-size: 10px;
    padding: 8px 10px;
  }

  .floating.first {
    right: -8px;
  }

  .floating.second {
    left: -8px;
  }

  .actions {
    align-items: stretch;
    gap: 10px;
  }

  .actions .button {
    padding: 11px 15px;
  }

  /* About Me */
  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skill-grid > div {
    padding: 12px 9px;
    font-size: 11px;
  }

  /* Work experience */
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .filter {
    flex-shrink: 0;
  }

  .detail-box {
    padding: 20px;
  }

  .detail-box h3 {
    font-size: 21px;
  }

  /* Certifications */
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .cert-card {
    min-height: 210px;
  }

  .cert-card:nth-child(2),
  .cert-card:nth-child(3) {
    display: none;
  }

  /* Awards, projects and media */
  .award-grid,
  .project-grid,
  .media-grid,
  .speaking-grid {
    grid-template-columns: 1fr;
  }

  /* Speaking images */
  .speaking-image {
    height: 210px;
  }

  .speaking-image img,
  .speaking-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* My Approach */
  .steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Contact */
  .contact {
    padding: 55px 15px;
  }

  .contact h2 {
    font-size: 29px;
  }

  /* Simple contact footer */
  .footer {
    padding: 40px 15px 22px;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .contact-links a {
    overflow-wrap: anywhere;
  }

  /* Project pop-up */
  .dialog {
    width: 100%;
    max-height: 85dvh;
    padding: 22px;
  }

}

/* ==========================================
   VERY SMALL PHONES
   ========================================== */

@media (max-width: 380px) {

  .container {
    width: calc(100% - 24px);
  }

  .hero h1 {
    font-size: 31px;
  }

  .portrait-wrap {
    height: 255px;
  }

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

  .nav nav {
    gap: 7px 10px;
  }

  .nav nav a {
    font-size: 10px;
  }

  .actions .button {
    font-size: 11px;
  }

}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee-track {
    animation: none;
  }

}


/* ========================================
   MOBILE FIXES — HERO & WORK EXPERIENCE
   ======================================== */

@media (max-width: 768px) {

  /* 1. Fix portrait covering the text */
  .hero {
    display: flex;
    flex-direction: column;
    gap: 35px;
  }

  /* Keep introduction ABOVE the picture */
  .hero > div:first-child {
    order: 1;
    width: 100%;
  }

  .portrait-wrap {
    order: 2;
    position: relative;
    width: min(100%, 420px);
    height: 350px;
    margin: 0 auto;
  }

  .portrait-wrap > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
  }

  /* Keep floating badges within the picture */
  .floating.first {
    right: 10px;
    top: 15px;
  }

  .floating.second {
    left: 10px;
    bottom: 15px;
  }

  /* 2. Stack work experiences vertically */
  .selector-list {
    display: flex;
    flex-direction: column;
    overflow: visible;
    width: 100%;
    gap: 12px;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  .select-item {
    width: 100%;
    min-width: 0;
    flex-shrink: 1;
  }

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

/* Smaller phones */
@media (max-width: 480px) {

  .portrait-wrap {
    height: 300px;
  }

  .hero {
    gap: 25px;
  }

  .hero h1 {
    font-size: clamp(32px, 9vw, 42px);
  }
}

/* FIX: Hero image overlapping About Me on mobile */
@media (max-width: 768px) {

  .hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch;
    gap: 30px;
    height: auto !important;
    min-height: 0 !important;
    padding-top: 40px;
    padding-bottom: 60px;
  }

  .hero > div:first-child {
    order: 1;
    width: 100%;
  }

  .portrait-wrap {
    order: 2;
    position: relative !important;
    width: 100% !important;
    max-width: 420px;
    height: 350px !important;
    min-height: 350px;
    margin: 0 auto;
    flex-shrink: 0;
  }

  .portrait-wrap > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: inherit;
  }

  .about {
    display: grid;
    grid-template-columns: 1fr !important;
    position: relative;
    padding-top: 60px;
  }
}

@media (max-width: 480px) {
  .portrait-wrap {
    height: 300px !important;
    min-height: 300px;
  }
}


/* FINAL MOBILE HERO PHOTO FIX */
@media (max-width: 768px) {

  .hero {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
    gap: 30px !important;
    padding-bottom: 45px !important;
  }

  .hero > div:first-child {
    order: 1;
    width: 100%;
  }

  .portrait-wrap {
    order: 2;
    width: 100% !important;
    max-width: 420px;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
    position: relative !important;
    overflow: visible;
  }

  .portrait-wrap > img {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    object-position: center top;
    border-radius: inherit;
  }

  .floating.first {
    top: 12px;
    right: 12px;
  }

  .floating.second {
    bottom: 12px;
    left: 12px;
  }

  .about {
    position: relative;
    z-index: 1;
    padding-top: 55px !important;
    clear: both;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}


/* Centre certification carousel arrows */
.cert-carousel {
  display: flex;
  align-items: center !important;
  gap: 16px;
}

.cert-carousel .circle-button {
  flex-shrink: 0;
  align-self: center !important;
  margin: 0 !important;
  position: relative;
  top: 0 !important;
  transform: none !important;
}


/* =====================================
   AWS SHE BUILDS MENTORSHIP
   ===================================== */

.mentorship-section {
  background: #faf6fc;
  padding: 85px 0;
}

.mentorship-section .section-head {
  margin-bottom: 35px;
}

.mentorship-card {
  background: #fff;
  border: 1px solid #eadfee;
  border-top: 5px solid #ef6294;
  border-radius: 24px;
  padding: 38px;
  box-shadow: 0 12px 35px rgba(80, 53, 100, 0.05);
}

/* AWS logo and status */

.mentorship-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 25px;
  border-bottom: 1px solid #eee6f1;
}

.mentorship-logo {
  display: flex;
  align-items: center;
  gap: 18px;
}

.mentorship-logo img {
  width: 90px;
  height: 65px;
  object-fit: contain;
}

.mentorship-logo strong {
  display: block;
  color: #28233b;
  font-size: 16px;
}

.mentorship-logo span {
  display: block;
  color: #756f84;
  font-size: 12px;
  margin-top: 5px;
}

.mentorship-status {
  padding: 9px 17px;
  border-radius: 30px;
  background: #fce5ef;
  color: #b83d75;
  font-size: 12px;
  font-weight: 700;
}

/* Main introduction */

.mentorship-intro {
  padding: 32px 0 18px;
}

.mentorship-intro h3 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.3;
  color: #28233b;
  max-width: 750px;
  margin-bottom: 18px;
}

.mentorship-intro p {
  max-width: 880px;
  font-size: 15px;
  line-height: 1.85;
  color: #625b71;
}

/* Mentorship cards */

.mentorship-journey > h3 {
  color: #28233b;
  font-size: 23px;
  margin: 25px 0;
}

.mentorship-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.mentorship-item {
  background: #f8f4fc;
  border: 1px solid #ebe3f2;
  border-left: 4px solid #ef6294;
  padding: 26px;
  border-radius: 16px;
  min-width: 0;
}

.mentorship-number {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #ef6294;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.mentorship-item h4 {
  font-size: 18px;
  color: #6253b2;
  margin-bottom: 12px;
}

.mentorship-item p {
  font-size: 14px;
  line-height: 1.8;
  color: #625b71;
}

.mentorship-item p + p {
  margin-top: 12px;
}

/* Closing statement */

.mentorship-bottom {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fcebf2;
  border-radius: 16px;
  padding: 24px;
  margin-top: 28px;
}

.mentorship-bottom-icon {
  color: #ef6294;
  font-size: 25px;
  flex-shrink: 0;
}

.mentorship-bottom p {
  margin: 0;
  color: #625b71;
  font-size: 14px;
  line-height: 1.8;
}

/* Tablet and mobile */

@media (max-width: 768px) {

  .mentorship-section {
    padding: 55px 0;
  }

  .mentorship-card {
    padding: 24px;
  }

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

  .mentorship-intro h3 {
    font-size: 25px;
  }

}

@media (max-width: 480px) {

  .mentorship-card {
    padding: 20px;
  }

  .mentorship-top {
    align-items: flex-start;
  }

  .mentorship-logo {
    gap: 12px;
  }

  .mentorship-logo img {
    width: 65px;
    height: 50px;
  }

  .mentorship-logo strong {
    font-size: 14px;
  }

  .mentorship-item {
    padding: 20px;
  }

  .mentorship-item h4 {
    font-size: 16px;
  }

  .mentorship-bottom {
    padding: 18px;
  }

}


/* MEDIA FEATURES — EDITORIAL LIST */

.media-grid {
  display: block !important;
}

.media-card {
  display: block !important;
  background: transparent !important;
  border: none !important;
  border-top: 1px solid #ddd4e2 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

.media-card:last-child {
  border-bottom: 1px solid #ddd4e2 !important;
}

.media-card:hover {
  box-shadow: none !important;
  transform: none !important;
}

.media-art {
  display: none !important;
}

.media-body {
  display: grid !important;
  grid-template-columns: 140px minmax(0, 1fr) 150px;
  column-gap: 24px;
  align-items: center;
  padding: 26px 4px !important;
}

.media-body .eyebrow {
  grid-column: 1;
  grid-row: 1 / span 3;
  margin: 0 !important;
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 1px;
  color: #ef6294;
}

.media-body h3 {
  grid-column: 2;
  grid-row: 1;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
  margin: 0 !important;
  color: #28233b;
}

.media-body p {
  grid-column: 2;
  grid-row: 2;
  margin: 5px 0 0 !important;
  color: #756f84;
  font-size: 13px;
}

.media-body a {
  grid-column: 3;
  justify-self: end;
  align-self: center;
  margin: 0 !important;
  color: #6253b2;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

.media-body a:hover {
  color: #ef6294;
}

.media-body a + a {
  grid-column: 3;
  grid-row: 2;
  margin-top: 8px !important;
}

/* Mobile: publication/date above title, links below */
@media (max-width: 768px) {
  .media-body {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 22px 0 !important;
  }

  .media-body .eyebrow {
    margin-bottom: 4px !important;
  }

  .media-body h3 {
    font-size: 19px;
  }

  .media-body p {
    margin: 0 0 5px !important;
  }

  .media-body a,
  .media-body a + a {
    align-self: flex-start;
    margin: 4px 0 0 !important;
  }
}


/* PROFESSIONAL MEMBERSHIPS */

.memberships-section {
  padding-top: 65px;
  padding-bottom: 65px;
}

.memberships-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.membership-item {
  background: #fff;
  border: 1px solid #ebe5ee;
  border-left: 4px solid #6253b2;
  border-radius: 16px;
  padding: 25px;
}

.membership-item:nth-child(2) {
  border-left-color: #ef6294;
}

.membership-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
  color: #ef6294;
  margin-bottom: 12px;
}

.membership-item h3 {
  font-size: 18px;
  color: #28233b;
  margin-bottom: 8px;
}

.membership-item p {
  color: #756f84;
  font-size: 13px;
}

@media (max-width: 650px) {
  .memberships-grid {
    grid-template-columns: 1fr;
  }
}


/* PROFESSIONAL MEMBERSHIPS */

.memberships-section {
  padding-top: 65px;
  padding-bottom: 65px;
}

.memberships-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.membership-item {
  background: #fff;
  border: 1px solid #ebe5ee;
  border-left: 4px solid #6253b2;
  border-radius: 16px;
  padding: 25px;
}

.membership-item:nth-child(2) {
  border-left-color: #ef6294;
}

.membership-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
  margin-bottom: 16px;
}

.membership-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
  color: #ef6294;
  margin-bottom: 12px;
}

.membership-item h3 {
  font-size: 18px;
  color: #28233b;
  margin-bottom: 8px;
}

.membership-item p {
  color: #756f84;
  font-size: 13px;
  margin: 0;
}

@media (max-width: 650px) {
  .memberships-grid {
    grid-template-columns: 1fr;
  }
}
