/* Elementor Animation Base Styles */

/* Background Video Styles */
.elementor-background-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.elementor-background-video-hosted {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

.elementor-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Ensure section content is above video */
.elementor-background-video-container + .elementor-background-overlay + .elementor-container,
.elementor-section > .elementor-container {
    position: relative;
    z-index: 2;
}

/* Lightbox Styles */
.elementor-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.elementor-lightbox.elementor-lightbox-open {
    opacity: 1;
    visibility: visible;
}

.elementor-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.elementor-lightbox-media {
    max-width: 100%;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elementor-lightbox-media img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.elementor-lightbox-media iframe {
    width: 80vw;
    height: 45vw;
    max-height: 80vh;
}

.elementor-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    z-index: 10;
}

.elementor-lightbox-close:hover {
    opacity: 1;
}

.elementor-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 30px;
    padding: 20px 15px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s, background 0.2s;
}

.elementor-lightbox-nav:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.elementor-lightbox-prev {
    left: -60px;
}

.elementor-lightbox-next {
    right: -60px;
}

.elementor-lightbox-title {
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 14px;
}

/* Swiper Carousel Styles */
.elementor-swiper {
    width: 100%;
    overflow: hidden;
}

.elementor-main-swiper {
    width: 100%;
}

.elementor-carousel-image {
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-size: cover;
    background-position: center;
    position: relative;
}

.elementor-custom-embed-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.elementor-custom-embed-play:hover {
    background: rgba(0, 0, 0, 0.8);
}

.elementor-custom-embed-play i {
    color: #fff;
    font-size: 24px;
    margin-left: 4px;
}

/* Hide elements before animation */
.elementor-invisible {
    visibility: hidden;
}

/* Base animated class */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
    visibility: visible !important;
}

.animated-slow {
    animation-duration: 1.5s;
}

.animated-fast {
    animation-duration: 0.5s;
}

/* Fade animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.fadeIn { animation-name: fadeIn; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
.fadeInUp { animation-name: fadeInUp; }

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
.fadeInDown { animation-name: fadeInDown; }

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-30px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
.fadeInLeft { animation-name: fadeInLeft; }

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(30px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
.fadeInRight { animation-name: fadeInRight; }

/* Slide animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
        visibility: visible;
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
.slideInUp { animation-name: slideInUp; }

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
        visibility: visible;
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
.slideInDown { animation-name: slideInDown; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translate3d(-100%, 0, 0);
        visibility: visible;
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
.slideInLeft { animation-name: slideInLeft; }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translate3d(100%, 0, 0);
        visibility: visible;
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
.slideInRight { animation-name: slideInRight; }

/* Zoom animations */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    50% {
        opacity: 1;
    }
    to {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}
.zoomIn { animation-name: zoomIn; }

@keyframes zoomInUp {
    from {
        opacity: 0;
        transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0);
    }
    to {
        opacity: 1;
        transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
    }
}
.zoomInUp { animation-name: zoomInUp; }

@keyframes zoomInDown {
    from {
        opacity: 0;
        transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0);
    }
    to {
        opacity: 1;
        transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
    }
}
.zoomInDown { animation-name: zoomInDown; }

/* Bounce animations */
@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);
    }
}
.bounceIn { animation-name: bounceIn; }

/* Rotate animations */
@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate3d(0, 0, 1, -200deg);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
.rotateIn { animation-name: rotateIn; }

/* Flip animations */
@keyframes flipInX {
    from {
        opacity: 0;
        transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    }
    40% {
        transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    }
    60% {
        opacity: 1;
        transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    }
    80% {
        transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
    }
    to {
        opacity: 1;
        transform: perspective(400px);
    }
}
.flipInX { animation-name: flipInX; backface-visibility: visible !important; }

@keyframes flipInY {
    from {
        opacity: 0;
        transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
    }
    40% {
        transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
    }
    60% {
        opacity: 1;
        transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
    }
    80% {
        transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
    }
    to {
        opacity: 1;
        transform: perspective(400px);
    }
}
.flipInY { animation-name: flipInY; backface-visibility: visible !important; }

/* Light speed */
@keyframes lightSpeedInRight {
    from {
        opacity: 0;
        transform: translate3d(100%, 0, 0) skewX(-30deg);
    }
    60% {
        opacity: 1;
        transform: skewX(20deg);
    }
    80% {
        transform: skewX(-5deg);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
.lightSpeedInRight { animation-name: lightSpeedInRight; }

@keyframes lightSpeedInLeft {
    from {
        opacity: 0;
        transform: translate3d(-100%, 0, 0) skewX(30deg);
    }
    60% {
        opacity: 1;
        transform: skewX(-20deg);
    }
    80% {
        transform: skewX(5deg);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
.lightSpeedInLeft { animation-name: lightSpeedInLeft; }

/* Pulse */
@keyframes pulse {
    from { transform: scale3d(1, 1, 1); }
    50% { transform: scale3d(1.05, 1.05, 1.05); }
    to { transform: scale3d(1, 1, 1); }
}
.pulse { animation-name: pulse; }

/* Grow animation */
@keyframes grow {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.grow { animation-name: grow; }

/* Shrink animation */
@keyframes shrink {
    from {
        opacity: 0;
        transform: scale(1.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.shrink { animation-name: shrink; }

/* Drop animation */
@keyframes drop {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.drop { animation-name: drop; }
