/**
 * PEPTYZ™ Premium Smooth Scroll Animation System
 * Ultra-smooth 60 FPS GPU-accelerated transitions
 * Easing: cubic-bezier(0.22, 1, 0.36, 1) | Distance: 28-36px | Scale: 0.96 -> 1
 */

/* Prevent horizontal overflow during slide animations */
html, body {
  overflow-x: clip !important;
}

/* ========================================================================== */
/* 1. BASE ANIMATION DEFINITIONS (Initial Hidden States)                      */
/* ========================================================================== */

/* Fade Up (Moves up smoothly from 32px below) */
.peptyz-fade-up,
.animate-fade-up,
.animate-from-bottom {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(4px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

/* Slide From Left (Enters smoothly from -36px left) */
.peptyz-slide-left,
.animate-from-left,
.hero-text-animate-left {
  opacity: 0;
  transform: translateX(-36px);
  filter: blur(4px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

/* Slide From Right (Enters smoothly from +36px right) */
.peptyz-slide-right,
.animate-from-right,
.hero-img-animate-right {
  opacity: 0;
  transform: translateX(36px);
  filter: blur(4px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

/* Fade In (Simple clean opacity reveal) */
.peptyz-fade-in,
.animate-fade-in {
  opacity: 0;
  filter: blur(4px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, filter;
}

/* Scale Reveal (Subtle luxury scale from 96% to 100%) */
.peptyz-scale-in,
.animate-scale-in {
  opacity: 0;
  transform: scale(0.96);
  filter: blur(4px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

/* Generic Reveal Elements */
.reveal-elem {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  filter: blur(4px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

/* ========================================================================== */
/* 2. REVEALED / VISIBLE STATES (Triggered by Observer)                       */
/* ========================================================================== */

.peptyz-visible,
.peptyz-animated,
.peptyz-fade-up.peptyz-visible,
.animate-fade-up.visible,
.animate-from-bottom.visible,
.animate-from-bottom.revealed,
.peptyz-slide-left.peptyz-visible,
.animate-from-left.visible,
.animate-from-left.revealed,
.hero-text-animate-left.visible,
.hero-text-animate-left.revealed,
.peptyz-slide-right.peptyz-visible,
.animate-from-right.visible,
.animate-from-right.revealed,
.hero-img-animate-right.visible,
.hero-img-animate-right.revealed,
.peptyz-fade-in.peptyz-visible,
.animate-fade-in.visible,
.peptyz-scale-in.peptyz-visible,
.animate-scale-in.visible,
.reveal-elem.visible,
.reveal-elem.revealed {
  opacity: 1 !important;
  transform: none !important;
  filter: blur(0px) !important;
}

/* ========================================================================== */
/* 3. STAGGER DELAY UTILITIES (80ms - 120ms intervals)                        */
/* ========================================================================== */

.peptyz-delay-1, .delay-75  { transition-delay: 80ms !important; }
.peptyz-delay-2, .delay-100 { transition-delay: 160ms !important; }
.peptyz-delay-3, .delay-150 { transition-delay: 240ms !important; }
.peptyz-delay-4, .delay-200 { transition-delay: 320ms !important; }
.peptyz-delay-5, .delay-250 { transition-delay: 400ms !important; }
.peptyz-delay-6, .delay-300 { transition-delay: 480ms !important; }

/* ========================================================================== */
/* 4. ACCESSIBILITY: PREFERS REDUCED MOTION                                   */
/* ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .peptyz-fade-up,
  .peptyz-slide-left,
  .peptyz-slide-right,
  .peptyz-fade-in,
  .peptyz-scale-in,
  .animate-fade-up,
  .animate-from-left,
  .animate-from-right,
  .animate-from-bottom,
  .animate-scale-in,
  .hero-text-animate-left,
  .hero-img-animate-right,
  .reveal-elem {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}



/* ========================================================================== */
/* 5. PROCESS VERIFICATION LASER BEAM ANIMATION                              */
/* ========================================================================== */
@keyframes laserTravelHorizontal {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(180%); }
  100% { transform: translateX(350%); }
}

@keyframes laserTravelVertical {
  0% { transform: translateY(-100%); }
  50% { transform: translateY(180%); }
  100% { transform: translateY(350%); }
}

.verify-laser-beam {
  animation: laserTravelHorizontal 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  filter: drop-shadow(0 0 10px #34D399) drop-shadow(0 0 20px #10B981);
}

.verify-laser-beam-v {
  animation: laserTravelVertical 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  filter: drop-shadow(0 0 10px #34D399) drop-shadow(0 0 20px #10B981);
}

/* Step cards active glow on reveal */
.step-card.active-step {
  border-color: rgba(52, 211, 153, 0.6) !important;
  box-shadow: 0 16px 36px -8px rgba(6, 78, 59, 0.45), 0 0 24px -2px rgba(16, 185, 129, 0.35) !important;
}

/* ========================================================================== */
/* 6. FAQ ACCORDION SMOOTH CSS GRID EXPAND / COLLAPSE                        */
/* ========================================================================== */
.faq-accordion-item {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.faq-accordion-item.active {
  border-color: rgba(16, 185, 129, 0.5) !important;
  background-color: #FFFFFF !important;
  box-shadow: 0 10px 24px -4px rgba(6, 46, 32, 0.08) !important;
}

.faq-accordion-item .faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-accordion-item.active .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-accordion-item .faq-answer-inner {
  overflow: hidden;
}

.faq-accordion-item .faq-icon {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.faq-accordion-item.active .faq-icon {
  transform: rotate(45deg);
  color: #059669;
}
