/* Define our animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Initial state - elements are hidden */
.fade-in {
    opacity: 0;
}

/* Animation classes that will be added by JavaScript */
.fade-in.visible {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in-simple.visible {
    animation: fadeIn 0.6s ease forwards;
}

/* Stagger delays for grid items */
.segments-grid .segment-item:nth-child(1).visible {
    animation-delay: 0.1s;
}

.segments-grid .segment-item:nth-child(2).visible {
    animation-delay: 0.2s;
}

.segments-grid .segment-item:nth-child(3).visible {
    animation-delay: 0.3s;
}

.segments-grid .segment-item:nth-child(4).visible {
    animation-delay: 0.4s;
}

.segments-grid .segment-item:nth-child(5).visible {
    animation-delay: 0.5s;
}

.segments-grid .segment-item:nth-child(6).visible {
    animation-delay: 0.6s;
}

.segments-grid .segment-item:nth-child(7).visible {
    animation-delay: 0.7s;
}

.products-grid .product-image:nth-child(1).visible {
    animation-delay: 0.1s;
}

.products-grid .product-image:nth-child(2).visible {
    animation-delay: 0.2s;
}

.products-grid .product-image:nth-child(3).visible {
    animation-delay: 0.3s;
}

.products-grid .product-image:nth-child(4).visible {
    animation-delay: 0.4s;
}

/* Stagger delays for text elements */
.cta-text p:nth-child(1).visible {
    animation-delay: 0.1s;
}

.cta-text p:nth-child(2).visible {
    animation-delay: 0.2s;
}

.cta-text p:nth-child(3).visible {
    animation-delay: 0.3s;
}

.form-group:nth-child(1).visible {
    animation-delay: 0.1s;
}

.form-group:nth-child(2).visible {
    animation-delay: 0.2s;
}

.form-group:nth-child(3).visible {
    animation-delay: 0.3s;
}

.form-group:nth-child(4).visible {
    animation-delay: 0.4s;
}

.form-group:nth-child(5).visible {
    animation-delay: 0.5s;
}

.form-group:nth-child(6).visible {
    animation-delay: 0.6s;
}