/* ============================================
   CAROUSEL STYLES (HANYA UNTUK CAROUSEL)
   File: assets/css/carousel.css
   ============================================ */

/* Hero Carousel Section */
.hero-carousel-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

/* Carousel Container */
#heroCarousel {
    position: relative;
    width: 100%;
}

/* Carousel Inner */
.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Carousel Item */
.carousel-item {
    position: relative;
    width: 100%;
    min-height: 100vh;
    transition: transform 0.6s ease-in-out;
}

/* Carousel Background Images */
.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.carousel-gradient-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.7) 30%,
        rgba(255, 255, 255, 0.3) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.carousel-gradient-top-bottom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.8) 0%,    /* Ubah dari #ffffff */
        rgba(255, 255, 255, 0.3) 15%,   /* Kurangi dari 0.6 ke 0.3 */
        rgba(255, 255, 255, 0) 30%,     /* Lebih cepat transparan (dari 40% ke 30%) */
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0.3) 85%,   /* Kurangi dari 0.6 ke 0.3 */
        rgba(255, 255, 255, 0.8) 100%   /* Ubah dari #ffffff */
    );
    z-index: 2;
    pointer-events: none;
}

.carousel-gradient-navbar {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
}

/* Overlay */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

/* Carousel Caption */
.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    text-align: center;
    z-index: 2;
    padding: 20px;
}

/* Subtitle */
.carousel-subtitle {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

/* Title */
.carousel-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Description */
.carousel-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* Buttons */
.carousel-buttons {
    animation: fadeInUp 0.8s ease 0.6s both;
}

.carousel-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 5px;
}

.carousel-buttons .btn-primary {
    background: #3b82f6;
    border: none;
}

.carousel-buttons .btn-primary:hover {
    background: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.carousel-buttons .btn-outline-light {
    border: 2px solid white;
    background: transparent;
}

.carousel-buttons .btn-outline-light:hover {
    background: white;
    color: #1e293b;
    transform: translateY(-3px);
}

/* Indicators */
.carousel-indicators {
    bottom: 30px;
    z-index: 3;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: white;
    opacity: 0.5;
    transition: all 0.3s;
}

.carousel-indicators button.active {
    opacity: 1;
    background-color: #3b82f6;
    transform: scale(1.2);
}

/* Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s;
    z-index: 3;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

#heroCarousel:hover .carousel-control-prev,
#heroCarousel:hover .carousel-control-next {
    opacity: 1;
}

/* Desktop & Mobile Switch */
.desktop-bg {
    display: block;
}

.mobile-bg {
    display: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE CAROUSEL ===== */
@media (max-width: 992px) {
    .carousel-title {
        font-size: 2.5rem;
    }
    
    .carousel-description {
        font-size: 1rem;
    }
    
    .carousel-buttons .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        min-height: 100vh;
    }
    
    .carousel-title {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }
    
    .carousel-description {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .carousel-subtitle {
        font-size: 0.7rem;
        padding: 4px 15px;
        margin-bottom: 15px;
    }
    
    .carousel-buttons .btn {
        padding: 8px 18px;
        font-size: 0.8rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-caption {
        width: 90%;
        padding: 15px;
    }
    
    .desktop-bg {
        display: none;
    }
    
    .mobile-bg {
        display: block;
    }
}

@media (max-width: 576px) {
    .carousel-title {
        font-size: 1.35rem;
        margin-bottom: 10px;
    }
    
    .carousel-description {
        font-size: 0.75rem;
        margin-bottom: 15px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .carousel-subtitle {
        font-size: 0.6rem;
        padding: 3px 12px;
        margin-bottom: 10px;
    }
    
    .carousel-buttons .btn {
        padding: 6px 14px;
        font-size: 0.7rem;
    }
    
    .carousel-indicators {
        bottom: 15px;
    }
    
    .carousel-indicators button {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 375px) {
    .carousel-title {
        font-size: 1.1rem;
    }
    
    .carousel-description {
        display: none;
    }
    
    .carousel-buttons .btn {
        padding: 5px 12px;
        font-size: 0.65rem;
    }
}