﻿/* ===== CAROUSEL BASE ===== */
#heroCarousel {
    position: relative;
}

.carousel-item {
    height: 100vh; /* Full screen hero */
    overflow: hidden;
    position: relative;
}

    .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* ===== ZOOM EFFECT ===== */
.zoom-img {
    transform: scale(1);
    animation: zoomIn 6s ease forwards;
}

/* Ensure animation only runs for active slide */
.carousel-item:not(.active) .zoom-img {
    animation: none;
    transform: scale(1);
}

/* ===== ZOOM KEYFRAMES ===== */
@keyframes zoomIn {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.15);
    }
}

/* ===== SMOOTH SLIDE / FADE ===== */
.carousel-fade .carousel-item {
    transition: opacity 1s ease-in-out;
}

/* ===== PREVENT FLASH DURING TRANSITION ===== */
.carousel-item-next .zoom-img,
.carousel-item-prev .zoom-img {
    transform: scale(1);
}



/* ===== CAPTION STYLING ===== */
.carousel-caption {
    position: absolute;
    z-index: 2;
    bottom: 20%;
}

    .carousel-caption h2 {
        font-size: 48px;
        font-weight: 700;
    }

    .carousel-caption p {
        font-size: 18px;
    }

/* ===== MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {
    .carousel-item {
        height: 70vh;
    }

    .carousel-caption h2 {
        font-size: 28px;
    }
}
