/* ===================================
   1. PENGATURAN UMUM & BODY
=================================== */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    width: 100%; /* Wajib 100%, JANGAN gunakan 100vw */
    overflow-x: hidden; 
}


/* ===================================
   2. NAVBAR
=================================== */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand .logo {
    max-height: 50px;
}


/* ===================================
   3. BANNER VIDEO & MOBILE BANNER
=================================== */
.video-banner-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #000; 
}

.video-banner-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.85;
}

.video-overlay-text {
    position: absolute;
    bottom: 8%;
    left: 5%;
    color: #ffffff;
    text-align: left;
    z-index: 2;
    max-width: 90%;
}

.video-overlay-text h1 {
    font-size: clamp(1.2rem, 4vw, 3rem); 
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.video-overlay-text p {
    font-size: clamp(0.9rem, 2vw, 1.5rem);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
    margin-bottom: 0;
}

.mobile-banner-img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.85;
    object-fit: cover;
}

@media (max-width: 767.98px) {
    .video-banner-wrapper img.mobile-banner-img {
        opacity: 1 !important; 
    }
}


/* ===================================
   4. CAROUSEL EVENT
=================================== */
.carousel-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center;
    background-color: #e9ecef;
    border-radius: 10px;
}


/* ===================================
   5. KARTU (CARD) & IKON
=================================== */
.custom-card {
    border: none !important;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
}

.custom-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90px;
    height: 90px;
    margin: 30px auto 10px auto;
    background: linear-gradient(135deg, #e0eafc, #cfdef3);
    border-radius: 50%;
    color: #0d6efd;
    font-size: 2.5rem;
    transition: all 0.3s ease;
}

.custom-card:hover .icon-wrapper {
    background: #0d6efd;
    color: #ffffff;
    transform: scale(1.1);
}

.custom-card .card-body {
    padding: 20px 30px 30px 30px;
    text-align: center;
}


/* ===================================
   6. EFEK HOVER KOTAK (BOX)
=================================== */
.hover-box {
    background-color: #ffffff;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-color: #e9ecef !important;
}

.hover-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #0d6efd !important;
}


/* ===================================
   7. GOOGLE MAPS RESPONSIF
=================================== */
.map-responsive {
    position: relative;
    overflow: hidden;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 10px;
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* ===================================
   8. ANIMASI SCROLL (REVEAL) 
=================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px); /* Kurangi jarak terbang agar ringan di HP */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Hindari pakai 'all' */
    will-change: opacity, transform; /* Ini kodenya agar prosesor HP merender mulus tanpa patah-patah! */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* ===================================
   9. GALLERY & MODAL POPUP
=================================== */
.object-fit-cover {
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.gallery-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    background-color: #f8f9fa;
}

.gallery-img:hover {
    transform: scale(1.05);
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content-img {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
    text-decoration: none;
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}


/* ===================================
   10. FOOTER
=================================== */
.footer {
    background-color: #f8f9fa;
}