/* TIANGJAUH/css/style.css */

/* --- VARIABEL & RESET --- */
:root { 
    --bg-color: #121212; 
    --card-bg: #1e1e1e; 
    --text-main: #e0e0e0; 
    --text-muted: #aaa; 
    --accent: #38ef7d; 
    --border: #333; 
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body { 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    line-height: 1.6; 
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* --- NAVIGATION --- */
nav { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 15px 5%; background-color: rgba(18, 18, 18, 0.95); 
    position: sticky; top: 0; z-index: 1000; 
    border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); 
}

.nav-logo-img { height: 45px; width: auto; transition: 0.3s; }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-weight: 500; color: var(--text-muted); font-size: 0.95rem; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a.active::after { 
    content: ''; position: absolute; width: 100%; height: 2px; 
    bottom: -4px; left: 0; background-color: var(--accent); 
}

.btn-dashboard { 
    padding: 8px 20px; border: 1px solid var(--border); 
    border-radius: 12px; font-size: 0.85rem; font-weight: 600; 
    color: var(--text-main); background: var(--card-bg); 
}
.btn-dashboard:hover { border-color: var(--accent); color: var(--accent); }

/* MOBILE MENU */
.menu-toggle { display: none; font-size: 1.8rem; color: var(--text-main); cursor: pointer; }
.mobile-dash-link { display: none; }

@media (max-width: 768px) {
    .btn-dashboard { display: none; }
    .menu-toggle { display: block; }
    
    .nav-links { 
        position: absolute; top: 100%; left: 0; width: 100%; 
        background-color: rgba(18, 18, 18, 0.98); 
        flex-direction: column; padding: 20px 0; gap: 20px; 
        border-bottom: 1px solid var(--border); display: none; 
        animation: slideDown 0.3s ease;
    }
    .nav-links.active { display: flex; }
    
    .mobile-dash-link { 
        display: block; width: 80%; text-align: center; 
        padding: 10px; border: 1px solid var(--accent); 
        border-radius: 10px; color: var(--accent) !important; font-weight: 700; 
    }
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* --- HERO SECTION --- */
.hero { 
    min-height: 85vh; display: flex; flex-direction: column; 
    justify-content: center; align-items: center; text-align: center; 
    padding: 40px 20px; 
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(18,18,18,1)), 
                url('../images/background.jpg');
    background-size: cover; background-position: center; 
    background-attachment: fixed; position: relative;
}

.hero h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 15px; line-height: 1.2; text-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1rem; color: #ddd; max-width: 650px; margin-bottom: 35px; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }

@media(min-width: 768px) { .hero h1 { font-size: 3.5rem; } }

.btn-book { 
    background-color: var(--accent); color: #000; padding: 15px 40px; 
    font-size: 1rem; font-weight: 700; border-radius: 50px; 
    box-shadow: 0 0 20px rgba(56, 239, 125, 0.4); 
    display: inline-block; transition: 0.3s; 
}
.btn-book:hover { transform: scale(1.05) translateY(-3px); box-shadow: 0 0 30px rgba(56, 239, 125, 0.6); }

/* --- GALLERY SECTION --- */
.gallery-section, .gallery-page { padding: 80px 5%; }
.gallery-page { min-height: 80vh; }

.section-title, .page-title { text-align: center; margin-bottom: 50px; }
.section-title h2, .page-title h1 { font-size: 2rem; margin-bottom: 10px; color: #fff; }
.section-title p, .page-title p { color: var(--text-muted); }

/* RESPONSIVE GRID */
.gallery-grid { 
    display: grid; 
    /* Grid otomatis menyesuaikan ukuran layar, min 160px agar bagus di HP */
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); 
    gap: 15px; 
}
@media(min-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
}

.gallery-item { 
    position: relative; overflow: hidden; border-radius: 16px; 
    aspect-ratio: 4/3; background-color: var(--card-bg); 
    cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
}
.gallery-item img { 
    width: 100%; height: 100%; object-fit: cover; 
    transition: transform 0.5s ease; opacity: 0.9; 
}
.gallery-item:hover img { transform: scale(1.1); opacity: 1; }

.overlay { 
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px; 
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); 
    opacity: 0; transition: 0.3s; 
}
.gallery-item:hover .overlay { opacity: 1; }
.overlay h4 { color: var(--accent); margin-bottom: 5px; font-size: 0.9rem; }

/* --- ABOUT SECTION --- */
.about-section { padding: 60px 20px; max-width: 1000px; margin: 0 auto; }
.about-card { 
    background: var(--card-bg); border-radius: 20px; overflow: hidden; 
    display: flex; flex-direction: column; border: 1px solid var(--border); 
}
@media(min-width:768px){ .about-card { flex-direction: row; } }

.about-img { 
    flex: 1; min-height: 300px; 
    background-size: cover; background-position: center; 
    background-image: url('../images/tentang.jpg'); 
}
.about-content { 
    flex: 1; padding: 40px; display: flex; 
    flex-direction: column; justify-content: center; 
}
.about-content h2 { font-size: 2rem; margin-bottom: 15px; color: var(--accent); }
.about-content p { color: var(--text-muted); margin-bottom: 20px; font-size: 0.95rem; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.stat-item h3 { font-size: 1.5rem; color: #fff; }
.stat-item p { font-size: 0.8rem; color: var(--text-muted); }

/* --- FOOTER --- */
footer { 
    text-align: center; padding: 50px 20px; 
    border-top: 1px solid var(--border); 
    color: var(--text-muted); font-size: 0.85rem; 
    background: var(--card-bg); margin-top: 50px;
}

.social-container { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; }
.social-btn { 
    display: flex; justify-content: center; align-items: center; 
    width: 50px; height: 50px; border-radius: 50%; 
    background: rgba(255, 255, 255, 0.05); color: var(--text-main); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    font-size: 1.5rem; transition: 0.3s; 
}
.social-btn:hover { 
    background: var(--accent); color: #000; 
    transform: translateY(-5px); 
    box-shadow: 0 0 20px rgba(56, 239, 125, 0.4); border-color: var(--accent); 
}

/* ... Kode CSS sebelumnya biarkan saja ... */

/* --- MODAL LIGHTBOX (PREVIEW GAMBAR) --- */
.modal {
    display: none; /* Sembunyi default */
    position: fixed; 
    z-index: 2000; /* Di atas navbar */
    padding-top: 50px; 
    left: 0; top: 0; 
    width: 100%; height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); /* Latar hitam transparan */
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform:scale(0.8); opacity:0} 
    to {transform:scale(1); opacity:1}
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    line-height: 0;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
}

/* Responsif untuk HP */
@media only screen and (max-width: 700px){
    .modal-content { width: 95%; }
    .close-modal { top: 15px; right: 15px; font-size: 30px; width: 40px; height: 40px;}
}