/* ==========================================================================
   1. Garante que o stack-container esteja acima dos corações de fundo
   ========================================================================== */
#stack-container {
  position: relative;
  z-index: 5; /* acima de z-index: 0 dos corações */
}

/* ==========================================================================
   2. Transição suave para os polaroid cards
   ========================================================================== */
.polaroid {
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* ==========================================================================
   3. Ajustes opcionais de responsividade
   ========================================================================== */
/* Se quiser que em telas menores a pilha reduza de tamanho */
@media (max-width: 640px) {
  #stack-container {
    width: 14rem;
    height: 17rem;
  }
  .polaroid {
    width: 14rem;
    height: 17rem;
  }
  .polaroid img {
    width: 10rem;
    height: 10rem;
  }
}


/* ==========================================================================
   1. Container que cobre toda a viewport para posicionar corações
   ========================================================================== */
.hearts {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0; /* fica atrás de todo conteúdo (header/main têm z-index > 0) */
}

/* ==========================================================================
   2. Estilo de cada coração (começa abaixo da tela e flutua para cima)
   ========================================================================== */
.heart {
  position: absolute;
  bottom: -2rem; /* Começa abaixo da viewport */
  color: rgba(233, 30, 99, 0.8); /* pinkDark com opacidade */
  font-size: 1.5rem; /* Tamanho base (pode variar por nth-child) */
  opacity: 0;
  animation-name: floatUp;
  animation-duration: 6s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in;
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   3. Variações de posição horizontal, delay e tamanho por cada <div class="heart">
   ========================================================================== */
.heart:nth-child(1) {
  left: 5%;
  animation-delay: 0s;
  font-size: 1.2rem;
}
.heart:nth-child(2) {
  left: 20%;
  animation-delay: 1s;
  font-size: 1.6rem;
}
.heart:nth-child(3) {
  left: 35%;
  animation-delay: 2s;
  font-size: 1.4rem;
}
.heart:nth-child(4) {
  left: 50%;
  animation-delay: 0.5s;
  font-size: 1.8rem;
}
.heart:nth-child(5) {
  left: 65%;
  animation-delay: 1.5s;
  font-size: 1.3rem;
}
.heart:nth-child(6) {
  left: 80%;
  animation-delay: 0.2s;
  font-size: 1.7rem;
}
.heart:nth-child(7) {
  left: 90%;
  animation-delay: 3s;
  font-size: 1.4rem;
}
.heart:nth-child(8) {
  left: 15%;
  animation-delay: 2.5s;
  font-size: 1.5rem;
}
.heart:nth-child(9) {
  left: 30%;
  animation-delay: 1.2s;
  font-size: 1.6rem;
}
.heart:nth-child(10) {
  left: 45%;
  animation-delay: 2.2s;
  font-size: 1.3rem;
}
.heart:nth-child(11) {
  left: 60%;
  animation-delay: 0.7s;
  font-size: 1.9rem;
}
.heart:nth-child(12) {
  left: 75%;
  animation-delay: 1.8s;
  font-size: 1.4rem;
}
.heart:nth-child(13) {
  left: 85%;
  animation-delay: 2.8s;
  font-size: 1.5rem;
}
.heart:nth-child(14) {
  left: 10%;
  animation-delay: 3.5s;
  font-size: 1.6rem;
}
.heart:nth-child(15) {
  left: 95%;
  animation-delay: 1.1s;
  font-size: 1.7rem;
}

/* ==========================================================================
   4. Keyframes para mover o coração de baixo para cima e sumir suavemente
   ========================================================================== */
@keyframes floatUp {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-110vh) scale(1.2);
    opacity: 0;
  }
}

/* ==========================================================================
   5. (Opcional) Ajustes de estilo global
   ========================================================================== */
/* Aumenta a suavidade das bordas arredondadas */
.rounded-2xl, .rounded-full {
  transition: border-radius 0.3s ease;
}

/* Define uma leve sombra global para cards */
.shadow-2xl {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
