/* ============================================= */
/* == FONT & GAYA DASAR ======================== */
/* ============================================= */

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* ============================================= */
/* == TEMA VILIA TEAM (Dark & Gold) ============ */
/* ============================================= */

/* -- Latar Belakang & Teks Utama -- */
.bg-body { background-color: #121212; }
.text-body { color: #E0E0E0; }
.bg-section-alt { background-color: #1E1E1E; }

/* -- Header & Navigasi -- */
.header-bg {
    background-color: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
}
.text-brand { color: #FFD700; }

.nav-container { position: relative; }
.text-nav { transition: color 0.3s ease; }
.text-nav:link, .text-nav:visited { color: #cccccc; }
.text-nav:hover { color: #FFD700; }

.mobile-menu-bg { background-color: #1E1E1E; }
.mobile-nav-link-hover:hover { background-color: #2a2a2a; }

.nav-link-active, .nav-link-active:visited { color: #FFD700; }

/* Posisi garis bawah yang presisi */
#nav-underline {
    position: absolute;
    bottom: -6px; 
    height: 2.5px;
    background-color: #FFD700;
    transition: left 0.3s cubic-bezier(0.65, 0.05, 0.36, 1), width 0.3s cubic-bezier(0.65, 0.05, 0.36, 1);
    border-radius: 2px;
}


/* -- Tombol (Buttons) -- */
.btn-primary {
    background-color: #FFD700;
    color: #121212;
    font-weight: 600;
}
.btn-primary:hover { background-color: #e6c300; }
.btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
    font-weight: 600;
}
.btn-secondary:hover {
    background-color: #FFD700;
    color: #121212;
}

/* -- Tipografi & Judul -- */
.text-heading { color: #ffffff; }
.text-secondary { color: #BDBDBD; }
.text-muted { color: #9E9E9E; }

/* -- Elemen Spesifik -- */
.hero-overlay { background: linear-gradient(to top, rgba(18,18,18,1) 5%, rgba(18,18,18,0.7) 50%, rgba(18,18,18,1) 100%); }
.card-bg {
    background-color: #1E1E1E;
    border: 1px solid #333333;
}
.service-icon-bg { background-color: rgba(255, 215, 0, 0.1); }
.event-link { color: #FFD700; }
.event-link:hover { color: #e6c300; }

/* -- Form Kontak -- */
.form-input {
    background-color: #2a2a2a;
    border: 1px solid #444444;
    color: #E0E0E0;
}
.form-input::placeholder { color: #757575; }
.form-input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.5);
}
.form-label { color: #BDBDBD; }

/* -- Footer -- */
.footer-bg {
    background-color: #1E1E1E;
    border-top: 1px solid #333333;
}
.footer-text { color: #9E9E9E; }
.footer-title { color: #ffffff; }
.social-icon { color: #BDBDBD; }
.social-icon:hover { color: #FFD700; }
.heart-icon { color: #FFD700; }

/* ============================================= */
/* == GAYA UNTUK GALERI (MASONRY) ============== */
/* ============================================= */
.grid-item {
    margin-bottom: 1rem; /* Spasi antar item */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative; /* Untuk video overlay */
}

.grid-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0.5rem; /* Menyesuaikan dengan border-radius gambar */
}

.grid-item:hover .video-overlay {
    opacity: 1;
}

/* Atur lebar kolom untuk Masonry */
.grid-sizer,
.grid-item {
    width: 100%;
}

@media (min-width: 640px) { /* sm */
    .grid-sizer,
    .grid-item { width: 48%; }
}
@media (min-width: 1024px) { /* lg */
    .grid-sizer,
    .grid-item { width: 32%; }
}
@media (min-width: 1280px) { /* xl */
    .grid-sizer,
    .grid-item { width: 24%; }
}

/* ============================================= */
/* == GAYA UNTUK LIGHTBOX BARU ================= */
/* ============================================= */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#lightbox-content-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    height: 90%;
}

#lightbox-content-wrapper img,
#lightbox-content-wrapper video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 1002;
}

.lightbox-close:hover {
    color: #FFD700;
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.3);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 1001;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-nav:hover {
    background-color: rgba(255, 215, 0, 0.8);
    color: #121212;
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

