/* =========================================
   1. PENGATURAN UMUM & TIPOGRAFI
   ========================================= */
html {
    scroll-behavior: smooth; /* Efek gulir mulus untuk seluruh halaman */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    margin: 0;
    padding: 0;
}


/* =========================================
   2. HEADER VIDEO FULL SCREEN
   ========================================= */
.video-header {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-header video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.header-content {
    z-index: 3;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}


/* =========================================
   3. LAYOUT DINAMIS & EFEK HOVER GALERI
   ========================================= */
.gallery-wrapper {
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.4s ease-in-out;
    cursor: pointer;
    position: relative;
}

.gallery-wrapper::after {
    content: "\F612"; /* Ikon dari Bootstrap Icons (Zoom) */
    font-family: "bootstrap-icons";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 3rem;
    opacity: 0;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    pointer-events: none;
}

.gallery-wrapper:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}

.gallery-wrapper:hover::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.gallery-wrapper:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    z-index: 2;
}

.gallery-img {
    object-fit: cover;
    aspect-ratio: 1 / 1;
    width: 100%;
    transition: transform 0.6s ease;
}

.gallery-wrapper:hover .gallery-img {
    transform: scale(1.08);
}


/* =========================================
   4. FORM TANPA BOX (FLUSHED STYLE)
   ========================================= */
.form-control-flushed {
    background-color: transparent !important;
    border: none;
    border-bottom: 2px solid #444;
    border-radius: 0;
    color: #fff !important;
    padding: 10px 0;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

.input-group-text-flushed {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid #444;
    border-radius: 0;
    padding-left: 0;
    padding-right: 15px;
    transition: all 0.3s ease;
}

.input-group:focus-within .form-control-flushed,
.input-group:focus-within .input-group-text-flushed {
    border-bottom-color: #198754;
}

.input-group:focus-within .input-group-text-flushed i {
    color: #198754 !important;
    transform: scale(1.1);
    transition: transform 0.3s ease;
}


/* =========================================
   5. TOMBOL BACK TO TOP
   ========================================= */
#btnBackToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none; /* Disembunyikan secara default oleh JS */
    z-index: 999; /* Agar selalu tampil di atas konten lainnya */
    width: 50px;
    height: 50px;
    opacity: 0.8;
    transition: all 0.3s ease-in-out;
}

#btnBackToTop:hover {
    opacity: 1;
    transform: translateY(-3px); /* Efek melayang sedikit saat di-hover */
}