/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-down {
    animation: fadeInDown 0.8s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.scale-in {
    animation: scaleIn 0.6s ease-out;
}

/* Hero Animations */
.hero-text {
    animation: fadeInLeft 1s ease-out;
}

.hero-image {
    animation: fadeInRight 1s ease-out;
}

.hero-stats .stat-item {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.hero-stats .stat-item:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-stats .stat-item:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-stats .stat-item:nth-child(3) {
    animation-delay: 0.6s;
}

/* Step Cards Animations */
.step-card {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.step-card.step-1 {
    animation-delay: 0.1s;
}

.step-card.step-2 {
    animation-delay: 0.2s;
}

.step-card.step-3 {
    animation-delay: 0.3s;
}

.step-card.step-4 {
    animation-delay: 0.4s;
}

/* Feature Cards Animations */
.feature-card {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.feature-card.feature-1 {
    animation-delay: 0.1s;
}

.feature-card.feature-2 {
    animation-delay: 0.2s;
}

.feature-card.feature-3 {
    animation-delay: 0.3s;
}

.feature-card.feature-4 {
    animation-delay: 0.4s;
}

.feature-card.feature-5 {
    animation-delay: 0.5s;
}

.feature-card.feature-6 {
    animation-delay: 0.6s;
}

/* Mockup Animations */
.mockup-item {
    animation: scaleIn 0.8s ease-out;
    animation-fill-mode: both;
}

.mockup-item.mockup-1 {
    animation-delay: 0.1s;
}

.mockup-item.mockup-2 {
    animation-delay: 0.2s;
}

.mockup-item.mockup-3 {
    animation-delay: 0.3s;
}

/* Testimonial Animations */
.testimonial-card {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.testimonial-card.testimonial-1 {
    animation-delay: 0.1s;
}

.testimonial-card.testimonial-2 {
    animation-delay: 0.2s;
}

.testimonial-card.testimonial-3 {
    animation-delay: 0.3s;
}

/* Progress Ring Animation */
.progress-ring-progress {
    animation: progressFill 2s ease-out;
}

@keyframes progressFill {
    from {
        stroke-dashoffset: 283;
    }
    to {
        stroke-dashoffset: 100;
    }
}

/* Hover Effects */
.step-card,
.feature-card,
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    background: linear-gradient(
        90deg,
        var(--card-bg) 0%,
        var(--secondary-blue) 50%,
        var(--card-bg) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}
