/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%;
  background: #0d0d0d;
  font-family: "DM Sans", sans-serif;
  color: #fff;
  overflow: hidden;
}

/* Wrapper */
.main-wrapper { position: relative; width: 100vw; height: 100vh; overflow: hidden; }
.header-bio   { position: relative; width: 100vw; height: 100vh; }

/* LAYER 1 — Backgrounds cobrem 100% da tela */
.bg-slide-bio {
  position: absolute;
  inset: 0;                /* top:0 right:0 bottom:0 left:0 */
  overflow: hidden;
  z-index: 0;
}
.slide-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top; /* cabeça sempre visível, corte acontece embaixo */
  opacity: 0;
  transition: opacity 0.7s ease;
}
.slide-bg.active { opacity: 1; }

/* LAYER 2 — Gradiente overlay: escuro esquerda → transparente direita */
.bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    89deg,
    rgba(13,13,13,0.85) 0%,
    rgba(13,13,13,0.68) 30%,
    rgba(13,13,13,0.20) 60%,
    rgba(0,0,0,0.00) 80%
  );
  z-index: 1;
  pointer-events: none;
}

/* LAYER 3 — Conteúdo sobreposto, lado esquerdo */
.container-bio {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 55%;
  max-width: 780px;
  height: 100vh;
  padding: 20px 0 20px 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  z-index: 2;
}

/* Scroll interno */
.s1-bio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 600px;
  height: 80vh;
  padding: 20px 0;
  overflow-y: scroll;
  overflow-x: hidden;
}

/* Scrollbar preta (invisível contra o fundo) */
.s1-bio::-webkit-scrollbar { width: 4px; }
.s1-bio::-webkit-scrollbar-track { background: transparent; }
.s1-bio::-webkit-scrollbar-thumb { background: #0d0d0d; border-radius: 20px; }
.s1-bio { scrollbar-width: thin; scrollbar-color: #0d0d0d transparent; }

/* LAYER 4 — Dots lado direito */
.slide-points-bio {
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  margin: 10px 0;
  cursor: pointer;
  transition: transform 0.7s ease, background 0.7s ease;
}
.dot.active { background: #fff; transform: scale(1.4); }

/* Perfil */
.profile-header {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  margin-bottom: 12px; width: 100%;
  text-align: center;
}
.perfil-img {
  width: 80px; height: 80px;
  border-radius: 50%; object-fit: cover;
  will-change: transform;
}
.profile-name {
  font-family: "Sora", sans-serif;
  font-weight: 700; font-size: 16px; color: #fff;
}
.profile-tagline {
  font-family: "DM Sans", sans-serif;
  font-style: italic; font-size: 14px;
  color: #a4a4a4; letter-spacing: -0.2px;
}

/* Botões */
.bio-link {
  display: block;
  width: 100%; max-width: 560px; height: 175px;
  margin-top: 16px;
  border-radius: 10px;
  box-shadow: rgba(2,2,2,0.21) 5px 6px 8px 3px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform 0.7s ease;
  flex-shrink: 0;
}
.bio-link:hover { transform: scale(1.03); }

.btn-beergam { background-image: url("../assets/btn-beergam.png"); }
.btn-sexta   { background-image: url("../assets/btn-sexta.png"); }
.btn-segunda { background-image: url("../assets/btn-segunda.png"); }
.btn-academy { background-image: url("../assets/btn-academy.png"); }

/* ===== MOBILE ≤768px ===== */
@media (max-width: 768px) {
  html, body { overflow: auto; height: auto; }
  .main-wrapper { height: auto; min-height: 100vh; }
  .header-bio { height: auto; display: flex; flex-direction: column; }

  /* Foto no topo, altura fixa */
  .bg-slide-bio {
    position: relative;
    inset: auto;
    width: 100%;
    height: 56vw;
    min-height: 260px;
    max-height: 400px;
  }
  .slide-bg {
    position: absolute;
    inset: 0;
    object-position: center top;
  }

  /* Gradiente no mobile: de baixo para cima (fade na base da foto) */
  .bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(13,13,13,0) 40%,
      rgba(13,13,13,1) 100%
    );
  }

  /* Dots sobre a foto, lado direito */
  .slide-points-bio {
    position: absolute;
    right: 16px;
    top: 28vw;
    transform: translateY(-50%);
  }

  /* Conteúdo abaixo da foto */
  .container-bio {
    position: relative;
    width: 100%; height: auto;
    max-width: 100%;
    padding: 24px 16px 48px;
    justify-content: flex-start;
    align-items: center;
    z-index: 2;
  }
  .s1-bio {
    width: 100%; max-width: 420px;
    height: auto; overflow: visible;
    align-items: center;
  }
  .bio-link { max-width: 100%; height: 130px; }
}
