/* about.css - About page content (reuses the shared app shell). */

/* anchor the corner TMDB logo to the page so it can reach the viewport corner */
.about-page .app-container {
  position: relative;
}

.svg-sprite {
  display: none;
}

.about-main {
  gap: 0;
  text-align: center;
  /* min-height fills the viewport so the footer pins to the bottom */
  padding: clamp(14px, 2vh, 28px) clamp(24px, 4vw, 80px) 20px;
  min-height: 100vh;
}

.about-title {
  font-family: "Lao Sangam MN", sans-serif;
  font-weight: 400;
  font-size: clamp(38px, 6vw, 88px);
  line-height: 1.12;
  color: var(--text);
  text-align: center;
  margin: 0;
}

.about-intro {
  font-size: clamp(15px, 1.1vw, 20px);
  line-height: 1.5;
  color: var(--text);
  text-align: left;
  width: 100%;
  max-width: 760px;
  margin: clamp(8px, 1.2vh, 14px) auto 0;
}

.about-tagline {
  font-family: "Lao Sangam MN", sans-serif;
  font-weight: 500;
  font-size: clamp(16px, 1.3vw, 22px);
  line-height: 1.4;
  color: var(--text);
  text-align: center;
  -webkit-text-stroke: 0.4px var(--text);
  margin: clamp(14px, 2.4vh, 30px) 0 0;
}

/* dev cards: side by side on desktop, stack on small screens */
.dev-cards {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap; /* one row; cards shrink instead of wrapping */
  align-items: stretch;
  gap: clamp(24px, 5vw, 110px);
  margin-top: clamp(120px, 16vh, 220px);
}

.dev-card {
  --avatar-size: 124px; /* single source for the coupled avatar/padding sizes */
  position: relative;
  flex: 0 1 400px;
  min-width: 0;
  min-height: clamp(220px, 28vh, 264px);
  /* rgba (not opacity) so avatar/text stay fully opaque */
  background-color: rgba(var(--surface-card), 0.15);
  border-radius: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* top room for the avatar's lower half */
  padding: calc(var(--avatar-size) / 2 + 2px) 16px 18px;
}

/* avatar overlaps the card's top edge, half above */
.dev-avatar {
  position: absolute;
  top: calc(var(--avatar-size) / -2);
  left: 50%;
  transform: translateX(-50%);
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: 50%;
  object-fit: cover;
}

.dev-name {
  font-family: "Lao Sangam MN", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text);
  text-align: center;
  margin: 0;
}

.dev-bio {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  text-align: center;
  max-width: 320px;
  margin: 4px 0 0;
}

.dev-socials {
  display: flex;
  gap: 14px;
  margin-top: auto;
}

.dev-social {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: transparent;
  border: 3px solid var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform var(--t-fast) var(--ease-snap),
    background-color var(--t-base);
}

.dev-social:hover {
  background-color: var(--overlay);
  transform: translateY(-2px);
}

.dev-social svg {
  width: 20px;
  height: 20px;
  fill: var(--text);
}

/* footer: TMDB attribution + logo. margin-top:auto pins it to the bottom */
.about-footer {
  width: 100%;
  margin-top: auto;
  min-height: 56px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.tmdb-attribution {
  font-size: clamp(13px, 1vw, 18px);
  line-height: 1.4;
  color: var(--text);
  opacity: 0.8;
  text-align: center;
  margin: 0;
}

/* bottom-right corner, absolute vs .app-container so it isn't boxed by the content column */
.tmdb-logo {
  position: absolute;
  right: 24px;
  bottom: 22px;
  width: clamp(68px, 6vw, 96px);
  height: clamp(68px, 6vw, 96px);
  object-fit: contain;
}

/* footer flows in-content here; cards stay side by side */
@media (max-width: 1024px) {
  .about-main {
    padding: 16px 20px 48px;
    min-height: 0;
  }

  .about-footer {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 28px 16px 8px;
    margin-top: 28px;
    min-height: 0;
  }

  .tmdb-logo {
    position: static;
  }
}

@media (max-width: 768px) {
  .dev-cards {
    flex-direction: column;
    align-items: center;
    gap: 92px; /* room for each stacked card's overflowing avatar */
    margin-top: 84px;
  }

  .dev-card {
    flex: none;
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 560px) {
  .dev-card {
    border-radius: 36px;
  }
}
