/* ==== Base Styles ==== */
.carousel,
.carousel-item,
.carousel-item img {
    height: 100vh;
    width: 100%;
    object-fit: cover;
}

/* ==== Center Captions Vertically ==== */
.carousel-caption {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
    width: 100%;
    padding: 0 1rem;
}

.carousel-item.active .carousel-caption {
    opacity: 1;
    transform: translate(-50%, -50%);
    animation: fadeSlideIn 1.2s ease both;
}

.carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(0, 0, 0, 0.3); */
    /* adjust opacity here */
    z-index: 1;
}

/* Make sure captions stay above the overlay */
.carousel-caption {
    position: absolute;
    z-index: 2;
}

/* Heading and description */
.carousel-caption h1 {
    font-size: 3.8rem;
    letter-spacing: 1px;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.carousel-caption p {
    font-size: 1.8rem;
    margin-top: 0.5rem;
}

/* Fade + slide animation */
@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ==== Responsive Font Adjustments ==== */

/* 🟢 Large Tablets & Laptops */
@media (max-width: 1200px) {
    .carousel-caption h1 {
        font-size: 3.5rem;
    }

    .carousel-caption p {
        font-size: 1.5rem;
    }
}

/* 🟡 Tablets */
@media (max-width: 992px) {
    .carousel-caption h1 {
        font-size: 3rem;
    }

    .carousel-caption p {
        font-size: 1.3rem;
    }
}

/* 🔵 Mobile Landscape / Large Phones */
@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .carousel-caption p {
        font-size: 1.1rem;
    }
}

/* 🔴 Small Phones */
@media (max-width: 576px) {
    .carousel-caption {
        top: 80%;
        transform: translate(-50%, -50%);
        padding: 0 1rem;
    }

    .carousel-caption h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .carousel-caption p {
        font-size: 1rem;
    }
}

/* ==== Controls ==== */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    /* background: rgba(0, 0, 0, 0.4); */
}

.carousel-control-prev {
    left: 35px;
}

.carousel-control-next {
    right: 35px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    /* background: rgba(0, 0, 0, 0.7); */
    transform: translateY(-50%) scale(1.05);
}

/* Custom arrow image */
.carousel-arrow {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.carousel-arrow:hover {
    transform: scale(1.1);
}

/* ==== Indicators ==== */
.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: #967a50;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(215, 245, 238, 0.6);
}