/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --header-height: 4.5rem;
  --font-semi: 600;
  --hue-color: 224;
  --first-color: hsl(var(--hue-color), 82%, 59%);
  --first-color-dark: hsl(var(--hue-color), 72%, 52%);
  --second-color: hsl(var(--hue-color), 48%, 14%);
  --title-color: hsl(var(--hue-color), 34%, 16%);
  --text-color: hsl(var(--hue-color), 14%, 30%);
  --text-muted: hsl(var(--hue-color), 10%, 46%);
  --body-color: #f4f7fd;
  --surface-color: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --border-color: rgba(121, 143, 201, 0.2);
  --shadow-sm: 0 10px 26px rgba(24, 39, 75, 0.08);
  --shadow-md: 0 20px 48px rgba(24, 39, 75, 0.14);
  --radius-sm: 0.9rem;
  --radius-md: 1.2rem;
  --radius-lg: 1.6rem;
  --max-width: 1120px;
  --body-font: "Poppins", sans-serif;
  --big-font-size: clamp(2.5rem, 7vw, 4.75rem);
  --h1-font-size: clamp(2rem, 4vw, 3rem);
  --h2-font-size: clamp(1.55rem, 2vw, 2.15rem);
  --h3-font-size: 1.1rem;
  --normal-font-size: 0.98rem;
  --small-font-size: 0.9rem;
  --smaller-font-size: 0.78rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
  --z-fixed: 100;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--text-color);
  background:
    radial-gradient(circle at top left, rgba(107, 142, 255, 0.16), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, var(--body-color) 100%);
  line-height: 1.75;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--title-color);
  line-height: 1.2;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

main {
  display: block;
}

.bd-grid,
.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.section {
  padding: 2.5rem 0;
}

.section-title {
  position: relative;
  margin-bottom: var(--mb-4);
  text-align: center;
  font-size: var(--h2-font-size);
  color: var(--first-color);
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.8rem;
  width: 4.5rem;
  height: 0.22rem;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--first-color), #9bb4ff);
}

.section-title--left {
  text-align: left;
}

.section-title--left::after {
  left: 0;
  transform: none;
}

.section-lead {
  max-width: 42rem;
  margin: 0 auto var(--mb-5);
  text-align: center;
  color: var(--text-muted);
}

.section-lead--left {
  margin: 0;
  text-align: left;
}

.l-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-fixed);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 30px rgba(24, 39, 75, 0.08);
}

.nav {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__logo {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--title-color);
}

.nav__toggle {
  display: inline-flex;
  font-size: 1.6rem;
  color: var(--title-color);
  cursor: pointer;
}

.nav__menu {
  transition: right 0.3s ease;
}

.nav__item {
  margin-bottom: var(--mb-4);
}

.nav__link {
  position: relative;
  color: #ffffff;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav__link:hover,
.nav__link.active {
  color: var(--first-color);
}

.nav__link.active::after,
.nav__link:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.5rem;
  height: 0.18rem;
  border-radius: 999px;
  background: currentColor;
}

@media screen and (max-width: 899px) {
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: min(85vw, 340px);
    height: calc(100vh - var(--header-height));
    padding: 2rem 1.5rem;
    background: rgba(18, 28, 58, 0.96);
    box-shadow: -16px 0 32px rgba(10, 18, 38, 0.18);
  }
}

.show {
  right: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--first-color), #88a5ff);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(73, 110, 255, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(73, 110, 255, 0.34);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.75);
  color: var(--title-color);
  border-color: var(--border-color);
  box-shadow: none;
}

.button--secondary:hover {
  box-shadow: var(--shadow-sm);
}

.home {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0 4rem;
}

.home__data {
  max-width: 38rem;
}

.home__eyebrow,
.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  margin-bottom: var(--mb-3);
  border-radius: 999px;
  background: rgba(120, 146, 223, 0.12);
  color: var(--first-color-dark);
  font-size: var(--small-font-size);
  font-weight: 600;
  line-height: 1;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: var(--mb-3);
}

.page-hero__meta .page-hero__eyebrow {
  margin-bottom: 0;
}

.page-hero__meta .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  min-height: auto;
  font-size: var(--small-font-size);
  line-height: 1;
  box-shadow: none;
}

.page-hero__submeta {
  margin: -0.45rem 0 0.8rem;
  color: var(--first-color-dark);
  font-size: var(--small-font-size);
  font-weight: 600;
}

.home__title {
  margin-bottom: var(--mb-3);
  font-size: var(--big-font-size);
}

.home__title-color {
  color: var(--first-color);
}

.home__subtitle {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
}

.home__description {
  max-width: 40rem;
  margin-bottom: var(--mb-4);
  color: var(--text-muted);
}

.home__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: var(--mb-4);
}

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

.home__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--title-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, color 0.2s ease;
}

.home__social-icon:hover {
  transform: translateY(-2px);
  color: var(--first-color);
}

.home__social-icon[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.7rem);
  transform: translateX(-50%) translateY(6px);
  padding: 0.45rem 0.7rem;
  border-radius: 0.65rem;
  background: var(--second-color);
  color: #ffffff;
  font-size: var(--smaller-font-size);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.home__social-icon[data-tooltip]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.35rem);
  width: 0.65rem;
  height: 0.65rem;
  transform: translateX(-50%) rotate(45deg) translateY(6px);
  background: var(--second-color);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.home__social-icon[data-tooltip]:hover::after,
.home__social-icon[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.home__social-icon[data-tooltip]:hover::before,
.home__social-icon[data-tooltip]:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) rotate(45deg) translateY(0);
}

.home__img {
  justify-self: center;
  width: min(100%, 320px);
  padding: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-md);
}

.home__img img,
.page-image {
  width: 100%;
  border-radius: 2rem;
  box-shadow: var(--shadow-md);
}

.video-embed {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.video-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.media-gallery {
  display: grid;
  gap: 1rem;
}

.media-slider {
  position: relative;
}

.media-slider__viewport {
  position: relative;
  display: flex;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.media-slider__slide {
  flex: 0 0 100%;
  min-width: 100%;
  transition: transform 0.45s ease;
}

.media-slider__slide img {
  width: 100%;
  display: block;
}

.media-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.media-slider__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--title-color);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.media-slider__button:hover {
  transform: translateY(-1px);
  color: var(--first-color);
}

.media-slider__dots {
  display: flex;
  gap: 0.6rem;
}

.media-slider__dot {
  width: 4rem;
  height: 3rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
}

.media-slider__dot.is-active {
  border-color: var(--first-color);
}

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

.home__img img {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  box-shadow: none;
  object-fit: cover;
}

.glass-card,
.content-card,
.split-card,
.publication-card,
.contact-card,
.detail-card {
  background: var(--surface-color);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.glass-card {
  padding: 1.5rem;
}

.content-card,
.contact-card,
.detail-card {
  padding: 1.6rem;
}

.section-grid {
  display: grid;
  gap: 1.5rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.split-card {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
}

.split-card__media img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.about__subtitle,
.education__subtitle,
.publication-card__title,
.detail-card__title,
.contact__title {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.about__text,
.education__text,
.detail-card__text,
.contact__text {
  color: var(--text-color);
}

.meta-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

.meta-list li {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(120, 146, 223, 0.1);
  color: var(--text-color);
}

.meta-label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text-muted);
  font-size: var(--small-font-size);
  font-weight: 600;
}

.role-entry__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.role-entry__title {
  color: var(--title-color);
  font-weight: 600;
}

.role-entry__date {
  margin-left: auto;
  color: var(--text-muted);
  font-size: var(--small-font-size);
  white-space: nowrap;
}

.role-entry__org {
  margin-top: 0.2rem;
  color: var(--first-color-dark);
  font-size: var(--small-font-size);
  font-weight: 600;
}

.role-entry__desc {
  margin-top: 0.45rem;
}

.updates-list {
  display: grid;
  gap: 1rem;
}

.update-card {
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--surface-color);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-sm);
}

.update-card--featured {
  padding: 1rem;
  background: var(--surface-color);
}

.update-card__media {
  margin-bottom: 1rem;
}

.update-card__media img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  max-height: 420px;
}

.update-card__image--alexandria {
  object-position: 8% 18%;
}

.update-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.update-card__title {
  color: var(--title-color);
  font-weight: 600;
  font-size: 1.02rem;
}

.update-card__date {
  margin-left: auto;
  color: var(--text-muted);
  font-size: var(--small-font-size);
  white-space: nowrap;
}

.update-card__tag {
  margin-top: 0.25rem;
  color: var(--first-color-dark);
  font-size: var(--small-font-size);
  font-weight: 600;
}

.update-card__text {
  margin-top: 0.55rem;
}

.update-card__footer {
  margin-top: 0.9rem;
}

.cards-grid {
  display: grid;
  gap: 1.5rem;
}

.publication-card {
  overflow: hidden;
}

.publication-card__media {
  padding: 1.1rem 1.1rem 0;
}

.publication-card__media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.publication-card__image--poster {
  object-position: center top;
}

.paper-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 220px;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(94, 125, 255, 0.18), rgba(126, 167, 255, 0.08));
  color: var(--title-color);
  text-align: center;
  font-weight: 700;
  line-height: 1.4;
}

.publication-card__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.35rem;
}

.publication-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.publication-card__venue {
  color: var(--first-color-dark);
  font-size: var(--small-font-size);
  font-weight: 600;
}

.publication-card__date {
  margin-left: auto;
  color: var(--text-muted);
  font-size: var(--small-font-size);
  white-space: nowrap;
}

.publication-card__authors {
  color: var(--text-muted);
  font-size: var(--small-font-size);
}

.publication-card__text {
  color: var(--text-color);
}

.publication-card__footer {
  margin-top: auto;
}

.page-hero {
  padding: 2rem 0 1rem;
}

.page-hero__shell {
  display: grid;
  gap: 1.5rem;
  padding: 1.75rem;
}

.page-hero__title {
  font-size: var(--h1-font-size);
  margin-bottom: 0.8rem;
}

.page-hero__text {
  max-width: 44rem;
  color: var(--text-muted);
}

body[data-page="research"] .page-hero__text {
  max-width: none;
}

body[data-page="whats-new"] .page-hero__text {
  max-width: none;
}

body[data-page="about"] .page-hero__text {
  max-width: none;
}

body[data-page="education"] .page-hero__text {
  max-width: none;
}

body[data-page="contact"] .page-hero__text {
  max-width: none;
}

.page-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: var(--small-font-size);
}

.page-breadcrumbs a {
  color: var(--first-color-dark);
}

.page-block {
  padding: 1rem 0 3rem;
}

.contact-list {
  display: grid;
  gap: 1rem;
}

.contact-row {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(120, 146, 223, 0.1);
}

.contact-row strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--title-color);
}

.link-inline {
  color: var(--first-color-dark);
}

.link-inline:hover {
  text-decoration: underline;
}

.footer {
  margin-top: 2rem;
  padding: 2.25rem 0;
  background: linear-gradient(160deg, hsl(var(--hue-color), 55%, 14%), hsl(var(--hue-color), 52%, 10%));
  color: #ffffff;
  text-align: center;
}

.footer__title {
  margin-bottom: 0.75rem;
  font-size: 1.55rem;
  color: #ffffff;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: transform 0.2s ease, background 0.2s ease;
}

.footer__icon:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

.footer__copy {
  font-size: var(--smaller-font-size);
  opacity: 0.85;
}

.reveal {
  visibility: visible;
}

@media screen and (min-width: 768px) {
  .home {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.8fr);
    padding: 3.5rem 0 5rem;
  }

  .section-header {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }

  .split-card {
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    align-items: center;
    padding: 1.8rem;
  }

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

  .page-hero__shell {
    padding: 2.25rem;
  }
}

@media screen and (min-width: 900px) {
  .nav {
    min-height: 5rem;
  }

  .nav__toggle {
    display: none;
  }

  .nav__menu {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
  }

  .nav__list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .nav__item {
    margin-bottom: 0;
  }

  .nav__link {
    color: var(--title-color);
    font-size: 0.95rem;
  }
}

@media screen and (min-width: 992px) {
  .section {
    padding: 3.5rem 0;
  }

  .content-card,
  .contact-card,
  .detail-card {
    padding: 2rem;
  }

  .publication-card__media img {
    height: 240px;
  }

  .paper-placeholder {
    height: 240px;
  }
}
