@import "./theme.css";

/* Fundo da seção está em style.css (#gallery background) */
#gallery {
  position: relative;
  z-index: 2;
  overflow: visible;
  padding-top: clamp(2rem, 6vw, 5rem);
}

#gallery .row {
  overflow: visible;
}

#gallery .gallery-phone-wrap {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Glow amarelo XisPay atrás do mockup */
#gallery .gallery-phone-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70%;
  height: 60%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(240, 245, 60, 0.22) 0%,
    rgba(240, 245, 60, 0.06) 40%,
    transparent 72%
  );
  filter: blur(44px);
  pointer-events: none;
  z-index: 1;
}

/* Estado inicial dos elementos animados */
#gallery .reveal {
  opacity: 0;
  transform: translate3d(0, 56px, 0);
}

#gallery .reveal.visible {
  animation: revealUpFade var(--dur-reveal) var(--ease-reveal) forwards;
}

#gallery .about-text .reveal:nth-child(1) {
  animation-delay: 0.08s;
}
#gallery .about-text .reveal:nth-child(2) {
  animation-delay: 0.22s;
}
#gallery img.reveal {
  animation-delay: 0.38s;
}

#gallery h3 {
  font-size: 22px;
  margin: 0 0 20px;
}

#gallery h2 {
  position: relative;
  margin-bottom: 22px;
  padding-bottom: 18px;
  text-transform: none;
  color: var(--xp-white);
  font-family: "Plus Jakarta Sans", "Montserrat", sans-serif;
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

#gallery h2::after {
  position: absolute;
  content: "";
  height: 4px;
  width: 60px;
  bottom: 0;
  left: 0;
  background: var(--xp-yellow);
  border-radius: 2px;
  box-shadow: 0 2px 14px rgba(240, 245, 60, 0.45);
}

#gallery img {
  margin-top: -32%;
  max-width: 100%;
  height: auto;
  border: 0;
  position: relative;
  z-index: 3;
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.55))
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

/* Botão "Abrir conta" — CTA amarelo XisPay */
#gallery .btn-custom.btn-outlined-white {
  background: var(--xp-yellow);
  color: var(--xp-black);
  border: 0;
  padding: 13px 32px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(240, 245, 60, 0.3),
    0 2px 10px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

#gallery .btn-custom.btn-outlined-white:hover,
#gallery .btn-custom.btn-outlined-white:focus {
  background: var(--xp-yellow-bright);
  color: var(--xp-black);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(240, 245, 60, 0.45),
    0 4px 14px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] #gallery h2 {
  color: var(--xp-white);
}

@media (max-width: 768px) {
  #gallery {
    padding-top: 2rem;
  }

  #gallery .gallery-phone-wrap {
    margin-top: 32px;
  }

  #gallery img {
    margin-top: 32px !important;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.5));
  }
}
