/* Smooth Scroll Animation Enhancements */

/* Better easing curves for smoother animations */
:root {
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Remove default link underlines */
a {
    text-decoration: none;
}

/* Enhanced transition timings */
.feature-card,
.step,
.pricing-card {
    will-change: transform, opacity;
    transition: all 0.8s var(--ease-out-expo);
}

/* Initial hidden state for scroll animations */
.feature-card {
    opacity: 0;
    transform: translateY(60px) scale(0.9);
}

.feature-card.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.step {
    opacity: 0;
    transform: translateY(60px) scale(0.9);
}

.step.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.pricing-card {
    opacity: 0;
    transform: translateY(60px) scale(0.9);
}

.pricing-card.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Smoother hover effects */
.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px var(--shadow-color);
    transition: all 0.3s var(--ease-out-quart);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    /* Reduce animation distance on mobile */
    .feature-card,
    .step,
    .pricing-card {
        transform: translateY(30px) scale(0.95);
    }
    
    /* Faster animations on mobile for better performance */
    .feature-card,
    .step,
    .pricing-card {
        transition: all 0.5s var(--ease-out-expo);
    }
    
    /* Disable hover scale on mobile */
    .feature-card:hover {
        transform: translateY(-8px) scale(1);
    }
    
    /* Reduce motion for users who prefer it */
    @media (prefers-reduced-motion: reduce) {
        .feature-card,
        .step,
        .pricing-card {
            transition: opacity 0.3s ease;
            transform: none !important;
        }
    }
}

/* Staggered animation delays for sequential reveal */
.feature-card:nth-child(1) { transition-delay: 0s; }
.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.2s; }
.feature-card:nth-child(4) { transition-delay: 0.3s; }
.feature-card:nth-child(5) { transition-delay: 0.4s; }
.feature-card:nth-child(6) { transition-delay: 0.5s; }

.step:nth-child(1) { transition-delay: 0s; }
.step:nth-child(3) { transition-delay: 0.2s; }
.step:nth-child(5) { transition-delay: 0.4s; }
