/* ==========================================================================
   ANIMAÇÕES E EFEITOS ESPECIAIS
   Portal Oficial Alexsandra Tomaz
   ========================================================================== */

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes float-badge {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes glow-pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.05);
  }
}

.glow-1 {
  animation: glow-pulse 8s ease-in-out infinite alternate;
}

.glow-2 {
  animation: glow-pulse 10s ease-in-out infinite alternate-reverse;
}

/* A Hero utiliza animação CSS nativa para entrada suave e imediata sem risco de tela escura */
@keyframes heroEntrance {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section {
  animation: heroEntrance 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content {
  animation: heroEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-media-wrapper {
  animation: heroEntrance 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* Transições de rolagem com efeito de subida e encaixe suave dos boxes */
.fade-in-up {
  opacity: 0;
  transform: translateY(46px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fade-in-up.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Delays escalonados em cascata para os cards e boxes se encaixarem em sequência */
.fade-in-up.delay-1 { transition-delay: 0.12s; }
.fade-in-up.delay-2 { transition-delay: 0.22s; }
.fade-in-up.delay-3 { transition-delay: 0.32s; }
.fade-in-up.delay-4 { transition-delay: 0.42s; }
.fade-in-up.delay-5 { transition-delay: 0.52s; }

/* Transições para o Modal Lightbox de Fotos e Vídeos */
.modal-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop .modal-video-card,
.modal-backdrop .modal-photo-dialog {
  opacity: 0;
  transform: scale(0.95) translateY(16px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-video-card,
.modal-backdrop.active .modal-photo-dialog {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Fallback para usuários com redução de movimento ou navegadores que restringem animações */
@media (prefers-reduced-motion: reduce) {
  .hero-section,
  .hero-content,
  .hero-media-wrapper,
  .fade-in-up {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Efeito de brilho em botões e cartões */
.shine-hover {
  position: relative;
  overflow: hidden;
}

.shine-hover::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    rgba(255, 255, 255, 0.12) 25%,
    transparent 30%
  );
  transform: rotate(30deg) translateX(-100%);
  transition: transform 0.8s ease;
}

.shine-hover:hover::after {
  transform: rotate(30deg) translateX(100%);
}
