.pulse-purple {
  animation: pulse-purple 2s infinite;
}
@keyframes pulse-purple {
  0%,
  100% {
    box-shadow: 0 0 0 0 #a955f777;
  }
  50% {
    box-shadow: 0 0 0 20px rgba(255, 184, 0, 0);
  }
}

.rotate-element {
  animation: rotate-element 10s infinite;
}

@keyframes rotate-element {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(90deg);
  }
  50% {
    transform: rotate(180deg);
  }
  75% {
    transform: rotate(270deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.rotate-element-minus {
  animation: rotate-element-minus 10s infinite;
}

@keyframes rotate-element-minus {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-90deg);
  }
  50% {
    transform: rotate(-180deg);
  }
  75% {
    transform: rotate(-270deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

.animate-bounce-x {
  animation: animate-bounce-x 1.5s infinite;
}
@keyframes animate-bounce-x {
  0%,
  100% {
    transform: translateX(0%);
    animationtimingfunction: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateX(25%);
    animationtimingfunction: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* Section Hero */
.section-hero::after {
  position: absolute;
  content: "";
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background: url("/assets/images/bg-section.png") no-repeat center center;
  background-size: cover;
  z-index: 0;
  animation: pulse-bg-purple 3s infinite;
}
@keyframes pulse-bg-purple {
  0%,
  100% {
    filter: brightness(10%);
    opacity: 0.2;
  }
  50% {
    filter: brightness(40%);
    opacity: 1;
  }
}

/* FAQ Styling */
.faq-item {
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #a855f7;
  background-color: #1c1b2f;
}

.faq-answer {
  transition: all 0.3s ease;
}

.faq-answer.show {
  display: block;
  animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slider 9:16 aspect ratio */
.slide img.aspect-\[9\/16\] {
  aspect-ratio: 9/16;
  max-height: 640px;
  width: auto;
  margin: 0 auto;
}

/* Before After Layout - Fotos coladas */
.before-after-container .before-photo,
.before-after-container .after-photo {
  position: relative;
}

.before-after-container .before-photo img {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  margin-right: 0;
}

.before-after-container .after-photo img {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: 0;
}

/* Transformação text overlay */
.before-after-container .absolute {
  z-index: 20;
}

/* Story Frame - Instagram Style */
.story-frame {
  background: linear-gradient(45deg, #a855f7, #2d014d, #a855f7);
  padding: 3px;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px #2d014d56;
  transition: all 0.3s ease;
}

.story-frame:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px #2d014da9;
}

.story-frame img {
  width: 18rem;
  height: 30rem;
  border-radius: 1.5rem;
}

/* Testimonials slider background */
.testimonials-slider {
  background: linear-gradient(135deg, #2d014d2d, #2d014d46);
  border: 1px solid #2d014d;
}

.testimonial-video {
  width: 100%;
  max-width: 56rem;
}

.testimonial-video video {
  min-height: 20rem;
}

/* Hero video cover */
#videoCover {
  transition: opacity 0.3s ease;
}

#videoCover.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .slide img.aspect-\[9\/16\] {
    max-height: 700px;
  }

  .before-after-container .before-photo img,
  .before-after-container .after-photo img {
    height: 20rem;
  }

  .before-after-container .absolute div {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }

  .story-frame img {
    width: 20rem;
    height: 35rem;
  }

  .testimonial-video video {
    height: 25rem !important;
    min-height: 16rem;
  }

  .testimonials-slider {
    padding: 1rem;
  }
}

@media (max-width: 640px) {
  .slide img.aspect-\[9\/16\] {
    max-height: 1000px;
  }

  .story-frame img {
    width: 12rem;
    height: 30rem;
  }

  .testimonial-video video {
    height: 20rem !important;
    min-height: 14rem;
  }
}

@media (min-width: 1024px) {
  .story-frame img {
    width: 20rem;
    height: 26rem;
  }

  .testimonial-video video {
    height: 28rem;
  }
}
