/* style.css */
:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --pink: #ff6fa3; /* main pink */
  --pink-600: #ff4d8d; /* darker accent */
  --ring: rgba(255, 79, 141, 0.35);
  --card: #ffffff;
  --alt: #fff7fb;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  --radius: 16px;
}

* {
  box-sizing: border-box;
  text-align: justify;
  transition-duration: 0.3s;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
img {
  max-width: 80%;
  border-radius: 16px;
  height: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid #f3e0ea;
}
.site-header > div {
  padding: 0 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .banner {
  background: linear-gradient(
    270deg,
    var(--pink-600),
    #e047ff,
    var(--pink-600)
  );
  background-size: 400% 400%;
  animation: moveShade 3s ease infinite;
  color: #fff;
  text-align: center;
  width: 100%;
  height: 50px;
  padding: 6px 12px;
  font-size: 0.9rem;
  border-radius: 0;
}

@keyframes moveShade {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}
.logo {
  height: 36px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  gap: 16px;
  align-items: center;
}
a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
}
a:hover {
  background: #ffe3ee;
}
.cta {
  background: var(--pink);
  color: #fff;
  box-shadow: var(--shadow);
}
.cta:hover {
  background: var(--pink-600);
}

/* Mobile burger */
#nav-toggle {
  display: none;
}
.burger {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
}
.burger span,
.burger span:before,
.burger span:after {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: #222;
  content: "";
  top: 17px;
}
.burger span:before {
  top: -8px;
}
.burger span:after {
  top: 8px;
}

@media (max-width: 840px) {
  .burger {
    display: block;
  }
  .nav {
    position: absolute;
    top: 60px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  .nav a {
    width: 100%;
    text-align: center;
  }
  #nav-toggle:checked ~ .nav {
    display: flex;
  }

  .site-header .banner {
    overflow: hidden;
    position: relative;
    white-space: nowrap;
  }

  .site-header .banner h3 {
    display: inline-block;
    font-size: 0.7rem;
    margin: 0;
    animation: scroll-loop 12s linear infinite;
  }

  .site-header .banner h3::after {
    content: attr(data-text);
    padding-left: 5rem; /* space between repeats */
  }

  @keyframes scroll-loop {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background-color: rgb(153, 0, 54);
  background: url('../img/hero_background.jpg') no-repeat center center fixed;
  background-size: cover;
}
.hero-inner {
  max-width: 70vw;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}
.eyebrow {
  color: var(--pink-600);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 10px;
}
.hero h1.welcome {
  font-size: 1.8rem;
  line-height: 1.12;
  margin: 0.2em 0;
  color: white;
  text-align: left;

}
.sub {
  font-size: 1.1rem;
  color: rgb(226, 226, 226);
  max-width: 60ch;
}
.hero-stats {
  display: flex;
  gap: 16px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
  color: #444;
}
.hero-media img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.partners {
  margin: 30px 0;
}
.partners>img {
  margin: 0 20px;
  border-radius: 0;
}

.btn {
  text-align: center;
  display: inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn.primary {
  background: var(--pink);
  color: #fff;
}
.btn.primary:hover {
  background: var(--pink-600);
}
.btn.ghost {
  background: #fff;
  border-color: #f2c9d9;
}
.btn.ghost:hover {
  border-color: var(--pink-600);
  box-shadow: 0 0 0 4px var(--ring);
}

/* Sections */
.section {
  padding: 70px 20px;
  background: var(--alt);
}
.section:nth-child(odd) {
  background: none;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
}
.section-lead {
  color: var(--muted);
  margin-top: -6px;
}

/* Cards grid */
.grid.cards {
  margin-top: 26px;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 960px) {
  .grid.cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .grid.cards {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid #f4e1eb;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.card-body {
  padding: 16px;
}
.card h3 {
  margin: 6px 0 8px;
}
.muted {
  color: var(--muted);
}
.link {
  display: inline-block;
  margin-top: 8px;
  color: var(--pink-600);
  text-decoration: none;
  font-weight: 700;
}
.link:hover {
  text-decoration: underline;
}

/* Publications */
.pub-list {
  display: grid;
  gap: 18px;
  counter-reset: item;
  margin: 24px 0 0;
  padding: 0;
}
.pub-list > li {
  list-style: none;
  padding: 18px;
  border: 1px solid #f4e1eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

/* Team */
.grid.team {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 22px;
}
@media (max-width: 960px) {
  .grid.team {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .grid.team {
    grid-template-columns: repeat(2, 1fr);
  }
}
.person {
  border: 1px solid #f4e1eb;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px;
  height: 100%;
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.person img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
}
.person h3 {
  font-size: 0.9rem;
  margin: 10px 0 4px;
  text-align: center;
}
.person p {
  font-size: 0.8rem;
}
.role {
  text-align: center;
  font-weight: 500;
  color: #333;
  margin: 0 0 6px;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 26px 16px;
  color: var(--muted);
  border-top: 1px solid #f3e0ea;
  background: #fff;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 60;
  padding: 40px;
}
.modal.open {
  opacity: 1;
  pointer-events: auto;
}
body.modal-open {
  overflow: hidden;
}
.modal-dialog {
  width: min(900px, 92vw);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border: 1px solid #f4e1eb;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}
.modal-content {
  padding: 22px;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
}
@media (max-width: 820px) {
  .modal-dialog {
    grid-template-columns: 1fr;
    width: auto;
  }
  .modal-media img {
    border-bottom-left-radius: 0;
    border-top-right-radius: 20px;
  }
}

.centered {
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.inline {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.no-wrap {
  flex-wrap: nowrap;
}

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

h4 {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

hr {
  border: none;
  border-top: 1px solid #f3e0ea;
  margin: 40px 0;
}

.personhead {
  width: 50%;
}

@media (max-width: 820px) {
  .personhead {
    width: 80%;
  }

  p,
  li {
    font-size: 0.8rem;
  }
}

.hero-stats {
  justify-content: space-around;
}