/* ===================
   Animations
=================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Scrolling animations */
.animate {
    opacity: 0;
    transition: all 0.6s ease-out;
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.slide-up {
    animation: slideInUp 0.8s ease forwards;
}

.slide-left {
    animation: slideInLeft 0.8s ease forwards;
}

.slide-right {
    animation: slideInRight 0.8s ease forwards;
}

.scale-in {
    animation: scaleIn 0.8s ease forwards;
}

/* Delay classes */
.delay-200 {
    animation-delay: 0.2s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-600 {
    animation-delay: 0.6s;
}

.delay-800 {
    animation-delay: 0.8s;
}

/* Apply animations */
.hero {
    animation: fadeIn 1s ease;
}

.main-title {
    animation: slideInUp 1s ease 0.2s forwards;
    opacity: 0;
    animation-fill-mode: both;
}

.sub-title {
    animation: slideInUp 1s ease 0.4s forwards;
    opacity: 0;
    animation-fill-mode: both;
}

.hero-description {
    animation: slideInUp 1s ease 0.6s forwards;
    opacity: 0;
    animation-fill-mode: both;
}

.app-buttons {
    animation: slideInUp 1s ease 0.8s forwards;
    opacity: 0;
    animation-fill-mode: both;
}

.badge {
    animation: scaleIn 0.8s ease;
}

.phone-mockup {
    animation: float 6s ease-in-out infinite;
}

.problem-card:hover .icon-container,
.feature-card:hover .icon-container,
.summary-feature:hover .icon-container {
    animation: pulse 1s ease-in-out infinite;
}

/* Scroll-triggered animations */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-fade-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade-left.active {
    opacity: 1;
    transform: translateX(0);
}

.scroll-fade-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animations for card groups */
.problem-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.problem-card:nth-child(1) {
    transition-delay: 0.1s;
}

.problem-card:nth-child(2) {
    transition-delay: 0.2s;
}

.problem-card:nth-child(3) {
    transition-delay: 0.3s;
}

.problem-card:nth-child(4) {
    transition-delay: 0.4s;
}

.problem-card:nth-child(5) {
    transition-delay: 0.5s;
}

.problem-card.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for feature cards */
.feature-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card:nth-child(1) {
    transition-delay: 0.1s;
}

.feature-card:nth-child(2) {
    transition-delay: 0.2s;
}

.feature-card:nth-child(3) {
    transition-delay: 0.3s;
}

.feature-card:nth-child(4) {
    transition-delay: 0.4s;
}

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

/* Staggered animations for summary features */
.summary-feature {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.summary-feature:nth-child(1) {
    transition-delay: 0.1s;
}

.summary-feature:nth-child(2) {
    transition-delay: 0.2s;
}

.summary-feature:nth-child(3) {
    transition-delay: 0.3s;
}

.summary-feature:nth-child(4) {
    transition-delay: 0.4s;
}

.summary-feature.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animations for screenshots */
.app-screenshots-slider img,
.layout-screenshots-slider .screenshot-container,
.financial-features-slider .financial-feature {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.app-screenshots-slider img:nth-child(1),
.layout-screenshots-slider .screenshot-container:nth-child(1),
.financial-features-slider .financial-feature:nth-child(1) {
    transition-delay: 0.1s;
}

.app-screenshots-slider img:nth-child(2),
.layout-screenshots-slider .screenshot-container:nth-child(2),
.financial-features-slider .financial-feature:nth-child(2) {
    transition-delay: 0.2s;
}

.app-screenshots-slider img:nth-child(3),
.layout-screenshots-slider .screenshot-container:nth-child(3),
.financial-features-slider .financial-feature:nth-child(3) {
    transition-delay: 0.3s;
}

.app-screenshots-slider img:nth-child(4),
.layout-screenshots-slider .screenshot-container:nth-child(4),
.financial-features-slider .financial-feature:nth-child(4) {
    transition-delay: 0.4s;
}

.app-screenshots-slider img:nth-child(5),
.layout-screenshots-slider .screenshot-container:nth-child(5),
.financial-features-slider .financial-feature:nth-child(5) {
    transition-delay: 0.5s;
}

.app-screenshots-slider.active img,
.layout-screenshots-slider.active .screenshot-container,
.financial-features-slider.active .financial-feature {
    opacity: 1;
    transform: translateY(0);
} 