/* ===== Mindxium minimal theme ===== */
@font-face {
  font-family: "Michroma";
  src: url("Michroma/Michroma.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  color: #ccd0d7;
  font-family: "Michroma", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  letter-spacing: .02em;
  background: #020617;
  overflow-x: hidden;
}

a { color: #c9ccd2; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Shared background */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(1200px 800px at 20% 15%, rgba(255,255,255,.06), transparent 60%) no-repeat,
              url("main_bg_space.jpg") center / cover no-repeat #000;
  background-image:
      radial-gradient(1200px 800px at 20% 15%, rgba(255,255,255,.06), transparent 60%),
      url("../assets/main_bg_space.jpg");
  filter: saturate(1.05);
}

/* Footer links (used on both pages) */
.footer-links {
  position: fixed;
  left: clamp(16px, 6vw, 80px);
  bottom: clamp(16px, 6vh, 80px);
  display: flex;
  gap: clamp(24px, 6vw, 120px);
  font-size: clamp(12px, 1.3vw, 18px);
}
.footer-links a { opacity: .9; }
.footer-links a:hover { opacity: 1; text-decoration: none; filter: drop-shadow(0 0 8px rgba(255,255,255,.15)); }

/* ===== Home ===== */
.home-wrap { min-height: 100svh; position: relative; }

.hero {
  position: absolute;
  top: clamp(6vh, 10vh, 14vh);
  left: clamp(32px, 14vw, 240px);
}

.brand-hero {
  margin: 0;
  display: inline-flex;
  align-items: flex-end;
  gap: clamp(12px, 2vw, 36px);
  font-size: clamp(56px, 12vw, 78px);
  line-height: .8;
  font-weight: 400;
  color: #d0d3d8;
  text-shadow: 0 12px 40px rgba(0,0,0,.45);
}

.tagline {
  margin: 0;
  padding-left: clamp(12px, 2vw, 32px);
  border-left: 1px solid rgba(255,255,255,.15);
  display: inline-flex;
  align-items: center;
  font-size: clamp(14px, 2.2vw, 32px);
  color: #a7acb3;
  letter-spacing: .06em;
  text-shadow: 0 10px 30px rgba(0,0,0,.55);
  white-space: nowrap;
}

/* "demo" call-to-action */
.cta-demo {
  position: absolute;
  right: clamp(16px, 8vw, 140px);
  top: 48vh;
  transform: translateY(-50%);
  font-size: clamp(22px, 3.2vw, 48px);
  text-transform: lowercase;
  padding: .25em .45em;
  border-radius: 12px;
  background: rgba(2, 8, 23, .35);
  border: none;
  outline: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.cta-demo:hover {
  background: rgba(255,255,255,.05);
  text-decoration: none;
}

/* ===== People (demo) page ===== */
.topbar {
  position: fixed;
  top: clamp(8px, 4vh, 24px);
  left: clamp(16px, 6vw, 80px);
  z-index: 2;
}
.home .topbar {
  display: none;
}
.brand-link {
  font-size: clamp(20px, 4vw, 42px);
  color: #d0d3d8;
  text-shadow: 0 8px 24px rgba(0,0,0,.45);
  font-family: "Michroma", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
}
.brand-link:hover { text-decoration: none; opacity: .95; }

.people-wrap {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 6vh, 60px);
  padding: clamp(80px, 10vh, 140px) clamp(16px, 6vw, 64px);
}

.section-title {
  position: static;
  margin: 0;
  text-align: left;
  align-self: flex-start;
  margin-left: clamp(8px, 6vw, 80px);
  font-weight: 400;
  color: #c9ccd2;
  font-size: clamp(15px, 2vw, 22px);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.avatars {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 8vw, 96px);
  flex-wrap: wrap;
  width: min(900px, 100%);
  margin-inline: auto;
}

.avatar-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,.45));
  transition: transform .2s ease;
}
.avatar-card:hover { text-decoration: none; transform: translateY(-1px); }
.avatar-card--static {
  cursor: default;
  pointer-events: none;
}
.avatar-card--static:hover {
  transform: none;
}

.avatar-frame {
  width: clamp(92px, 11vw, 150px);
  height: clamp(92px, 11vw, 150px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(60% 60% at 40% 35%, rgba(255,255,255,.06), rgba(255,255,255,.0)),
              rgba(15, 23, 42, .85);
  border: 1.5px solid rgba(255,255,255,.18);
}
.avatar-frame img {
  width: 68%;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
  filter: grayscale(50%) contrast(95%) brightness(105%);
}

.avatar-name {
  font-size: clamp(12px, 1.6vw, 17px);
  color: #c3c7cd;
}

/* A11y */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 700px) {
  .people-wrap { padding-top: clamp(64px, 12vh, 120px); }
  .avatars { gap: clamp(16px, 10vw, 56px); }
  .brand-hero {
    flex-wrap: wrap;
    line-height: 1;
  }
  .tagline {
    border-left: none;
    padding-left: 0;
  }
}

.result-item {
  position: relative;
  display: inline-block; /* Or whatever layout you use */
  /* Add other styles like margin, border, etc. as needed */
}


.download-btn {
  position: absolute;   /* Positions it relative to .result-item */
  bottom: 8px;          /* 8px from the bottom edge */
  right: 8px;           /* 8px from the right edge */
  
  /* Styling to make it a small, circular button */
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
  color: white;         /* White icon/emoji */
  border-radius: 50%;   /* Makes it a circle */
  width: 30px;          /* Fixed width */
  height: 30px;         /* Fixed height */
  
  /* Centering the icon/emoji inside the circle */
  display: flex;
  align-items: center;
  justify-content: center;
  
  text-decoration: none; /* Removes the underline from the link */
  font-size: 14px;       /* Size of the emoji */
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.download-btn:hover {
  background-color: rgba(0, 0, 0, 0.9); /* Darker on hover */
}
.download-btn svg {
  width: 16px;
  height: 16px;
}
