/**
 * Stylesheet for BCM custom Front Page Hero Carousel
 */

.hero-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh;
    background-color: #0d1b2a;
    user-select: none;
}

.carousel-track-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    cursor: grab;
}

.carousel-track.grabbing {
    cursor: grabbing;
    transition: none !important; /* disable transition while dragging */
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    user-select: none;
    -webkit-user-drag: none;
}

/* Premium gradient overlay for absolute readability */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(10, 25, 47, 0.85) 0%,
        rgba(10, 25, 47, 0.55) 45%,
        rgba(10, 25, 47, 0.15) 100%
    ),
    linear-gradient(
        to top,
        rgba(10, 25, 47, 0.6) 0%,
        rgba(10, 25, 47, 0) 35%
    );
    pointer-events: none;
}

/* Carousel content position */
.carousel-content {
    position: absolute;
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    max-width: 650px;
    z-index: 10;
    padding: 20px;
    pointer-events: auto;
    text-align: left;
}

/* Coordinated Staggered Entrance Animations */
.carousel-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 20px 0;
    color: #ffffff;
    word-break: keep-all;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    margin: 0 0 35px 0;
    color: rgba(255, 255, 255, 0.85);
    word-break: keep-all;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.15s, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.15s;
}

.carousel-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #fcd116; /* Warm Yellow */
    color: #111111 !important;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(252, 209, 22, 0.3);
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.3s, 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.3s, 
                background-color 0.25s ease, 
                box-shadow 0.25s ease,
                transform 0.25s ease;
}

.carousel-btn .btn-arrow {
    font-weight: bold;
    transition: transform 0.25s ease;
}

.carousel-btn:hover {
    background-color: #ffd84d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 209, 22, 0.5);
}

.carousel-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Trigger transitions when active class is applied to slide */
.carousel-slide.active .carousel-title,
.carousel-slide.active .carousel-subtitle,
.carousel-slide.active .carousel-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Elegant Chevrons matching mockup */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    z-index: 15;
    transition: all 0.3s ease;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.carousel-arrow .arrow-icon {
    width: 44px;
    height: 44px;
    display: block;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.3s ease;
}

.carousel-arrow:hover {
    color: #ffffff;
}

.carousel-arrow.prev:hover .arrow-icon {
    transform: scale(1.15) translateX(-4px);
}

.carousel-arrow.next:hover .arrow-icon {
    transform: scale(1.15) translateX(4px);
}

.carousel-arrow.prev {
    left: 40px;
}

.carousel-arrow.next {
    right: 40px;
}

/* Responsive bottom dot indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 15;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    padding: 0;
    outline: none;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.carousel-dot.active {
    background: #ffffff;
    transform: scale(1.25);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Responsive Scaling */
@media (max-width: 1024px) {
    .carousel-content {
        left: 6%;
        max-width: 550px;
    }
    .carousel-title {
        font-size: 2.6rem;
    }
    .carousel-arrow {
        font-size: 3rem;
    }
    .carousel-arrow.prev { left: 20px; }
    .carousel-arrow.next { right: 20px; }
}

@media (max-width: 768px) {
    .carousel-content {
        left: 5%;
        right: 5%;
        max-width: 100%;
        text-align: center;
    }
    .carousel-title {
        font-size: 2.1rem;
        margin-bottom: 12px;
    }
    .carousel-subtitle {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    .carousel-btn {
        padding: 10px 24px;
        font-size: 0.95rem;
    }
    .carousel-arrow {
        display: none; /* Hide arrows on small mobile to rely fully on touch swipes */
    }
}
