/* 
 * LaunchPage AI - Sections Styles
 * 
 * All section-specific animations (1b through 8) including portfolio, builder demo,
 * problem/transformation timeline, social proof, mechanism, value, FAQ, CTA, and footer
 */

/* ============================================
   SECTION 1B - PORTFOLIO GALLERY ANIMATIONS
   ============================================ */

/* Portfolio items appear with stagger */
@media (prefers-reduced-motion: no-preference) {
    #portfolio .scroll-fade-in {
        opacity: 0;
        animation: fadeIn 0.8s ease-out forwards;
        animation-delay: 0.2s;
        animation-play-state: paused;
    }
    
    #portfolio.animate-on-view .scroll-fade-in {
        animation-play-state: running;
    }
}

/* Portfolio auto-scroll animation */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.portfolio-track {
    animation: scroll-left 30s linear infinite;
    animation-play-state: paused;
    will-change: transform;
    /* GPU acceleration already applied */
}

.portfolio-track.animate-on-view {
    animation-play-state: running;
}

.portfolio-track:hover {
    animation-play-state: paused;
}

/* Smooth GPU-accelerated animations */
.portfolio-item {
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateZ(0) scale(1.02);
}

/* ============================================
   SECTION 1C - WEBSITE BUILDER DEMO ANIMATIONS
   ============================================ */

/* Building Animation Timeline */
@keyframes buildStep1 {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes buildStep2 {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes buildStep3 {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buildStep4 {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Code Particles Floating Animation */
@keyframes floatParticle {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) rotate(360deg);
        opacity: 0;
    }
}

/* Building Indicator Pulse */
@keyframes buildingPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Browser demo section animations */
@media (prefers-reduced-motion: no-preference) {
    #builder-demo .scroll-fade-up {
        opacity: 0;
        animation: fadeInUp 0.8s ease-out forwards;
        animation-delay: 0.2s;
        animation-play-state: paused;
    }
    
    #builder-demo.animate-on-view .scroll-fade-up {
        animation-play-state: running;
    }
}

/* Builder Background Orbs - Matching Hero Style */
@keyframes builder-orb-float-1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.25;
    }
    25% {
        transform: translate(15px, -20px) scale(1.03);
        opacity: 0.3;
    }
    50% {
        transform: translate(30px, 0) scale(1.05);
        opacity: 0.25;
    }
    75% {
        transform: translate(15px, 20px) scale(1.03);
        opacity: 0.2;
    }
}

@keyframes builder-orb-float-2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.2;
    }
    25% {
        transform: translate(-20px, 15px) scale(1.04);
        opacity: 0.25;
    }
    50% {
        transform: translate(-40px, 0) scale(1.06);
        opacity: 0.2;
    }
    75% {
        transform: translate(-20px, -15px) scale(1.04);
        opacity: 0.15;
    }
}

@keyframes builder-orb-float-3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.15;
    }
    33% {
        transform: translate(25px, 25px) scale(1.05);
        opacity: 0.2;
    }
    66% {
        transform: translate(-25px, -25px) scale(1.05);
        opacity: 0.15;
    }
}

.builder-bg-orb-1 {
    animation: builder-orb-float-1 20s ease-in-out infinite;
    animation-play-state: paused;
}

.builder-bg-orb-2 {
    animation: builder-orb-float-2 25s ease-in-out infinite;
    animation-play-state: paused;
}

.builder-bg-orb-3 {
    animation: builder-orb-float-3 30s ease-in-out infinite;
    animation-play-state: paused;
}

.builder-bg-orb-1.animate-on-view,
.builder-bg-orb-2.animate-on-view,
.builder-bg-orb-3.animate-on-view {
    animation-play-state: running;
}

/* ============================================
   SECTION 2 - PROBLEM/TRANSFORMATION ANIMATIONS
   ============================================ */

/* Mobile responsiveness improvements for comparison cards */
@media (max-width: 768px) {
    #problem .comparison-grid {
        gap: 1.5rem;
    }
    
    /* Ensure cards stack nicely on mobile */
    #problem .grid.md\\:grid-cols-2 > div {
        min-height: auto;
    }
    
    /* Better text readability on mobile */
    #problem h3 {
        font-size: 1.25rem !important;
        line-height: 1.3;
    }
}

/* Background Orbs - Matching Hero Style */
@keyframes problem-orb-float-1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.25;
    }
    25% {
        transform: translate(15px, -20px) scale(1.03);
        opacity: 0.3;
    }
    50% {
        transform: translate(30px, 0) scale(1.05);
        opacity: 0.25;
    }
    75% {
        transform: translate(15px, 20px) scale(1.03);
        opacity: 0.2;
    }
}

@keyframes problem-orb-float-2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.2;
    }
    25% {
        transform: translate(-20px, 15px) scale(1.04);
        opacity: 0.25;
    }
    50% {
        transform: translate(-40px, 0) scale(1.06);
        opacity: 0.2;
    }
    75% {
        transform: translate(-20px, -15px) scale(1.04);
        opacity: 0.15;
    }
}

@keyframes problem-orb-float-3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.15;
    }
    33% {
        transform: translate(25px, 25px) scale(1.05);
        opacity: 0.2;
    }
    66% {
        transform: translate(-25px, -25px) scale(1.05);
        opacity: 0.15;
    }
}

.problem-bg-orb-1 {
    animation: problem-orb-float-1 20s ease-in-out infinite;
    animation-play-state: paused;
}

.problem-bg-orb-2 {
    animation: problem-orb-float-2 25s ease-in-out infinite;
    animation-play-state: paused;
}

.problem-bg-orb-3 {
    animation: problem-orb-float-3 30s ease-in-out infinite;
    animation-play-state: paused;
}

.problem-bg-orb-1.animate-on-view,
.problem-bg-orb-2.animate-on-view,
.problem-bg-orb-3.animate-on-view {
    animation-play-state: running;
}

/* OPTIMIZED: Disable decorative orb animations on mobile for better performance */
@media (max-width: 768px) {
    .problem-bg-orb-1,
    .problem-bg-orb-2,
    .problem-bg-orb-3,
    .builder-bg-orb-1,
    .builder-bg-orb-2,
    .builder-bg-orb-3,
    .proof-bg-orb-1,
    .proof-bg-orb-2,
    .proof-bg-orb-3,
    .mechanism-bg-orb-1,
    .mechanism-bg-orb-2,
    .mechanism-bg-orb-3,
    .value-bg-orb-1,
    .value-bg-orb-2,
    .value-bg-orb-3,
    .faq-bg-orb-1,
    .faq-bg-orb-2,
    .faq-bg-orb-3,
    .cta-bg-orb-1,
    .cta-bg-orb-2,
    .cta-bg-orb-3,
    .footer-orb-pulse {
        animation: none !important;
    }
}

/* Subtle card glow pulse - very understated */
@keyframes subtle-card-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(77, 124, 254, 0.0), 0 0 40px rgba(0, 212, 161, 0.0);
    }
    50% {
        box-shadow: 0 0 20px rgba(77, 124, 254, 0.05), 0 0 40px rgba(0, 212, 161, 0.03);
    }
}

#problem .relative.bg-gradient-to-br {
    animation: subtle-card-glow 8s ease-in-out infinite;
    animation-play-state: paused;
}

#problem.animate-on-view .relative.bg-gradient-to-br {
    animation-play-state: running;
}

/* Improved Text Readability with Shadows */
.problem-headline,
.transformation-headline {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Remove text shadow from gradient text to preserve vibrancy */
.transformation-headline span.bg-clip-text {
    text-shadow: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* VS Badge Scale Pulse */
@keyframes vs-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.vs-badge {
    animation: vs-pulse 2s ease-in-out infinite;
    animation-play-state: paused;
}

.vs-badge.animate-on-view {
    animation-play-state: running;
}

/* Section Elements Appear on Scroll */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apply scroll animations when section is visible - PAUSED until section is in view */
@media (prefers-reduced-motion: no-preference) {
    .section-header {
        opacity: 0;
        animation: fadeInUp 0.8s ease-out forwards;
        animation-delay: 0.2s;
        animation-play-state: paused;
    }
    
    .comparison-grid {
        perspective: 1000px;
    }
    
    .problem-col {
        opacity: 0;
        animation: slideInLeft 0.8s ease-out forwards;
        animation-delay: 0.4s;
        animation-play-state: paused;
    }
    
    .transformation-col {
        opacity: 0;
        animation: slideInRight 0.8s ease-out forwards;
        animation-delay: 0.6s;
        animation-play-state: paused;
    }
    
    .section-cta {
        opacity: 0;
        animation: fadeInUp 0.8s ease-out forwards;
        animation-delay: 0.8s;
        animation-play-state: paused;
    }
    
    /* Trigger animations when section is in view */
    #problem.animate-on-view .section-header,
    #problem.animate-on-view .problem-col,
    #problem.animate-on-view .transformation-col,
    #problem.animate-on-view .section-cta {
        animation-play-state: running;
    }
}

/* ============================================
   TIMELINE DESIGN STYLES (Section 2 Redesign)
   ============================================ */

/* Timeline container positioning */
#problem .relative.max-w-4xl {
    position: relative;
}

/* Timeline fill line animation */
#timeline-filled {
    transition: y2 0.05s ease-out;
    will-change: y2;
}

/* Glowing orb animation */
#timeline-orb {
    transition: cy 0.05s ease-out, opacity 0.3s ease;
    will-change: cy, opacity;
}

#timeline-orb-fallback {
    transition: top 0.05s ease-out, opacity 0.3s ease;
    will-change: top, opacity;
}

/* Add a subtle pulsing glow to the orb */
@keyframes orbPulse {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(0, 212, 161, 0.8)) drop-shadow(0 0 16px rgba(77, 124, 254, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(0, 212, 161, 1)) drop-shadow(0 0 24px rgba(77, 124, 254, 0.8));
    }
}

#timeline-orb-fallback {
    animation: orbPulse 2s ease-in-out infinite;
    animation-play-state: paused;
}

#timeline-orb-fallback.animate-on-view {
    animation-play-state: running;
}

/* Timeline items staggered animation */
.timeline-item {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.will-animate {
    opacity: 0;
    transform: translateY(40px);
}

.timeline-item.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Stagger delays for each item */
.timeline-item[data-index="1"] { transition-delay: 0.1s; }
.timeline-item[data-index="2"] { transition-delay: 0.2s; }
.timeline-item[data-index="3"] { transition-delay: 0.3s; }
.timeline-item[data-index="4"] { transition-delay: 0.4s; }
.timeline-item[data-index="5"] { transition-delay: 0.5s; }
.timeline-item[data-index="6"] { transition-delay: 0.6s; }

/* Timeline dot pulse animation */
@keyframes dotPulse {
    0%, 100% {
        box-shadow: 0 0 12px currentColor, inset 0 0 8px rgba(0,0,0,0.3);
    }
    50% {
        box-shadow: 0 0 20px currentColor, inset 0 0 8px rgba(0,0,0,0.3);
    }
}

.timeline-item .w-8.h-8.md\\:w-10,
.timeline-item .w-8.h-8 {
    animation: dotPulse 2s ease-in-out infinite;
    animation-play-state: paused;
    transition: all 0.3s ease;
}

#problem.animate-on-view .timeline-item .w-8.h-8.md\\:w-10,
#problem.animate-on-view .timeline-item .w-8.h-8 {
    animation-play-state: running;
}

.timeline-item:hover .w-8.h-8.md\\:w-10,
.timeline-item:hover .w-8.h-8 {
    transform: scale(1.15);
    animation: none;
}

/* Timeline cards in old way (left side on desktop) */
@media (min-width: 768px) {
    .timeline-item:nth-child(odd) .order-2 {
        animation: slideInLeft 0.8s ease-out backwards;
    }
    
    .timeline-item:nth-child(even) .order-2 {
        animation: slideInRight 0.8s ease-out backwards;
    }
}

/* Responsive adjustments for timeline on mobile */
@media (max-width: 767px) {
    .timeline-item .grid {
        gap: 1rem !important;
    }
    
    .timeline-item .w-8.h-8.md\\:w-10 {
        width: 2rem;
        height: 2rem;
    }
    
    .timeline-item .order-1,
    .timeline-item .order-2 {
        order: initial !important;
    }
}

/* Timeline card enhancement - better depth */
.timeline-item .relative.bg-gradient-to-br {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item .relative.bg-gradient-to-br:hover {
    transform: translateY(-4px);
}

/* Timeline item group hover effects */
.timeline-item .group {
    position: relative;
}

.timeline-item .group:hover .absolute.inset-0 {
    animation: glow-expand 0.5s ease-out forwards;
}

@keyframes glow-expand {
    from {
        opacity: 0;
        filter: blur(10px);
    }
    to {
        opacity: 1;
        filter: blur(20px);
    }
}

/* ============================================
   SECTION 3 - SOCIAL PROOF ANIMATIONS
   ============================================ */

/* Background Orbs Pulsing */
@keyframes proof-orb-pulse-1 {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes proof-orb-pulse-2 {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.08);
    }
}

@keyframes proof-orb-pulse-3 {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.12);
    }
}

.proof-bg-orb-1 {
    animation: proof-orb-pulse-1 5s ease-in-out infinite;
    animation-play-state: paused;
}

.proof-bg-orb-2 {
    animation: proof-orb-pulse-2 6s ease-in-out infinite;
    animation-play-state: paused;
}

.proof-bg-orb-3 {
    animation: proof-orb-pulse-3 7s ease-in-out infinite;
    animation-play-state: paused;
}

.proof-bg-orb-1.animate-on-view,
.proof-bg-orb-2.animate-on-view,
.proof-bg-orb-3.animate-on-view {
    animation-play-state: running;
}

/* Testimonial Cards Stagger Animation */
@keyframes cardFadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .proof-header {
        opacity: 0;
        animation: fadeInUp 0.8s ease-out forwards;
        animation-delay: 0.2s;
        animation-play-state: paused;
    }
    
    .testimonial-card:nth-child(1) {
        opacity: 0;
        animation: cardFadeInUp 0.6s ease-out forwards;
        animation-delay: 0.4s;
        animation-play-state: paused;
    }
    
    .testimonial-card:nth-child(2) {
        opacity: 0;
        animation: cardFadeInUp 0.6s ease-out forwards;
        animation-delay: 0.5s;
        animation-play-state: paused;
    }
    
    .testimonial-card:nth-child(3) {
        opacity: 0;
        animation: cardFadeInUp 0.6s ease-out forwards;
        animation-delay: 0.6s;
        animation-play-state: paused;
    }
    
    .testimonial-card:nth-child(4) {
        opacity: 0;
        animation: cardFadeInUp 0.6s ease-out forwards;
        animation-delay: 0.7s;
        animation-play-state: paused;
    }
    
    .testimonial-card:nth-child(5) {
        opacity: 0;
        animation: cardFadeInUp 0.6s ease-out forwards;
        animation-delay: 0.8s;
        animation-play-state: paused;
    }
    
    .testimonial-card:nth-child(6) {
        opacity: 0;
        animation: cardFadeInUp 0.6s ease-out forwards;
        animation-delay: 0.9s;
        animation-play-state: paused;
    }
    
    .proof-stats {
        opacity: 0;
        animation: fadeInUp 0.8s ease-out forwards;
        animation-delay: 1s;
        animation-play-state: paused;
    }
    
    #proof.animate-on-view .proof-header,
    #proof.animate-on-view .testimonial-card,
    #proof.animate-on-view .proof-stats {
        animation-play-state: running;
    }
}

/* ============================================
   SECTION 4 - MECHANISM ANIMATIONS
   ============================================ */

/* Background Orbs Pulsing */
@keyframes mechanism-orb-pulse-1 {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

@keyframes mechanism-orb-pulse-2 {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.08);
    }
}

@keyframes mechanism-orb-pulse-3 {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.12);
    }
}

.mechanism-bg-orb-1 {
    animation: mechanism-orb-pulse-1 5s ease-in-out infinite;
    animation-play-state: paused;
}

.mechanism-bg-orb-2 {
    animation: mechanism-orb-pulse-2 6s ease-in-out infinite;
    animation-play-state: paused;
}

.mechanism-bg-orb-3 {
    animation: mechanism-orb-pulse-3 7s ease-in-out infinite;
    animation-play-state: paused;
}

.mechanism-bg-orb-1.animate-on-view,
.mechanism-bg-orb-2.animate-on-view,
.mechanism-bg-orb-3.animate-on-view {
    animation-play-state: running;
}

/* Timeline line animation */
@keyframes timelineGlow {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
}

.timeline-line {
    animation: timelineGlow 3s ease-in-out infinite;
    animation-play-state: paused;
}

.timeline-line.animate-on-view {
    animation-play-state: running;
}

/* Step Cards Animation */
@keyframes stepReveal {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .mechanism-header {
        opacity: 0;
        animation: fadeInUp 0.8s ease-out forwards;
        animation-delay: 0.2s;
        animation-play-state: paused;
    }
    
    .mechanism-steps {
        opacity: 0;
        animation: fadeIn 0.6s ease-out forwards;
        animation-delay: 0.4s;
        animation-play-state: paused;
    }
    
    .step-1 {
        opacity: 0;
        animation: stepReveal 0.8s ease-out forwards;
        animation-delay: 0.6s;
        animation-play-state: paused;
    }
    
    .step-2 {
        opacity: 0;
        animation: stepReveal 0.8s ease-out forwards;
        animation-delay: 0.8s;
        animation-play-state: paused;
    }
    
    .step-3 {
        opacity: 0;
        animation: stepReveal 0.8s ease-out forwards;
        animation-delay: 1s;
        animation-play-state: paused;
    }
    
    #mechanism.animate-on-view .mechanism-header,
    #mechanism.animate-on-view .mechanism-steps,
    #mechanism.animate-on-view .step-1,
    #mechanism.animate-on-view .step-2,
    #mechanism.animate-on-view .step-3 {
        animation-play-state: running;
    }
}

/* ============================================
   SECTION 5 - VALUE & GUARANTEE ANIMATIONS
   ============================================ */

/* Background Orbs Pulsing */
@keyframes value-orb-pulse-1 {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes value-orb-pulse-2 {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.08);
    }
}

@keyframes value-orb-pulse-3 {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.12);
    }
}

.value-bg-orb-1 {
    animation: value-orb-pulse-1 5s ease-in-out infinite;
    animation-play-state: paused;
}

.value-bg-orb-2 {
    animation: value-orb-pulse-2 6s ease-in-out infinite;
    animation-play-state: paused;
}

.value-bg-orb-3 {
    animation: value-orb-pulse-3 7s ease-in-out infinite;
    animation-play-state: paused;
}

.value-bg-orb-1.animate-on-view,
.value-bg-orb-2.animate-on-view,
.value-bg-orb-3.animate-on-view {
    animation-play-state: running;
}

/* Badge Shine Animation */
@keyframes badgeShineValue {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.5;
        transform: scale(1);
    }
}

.badge {
    animation: badgeShineValue 3s ease-in-out infinite;
    animation-play-state: paused;
}

.badge.animate-on-view {
    animation-play-state: running;
}

/* Section Elements Animation */
@media (prefers-reduced-motion: no-preference) {
    .value-header {
        opacity: 0;
        animation: fadeInUp 0.8s ease-out forwards;
        animation-delay: 0.2s;
        animation-play-state: paused;
    }
    
    .comparison-table {
        opacity: 0;
        animation: slideInLeft 0.8s ease-out forwards;
        animation-delay: 0.4s;
        animation-play-state: paused;
    }
    
    .guarantee-card {
        opacity: 0;
        animation: slideInRight 0.8s ease-out forwards;
        animation-delay: 0.6s;
        animation-play-state: paused;
    }
    
    #value.animate-on-view .value-header,
    #value.animate-on-view .comparison-table,
    #value.animate-on-view .guarantee-card {
        animation-play-state: running;
    }
}

/* ============================================
   SECTION 6 - FAQ ANIMATIONS
   ============================================ */

/* Background Orbs - Premium Floating Animation */
@keyframes faq-orb-float-1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.2;
    }
    25% {
        transform: translate(-20px, 15px) scale(1.04);
        opacity: 0.25;
    }
    50% {
        transform: translate(-35px, 0) scale(1.06);
        opacity: 0.2;
    }
    75% {
        transform: translate(-20px, -15px) scale(1.04);
        opacity: 0.15;
    }
}

@keyframes faq-orb-float-2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.2;
    }
    25% {
        transform: translate(20px, -15px) scale(1.03);
        opacity: 0.25;
    }
    50% {
        transform: translate(35px, 0) scale(1.05);
        opacity: 0.2;
    }
    75% {
        transform: translate(20px, 15px) scale(1.03);
        opacity: 0.15;
    }
}

@keyframes faq-orb-float-3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.15;
    }
    33% {
        transform: translate(-20px, -20px) scale(1.04);
        opacity: 0.2;
    }
    66% {
        transform: translate(20px, 20px) scale(1.04);
        opacity: 0.15;
    }
}

.faq-bg-orb-1 {
    animation: faq-orb-float-1 22s ease-in-out infinite;
    animation-play-state: paused;
}

.faq-bg-orb-2 {
    animation: faq-orb-float-2 26s ease-in-out infinite;
    animation-play-state: paused;
}

.faq-bg-orb-3 {
    animation: faq-orb-float-3 28s ease-in-out infinite;
    animation-play-state: paused;
}

.faq-bg-orb-1.animate-on-view,
.faq-bg-orb-2.animate-on-view,
.faq-bg-orb-3.animate-on-view {
    animation-play-state: running;
}

/* FAQ Items Stagger Animation */
@keyframes faqItemReveal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .faq-header {
        opacity: 0;
        animation: fadeInUp 0.8s ease-out forwards;
        animation-delay: 0.2s;
        animation-play-state: paused;
    }
    
    .faq-list {
        opacity: 0;
        animation: fadeIn 0.6s ease-out forwards;
        animation-delay: 0.4s;
        animation-play-state: paused;
    }
    
    .faq-item:nth-child(1) {
        opacity: 0;
        animation: faqItemReveal 0.6s ease-out forwards;
        animation-delay: 0.5s;
        animation-play-state: paused;
    }
    
    .faq-item:nth-child(2) {
        opacity: 0;
        animation: faqItemReveal 0.6s ease-out forwards;
        animation-delay: 0.6s;
        animation-play-state: paused;
    }
    
    .faq-item:nth-child(3) {
        opacity: 0;
        animation: faqItemReveal 0.6s ease-out forwards;
        animation-delay: 0.7s;
        animation-play-state: paused;
    }
    
    .faq-item:nth-child(4) {
        opacity: 0;
        animation: faqItemReveal 0.6s ease-out forwards;
        animation-delay: 0.8s;
        animation-play-state: paused;
    }
    
    .faq-item:nth-child(5) {
        opacity: 0;
        animation: faqItemReveal 0.6s ease-out forwards;
        animation-delay: 0.9s;
        animation-play-state: paused;
    }
    
    #faq.animate-on-view .faq-header,
    #faq.animate-on-view .faq-list,
    #faq.animate-on-view .faq-item {
        animation-play-state: running;
    }
}

/* ============================================
   SECTION 7 - FINAL CTA ANIMATIONS
   ============================================ */

/* Underline Slide Animation */
@keyframes underlineSlide {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

.animate-underline-slide {
    transform: scaleX(0);
    opacity: 0;
    transition: transform 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease-out;
}

.scroll-fade-up.animate-in .animate-underline-slide {
    transform: scaleX(1);
    opacity: 1;
    transition-delay: 0.8s;
}

/* Background Orbs Pulsing */
@keyframes cta-orb-pulse-1 {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes cta-orb-pulse-2 {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.08);
    }
}

@keyframes cta-orb-pulse-3 {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.12);
    }
}

.cta-bg-orb-1 {
    animation: cta-orb-pulse-1 4s ease-in-out infinite;
    animation-play-state: paused;
}

.cta-bg-orb-2 {
    animation: cta-orb-pulse-2 5s ease-in-out infinite;
    animation-play-state: paused;
}

.cta-bg-orb-3 {
    animation: cta-orb-pulse-3 6s ease-in-out infinite;
    animation-play-state: paused;
}

.cta-bg-orb-1.animate-on-view,
.cta-bg-orb-2.animate-on-view,
.cta-bg-orb-3.animate-on-view {
    animation-play-state: running;
}

/* CTA Card Animation */
@keyframes ctaCardReveal {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .cta-card {
        opacity: 0;
        animation: ctaCardReveal 1s ease-out forwards;
        animation-delay: 0.2s;
        animation-play-state: paused;
    }
    
    .cta-badge {
        opacity: 0;
        animation: fadeIn 0.6s ease-out forwards;
        animation-delay: 0.4s;
        animation-play-state: paused;
    }
    
    .cta-headline {
        opacity: 0;
        animation: fadeInUp 0.8s ease-out forwards;
        animation-delay: 0.6s;
        animation-play-state: paused;
    }
    
    .cta-subheadline {
        opacity: 0;
        animation: fadeInUp 0.8s ease-out forwards;
        animation-delay: 0.8s;
        animation-play-state: paused;
    }
    
    .cta-button {
        opacity: 0;
        animation: scaleIn 0.8s ease-out forwards;
        animation-delay: 1s;
        animation-play-state: paused;
    }
    
    .cta-trust {
        opacity: 0;
        animation: fadeIn 0.8s ease-out forwards;
        animation-delay: 1.2s;
        animation-play-state: paused;
    }
    
    .cta-urgency {
        opacity: 0;
        animation: fadeInUp 0.8s ease-out forwards;
        animation-delay: 1.4s;
        animation-play-state: paused;
    }
    
    #cta-final.animate-on-view .cta-card,
    #cta-final.animate-on-view .cta-badge,
    #cta-final.animate-on-view .cta-headline,
    #cta-final.animate-on-view .cta-subheadline,
    #cta-final.animate-on-view .cta-button,
    #cta-final.animate-on-view .cta-trust,
    #cta-final.animate-on-view .cta-urgency {
        animation-play-state: running;
    }
}

/* ============================================
   SECTION 8 - FOOTER ANIMATIONS
   ============================================ */

/* Footer Orb Pulsing */
@keyframes footer-orb-pulse {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1.1);
    }
}

.footer-bg-orb {
    animation: footer-orb-pulse 6s ease-in-out infinite;
    animation-play-state: paused;
}

.footer-bg-orb.animate-on-view {
    animation-play-state: running;
}

@media (prefers-reduced-motion: no-preference) {
    .footer-content {
        opacity: 0;
        animation: fadeInUp 0.8s ease-out forwards;
        animation-delay: 0.2s;
        animation-play-state: paused;
    }
    
    #footer.animate-on-view .footer-content {
        animation-play-state: running;
    }
}

/* ============================================
   POWER-UP EFFECT - SECTION 2 CTA BUTTON
   ============================================ */

/* Quick energy flash - just 1 second */
@keyframes powerup-flash {
    0% {
        transform: scale(1);
        box-shadow: 
            0 0 0 0 rgba(0, 255, 162, 0),
            0 8px 32px -8px rgba(77, 124, 254, 0.4);
        filter: brightness(1);
    }
    40% {
        transform: scale(1.05);
        box-shadow: 
            0 0 0 8px rgba(0, 255, 162, 0.4),
            0 0 30px rgba(0, 255, 162, 0.8),
            0 0 50px rgba(77, 124, 254, 0.6);
        filter: brightness(1.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 
            0 0 0 0 rgba(0, 255, 162, 0),
            0 8px 32px -8px rgba(77, 124, 254, 0.4);
        filter: brightness(1);
    }
}

/* Quick border flash */
@keyframes powerup-ring {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.8;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.05);
    }
}

/* Apply power-up effect when class is added */
#make-the-switch-btn.powered-up {
    animation: powerup-flash 1s ease-out;
    position: relative;
    z-index: 100;
}

/* Quick border ring flash */
#make-the-switch-btn.powered-up::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(
        135deg,
        rgba(0, 255, 162, 0.6),
        rgba(77, 124, 254, 0.6)
    );
    border-radius: inherit;
    animation: powerup-ring 1s ease-out;
    pointer-events: none;
    z-index: -1;
}