/* Hero Slider Image Effects and Animations */

/* Image Positioning Classes */
.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image.image-left {
    order: -1;
}

.hero-image.image-right {
    order: 1;
}

.hero-image.image-center {
    margin: 0 auto;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Animation Classes */
.hero-image-animated {
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-timing-function: ease-out;
}

/* Fade In Animation */
.fade-in {
    animation-name: heroFadeIn;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Slide In from Left Animation */
.slide-in-left {
    animation-name: heroSlideInLeft;
}

@keyframes heroSlideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Slide In from Right Animation */
.slide-in-right {
    animation-name: heroSlideInRight;
}

@keyframes heroSlideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Zoom In Animation */
.zoom-in {
    animation-name: heroZoomIn;
}

@keyframes heroZoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Float Animation (Continuous) */
.float {
    animation-name: heroFloat;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .hero-image.image-left,
    .hero-image.image-right {
        order: 0;
        margin: 2rem auto;
    }

    .hero-image img {
        max-width: 80%;
    }
}

/* Gradient Background Support for overlays */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Ensure gradient rendering for radial gradients */
.hero-slide {
    position: relative;
    overflow: hidden;
}

/* Support for combined gradient + background image */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}