/* Override Elementor's invisible class to make elements visible by default */
.elementor-invisible {
    visibility: visible !important;
}

/* Define animation classes */
.elementor-element[data-settings*="bounceIn"] {
    animation: bounceIn 1s both;
}

.elementor-element[data-settings*="fadeInUp"] {
    animation: fadeInUp 1s both;
}

.elementor-element[data-settings*="fadeIn"] {
    animation: fadeIn 1s both;
}

.elementor-element[data-settings*="bounce"] {
    animation: bounce 1s both;
}

/* Define animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes bounceIn {
    from, 20%, 40%, 60%, 80%, to {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    0% {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    40% {
        transform: scale3d(0.9, 0.9, 0.9);
    }
    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        transform: scale3d(0.97, 0.97, 0.97);
    }
    to {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

@keyframes bounce {
    from, 20%, 53%, 80%, to {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -30px, 0);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

/* Add animation delay for staggered effect */
.elementor-element:nth-child(1) { animation-delay: 0.1s; }
.elementor-element:nth-child(2) { animation-delay: 0.2s; }
.elementor-element:nth-child(3) { animation-delay: 0.3s; }
.elementor-element:nth-child(4) { animation-delay: 0.4s; }
.elementor-element:nth-child(5) { animation-delay: 0.5s; }