html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

/* Mencegah scroll horizontal */
body {
    overflow-x: hidden;
    width: 100%;
    min-width: 320px;
}

/* Memotong latar belakang dekoratif tanpa memblokir scroll halaman */
.section-bg-clip {
    overflow: hidden;
}

.glass-header {
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(5, 150, 105, 0.2);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sembunyikan scrollbar untuk carousel tetapi tetap berfungsi */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Jeda animasi saat di-hover */
.group-hover-pause:hover .animate-scroll-left {
    animation-play-state: paused;
}

/* Gaya Brosur Swiper Carousel */
.brosurSwiper {
    width: 100%;
    padding-top: 30px;
    padding-bottom: 50px;
}

.brosurSwiper .swiper-slide {
    background-position: center;
    background-size: cover;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transition: filter 0.5s ease, opacity 0.5s ease;
    width: auto;
    height: auto;
}

/* Mengaburkan slide yang tidak aktif */
.brosurSwiper .swiper-slide:not(.swiper-slide-active) {
    filter: blur(5px) brightness(0.6);
    opacity: 1;
    cursor: pointer;
}

.brosurSwiper .swiper-slide-active {
    filter: blur(0);
    opacity: 1;
}

/* Efek zoom pada gambar aktif */
.brosurSwiper .swiper-slide-active img {
    transition: transform 0.4s ease;
    cursor: zoom-in;
}

.brosurSwiper .swiper-slide-active:hover img {
    transform: scale(1.05);
}

/* Warna kustom pagination */
.swiper-pagination-bullet {
    background: #10b981 !important;
}

.swiper-pagination-bullet-active {
    background: #059669 !important;
}

/* Animasi Cahaya Bulan */
@keyframes moon-glow-breathe {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

.moon-glow-smooth {
    animation: moon-glow-breathe 5s ease-in-out infinite;
    transform-origin: 40px 40px;
}

/* Gaya spesifik Lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.lightbox-modal.show {
    opacity: 1;
}

.lightbox-toolbar {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    z-index: 10000;
}

.lightbox-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.lightbox-btn:hover {
    background: rgba(5, 150, 105, 0.8);
    border-color: #10b981;
    transform: scale(1.05);
}

.lightbox-scroll-container {
    width: 100%;
    height: 100%;
    overflow: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y pinch-zoom;
}

.lightbox-scroll-container::before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.lightbox-content {
    display: inline-block;
    vertical-align: middle;
    margin: 20px auto;
    width: auto;
    max-width: 90vw;
    height: auto;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(5, 150, 105, 0.4);
    transition: max-width 0.3s ease, max-height 0.3s ease, transform 0.3s ease, width 0.3s ease;
    transform: scale(0.95);
    cursor: zoom-in;
    white-space: normal;
}

.lightbox-modal.show .lightbox-content {
    transform: scale(1);
}

/* Keadaan Diperbesar (Desktop/Bawaan) */
.lightbox-content.zoomed {
    max-width: none;
    max-height: none;
    /* Buat 150vw agar bisa discroll, namun batasi agar tidak terlalu besar di monitor besar */
    width: 150vw;
    max-width: 1200px;
    cursor: zoom-out;
}

/* Penyesuaian zoom responsif untuk seluler */
@media (max-width: 768px) {
    .lightbox-toolbar {
        top: 15px;
    }

    .lightbox-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .lightbox-content {
        max-width: 95vw;
        max-height: 80vh;
    }

    .lightbox-content.zoomed {
        width: 250vw;
        max-width: none;
    }
}
