/* ============================================
   INDEX CAROUSEL STYLES
   Untuk halaman index dengan carousel seragam
============================================ */

/* Container Carousel */
.left-panel .carousel-container {
    background: #000;
    box-shadow: 0 5px 20px rgba(255,255,255,0.1);
    overflow: hidden;
    height: 100%;
    position: relative;
}

/* Desktop: rounded corners */
@media (min-width: 768px) {
    .left-panel .carousel-container {
        border-radius: 15px;
    }
}

/* Mobile: no rounded corners, full width */
@media (max-width: 767.98px) {
    .left-panel .carousel-container {
        border-radius: 0 !important;
        margin: 0;
        width: 100%;
    }
}

/* Carousel Fade Effect */
.left-panel .carousel-fade .carousel-inner {
    position: relative;
    height: 750px;
}

.left-panel .carousel-fade .carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.left-panel .carousel-fade .carousel-item.active {
    opacity: 1;
    z-index: 1;
}

/* Carousel Item */
.left-panel .carousel-item {
    position: relative;
    height: 600px;
    overflow: hidden;
}

/* PERUBAHAN: Background image dengan div.carousel-bg */
/* Background image dengan blur */
.left-panel .carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /*filter: blur(3px) brightness(0.7);*/
    z-index: 1;
}

/* Logo TIDAK blur */
.left-panel .carousel-logo {
    width: 400px !important;
    height: 400px !important;
    margin-bottom: 0.2rem;
    margin-top: -90px !important;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)) !important;
    animation: floatLogo 3s ease-in-out infinite;
    position: relative;
    z-index: 3;
}

@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Overlay untuk konten */
.left-panel .carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    z-index: 2;
}

/* Service Label */
.left-panel .service-label {
    font-size: 1.8rem;
    font-weight: 400;
    /*color: #ffffff;*/
    color: #ffc107;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    margin-top: -80px;
    position: relative;
    z-index: 3;
}

/* Tagline */
.left-panel .carousel-tagline {
    font-size: 2.2rem;
    font-weight: 800;
    /*color: #ffc107;*/
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    margin-bottom: 2rem;
    line-height: 1.3;
    max-width: 80%;
    /*animation: glowText 2s ease-in-out infinite alternate;*/
    position: relative;
    z-index: 3;
}

@keyframes glowText {
    from {
        text-shadow: 0 0 10px rgba(255, 193, 7, 0.5),
                     0 0 20px rgba(255, 193, 7, 0.3),
                     0 0 30px rgba(255, 193, 7, 0.2);
    }
    to {
        text-shadow: 0 0 15px rgba(255, 193, 7, 0.7),
                     0 0 25px rgba(255, 193, 7, 0.5),
                     0 0 35px rgba(255, 193, 7, 0.3);
    }
}

/* Social Media Icons Container */
.left-panel .social-icons-container {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    position: relative;
    z-index: 3;
}

/* Social Media Icons */
.left-panel .social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    position: relative;
    z-index: 3;
}

.left-panel .social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

/* Warna masing-masing icon */
.left-panel .social-icon.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.left-panel .social-icon.instagram {
    background: linear-gradient(135deg, #E4405F, #833AB4);
}

.left-panel .social-icon.tiktok {
    background: linear-gradient(135deg, #000000, #25F4EE);
}

.left-panel .social-icon.facebook {
    background: linear-gradient(135deg, #1877F2, #0A5BC4);
}

/* Carousel Controls - HIDE untuk otomatis slide */
.left-panel .carousel-control-prev,
.left-panel .carousel-control-next {
    display: none !important;
}

/* Carousel Indicators - HIDE */
.left-panel .carousel-indicators {
    display: none !important;
}

/* ===== MOBILE VIEW ===== */
@media (max-width: 767.98px) {
    .header {
        display: none !important;
    }
    
    .left-panel .carousel-fade .carousel-inner {
        height: 450px;
    }
    
    .left-panel .carousel-item {
        height: 450px;
    }
    
    /* Background blur untuk mobile */
    .left-panel .carousel-bg {
        /*filter: blur(2px) brightness(0.6);*/
    }
    
    /* LOGO */
    .left-panel .carousel-logo {
        width: 180px !important;
        height: 180px !important;
        margin-bottom: 0.3rem !important;
        margin-top: 10px !important;
    }
    
    /* SERVICE LABEL */
    .left-panel .service-label {
        font-size: 1.3rem;
        margin-top: -15px !important;
        color: #ffc107;
        margin-bottom: 0.8rem;
        letter-spacing: 0.5px;
        /*animation: glowText 2s ease-in-out infinite alternate;*/
    }
    
    /* TAGLINE */
    .left-panel .carousel-tagline {
        font-size: 1.4rem;
        font-weight: 700;
        max-width: 90%;
        margin-bottom: 0.8rem;
        line-height: 1.2;
        padding: 0 0.5rem;
    }
    
    /* SOCIAL ICONS */
    .left-panel .social-icons-container {
        display: flex;
        gap: 1rem;
        margin-top: 0.6rem;
        margin-bottom: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .left-panel .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    /* Overlay untuk mobile lebih gelap */
    .left-panel .carousel-overlay {
        background: rgba(0, 0, 0, 0.5);
        padding: 1rem;
        justify-content: space-between;
    }
}

/* Very small devices (iPhone SE, small Android) */
@media (max-width: 375px) {
    .left-panel .carousel-fade .carousel-inner {
        height: 480px;
    }
    
    .left-panel .carousel-item {
        height: 480px;
    }
    
    .left-panel .carousel-logo {
        width: 160px !important;
        height: 160px !important;
        margin-bottom: 0.2rem !important;
        margin-top: 15px !important;
    }
    
    .left-panel .service-label {
        font-size: 1.2rem;
        margin-top: -10px !important;
        margin-bottom: 0.6rem;
    }
    
    .left-panel .carousel-tagline {
        font-size: 1.3rem;
        line-height: 1.1;
        margin-bottom: 0.6rem;
        padding: 0 0.5rem;
    }
    
    .left-panel .social-icons-container {
        gap: 0.8rem;
        margin-top: 0.5rem;
        margin-bottom: 10px;
    }
    
    .left-panel .social-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
}

/* Landscape orientation untuk mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .left-panel .carousel-fade .carousel-inner {
        height: 300px;
    }
    
    .left-panel .carousel-item {
        height: 300px;
    }
    
    .left-panel .carousel-logo {
        width: 120px !important;
        height: 120px !important;
        margin-top: 5px !important;
    }
    
    .left-panel .service-label {
        font-size: 1rem;
        margin-top: -5px !important;
        margin-bottom: 0.4rem;
    }
    
    .left-panel .carousel-tagline {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .left-panel .social-icons-container {
        margin-top: 0.3rem;
        margin-bottom: 8px;
        gap: 0.6rem;
    }
}

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .left-panel .carousel-fade .carousel-inner {
        height: 500px;
    }
    
    .left-panel .carousel-item {
        height: 500px;
    }
    
    .left-panel .carousel-logo {
        width: 300px !important;
        height: 300px !important;
        margin-top: -50px !important;
    }
    
    .left-panel .service-label {
        margin-top: -50px;
        font-size: 1.6rem;
    }
    
    .left-panel .carousel-tagline {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
}

/* PERBAIKAN TAMBAHAN: Pastikan struktur z-index benar */
.left-panel .carousel-item {
    position: relative;
}

/* Semua konten di dalam overlay tidak terkena filter */
.left-panel .carousel-overlay > * {
    position: relative;
    z-index: 3;
}

/* Pastikan logo tidak menerima filter blur */
.left-panel .carousel-overlay img.carousel-logo {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)) !important;
    -webkit-filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)) !important;
}

/* Reset filter untuk semua elemen dalam overlay (safety measure) */
.left-panel .carousel-overlay * {
    filter: none !important;
    -webkit-filter: none !important;
}

/* SOLUSI FALLBACK: Jika background image gagal load */
.left-panel .carousel-bg:empty {
    background-color: #333;
}

/* Optimasi untuk performa */
.left-panel .carousel-bg {
    will-change: transform;
    backface-visibility: hidden;
}

/* Smooth transition untuk carousel */
.left-panel .carousel-fade .carousel-item {
    will-change: opacity;
}

/* ============================================
   ENHANCED CAROUSEL MORPHING EFFECTS
   Animasi smooth untuk semua transisi
============================================ */

/* TRANSITION UTAMA - PASTIKAN INI ADA */
.left-panel .carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.left-panel .carousel-fade .carousel-item.active {
    opacity: 1 !important;
    position: relative;
    z-index: 1;
}

/* Bootstrap carousel transition fix */
.left-panel .carousel-fade .carousel-item-next:not(.carousel-item-start),
.left-panel .carousel-fade .active.carousel-item-end {
    transform: translateX(0);
}

.left-panel .carousel-fade .carousel-item-prev:not(.carousel-item-end),
.left-panel .carousel-fade .active.carousel-item-start {
    transform: translateX(0);
}

/* MORPHING BACKGROUND EFFECT */
.left-panel .carousel-bg {
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: transform, filter, opacity;
}

.left-panel .carousel-item.active .carousel-bg {
    transform: scale(1.02);
    filter: brightness(1) blur(0px);
    opacity: 1 !important;
}

.left-panel .carousel-item:not(.active) .carousel-bg {
    transform: scale(1);
    filter: brightness(0.8) blur(2px);
    opacity: 0.8;
}

/* MORPHING INDICATORS */
.left-panel .morph-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex !important;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    margin: 0;
}

.left-panel .morph-indicators button {
    width: 40px;
    height: 6px;
    border: none;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 0 0 auto;
}

.left-panel .morph-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scaleY(1.2);
}

.left-panel .morph-indicators button.active {
    background-color: #ffc107 !important;
    width: 60px !important;
    transform: scaleY(1.5) !important;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.7);
}

/* SMOOTH CONTENT TRANSITION */
.left-panel .carousel-overlay {
    transition: opacity 0.8s ease 0.2s;
}

.left-panel .carousel-item:not(.active) .carousel-overlay {
    opacity: 0.5;
}

/* ANIMASI UNTUK SLIDE BERIKUTNYA */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutToLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

/* AKTIFKAN ANIMASI SAAT TRANSISI */
.left-panel .carousel-item.carousel-item-next {
    animation: slideInFromRight 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.left-panel .carousel-item.carousel-item-prev {
    animation: slideOutToLeft 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* LOADING PLACEHOLDER */
.left-panel .image-placeholder {
    transition: opacity 0.5s ease;
}

/* OVERLAY FIX UNTUK ANIMASI */
.left-panel .carousel-overlay > * {
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.left-panel .carousel-item:not(.active) .carousel-overlay > * {
    opacity: 0.7;
    transform: scale(0.98);
}

/* MOBILE OPTIMIZATION */
@media (max-width: 767.98px) {
    .left-panel .carousel-fade .carousel-item {
        transition: opacity 0.8s ease !important;
    }
    
    .left-panel .carousel-bg {
        transition: all 0.8s ease !important;
    }
    
    .left-panel .morph-indicators {
        bottom: 15px;
    }
    
    .left-panel .morph-indicators button {
        width: 30px;
        height: 4px;
    }
    
    .left-panel .morph-indicators button.active {
        width: 45px !important;
        height: 5px;
    }
}