:root {
    --carousel-height: 100vh;
    --overlay-color: rgba(0, 0, 0, 0.4);
}
/* --- HERO SECTION LAYOUT --- */
.hero-section {
    position: relative;
    height: var(--carousel-height);
    width: 100%;
    overflow: hidden;
    background-color: #000;
}
/* --- CAROUSEL FADE EFFECT --- */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}
.carousel-fade .carousel-item.active {
    opacity: 1;
    z-index: 2;
}
/* --- KEN BURNS (SCALE & PAN) EFFECT --- */
.carousel-item .img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Start state: slightly zoomed out */
    transform: scale(1.1); 
    transition: transform 8s ease;
}
/* Active state: Zoom in to 1.2x */
.carousel-item.active img {
    transform: scale(1.25);
}
/* --- VIDEO BACKGROUND STYLING --- */
.video-background {
    position: relative;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
}
/* --- OVERLAY & CONTENT --- */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    z-index: 1;
}

/* Trigger animations when slide is active */
.carousel-item.active .carousel-caption h2,
.carousel-item.active .carousel-caption p,
.carousel-item.active .carousel-caption .btn-hero {
    opacity: 1;
    transform: translateY(0);
}
/* --- CONTROLS --- */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    z-index: 10;
}

.control-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.carousel-control-prev:hover .control-icon-wrapper,
.carousel-control-next:hover .control-icon-wrapper {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}
/* --- INDICATORS --- */
.carousel-indicators {
    z-index: 10;
    margin-bottom: 2rem;
}
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
    background-color: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    opacity: 1;
    transition: all 0.3s ease;
}
.carousel-indicators .active {
    background-color: #fff;
    border-color: #fff;
    transform: scale(1.2);
}
/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .carousel-caption h2 { font-size: 2rem; }
    .carousel-caption p { font-size: 1rem; }
    .carousel-caption { bottom: 15%; text-align: center; }
}