/* --- Global & Font --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --color-orange: #f39c12;
    --color-blue: #3498db;
    --dark-grey: #2c3e50;
    --color-gold: #cda45e;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #f8f9fa;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    padding-top: 80px;
    background-color: #fff;
}

/* --- Latar Belakang Peta Universal --- */
.page-with-bg {
    position: relative;
    background-image: url('../images/legend.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.85);
    z-index: 1;
}

.page-with-bg .container, .page-with-bg .contact-container, .page-with-bg .image-page-container {
    position: relative;
    z-index: 2;
}

/* --- Header & Navbar --- */
.main-header { display: none;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar { 
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo img {
    height: 50px;
}

.nav-menu { 
    list-style: none;
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu a { 
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a:hover { 
    color: var(--color-gold);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-gold);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu i {
    font-size: 10px;
    margin-left: 5px;
}

.nav-toggle { /* Tombol Hamburger */
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* --- Dropdown Menu --- */
.has-dropdown { position: relative; }
.dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 240px;
    z-index: 1001;
    border: 1px solid #eee;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, top 0.3s ease;
}
.has-dropdown:hover .dropdown { display: block; opacity: 1; visibility: visible; top: calc(100% + 5px); }
.dropdown-item { padding: 10px 20px; text-align: center; border-bottom: 1px solid #f0f0f0; }
.dropdown-item:last-child { border-bottom: none; }
.item-title { display: block; font-weight: 600; font-size: 14px; color: #333; margin-bottom: 8px; }
.lang-options { display: flex; justify-content: center; gap: 10px; }
.lang-options a { padding: 6px 15px; font-size: 13px; color: #555; border: 1px solid #ddd; border-radius: 20px; transition: all 0.3s; }
.lang-options a:hover { background-color: var(--color-gold); color: white; border-color: var(--color-gold); }
.lang-options a::after { display: none; }

/* --- Hero Section --- */
.hero-section { height: 100vh; position: relative; display: flex; justify-content: center; align-items: center; text-align: center; color: white; overflow: hidden; margin-top: -80px; }
.hero-background-image { background: url('../images/damar-bg.jpg') no-repeat center center; background-size: cover; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; animation: zoomIn 20s infinite alternate; }
@keyframes zoomIn { from { transform: scale(1); } to { transform: scale(1.1); } }
.hero-overlay { background-color: rgba(0, 0, 0, 0.5); position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; }
.hero-background-text { position: absolute; font-size: 15vw; font-weight: 700; color: rgba(255, 255, 255, 0.08); z-index: 3; user-select: none; text-transform: uppercase; }
.hero-content { position: relative; z-index: 4; }
.hero-logo-symbol { width: 150px; margin-bottom: -40px; opacity: 0.8; }
.hero-content h1 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 4rem; margin: 0; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); letter-spacing: 2px; }
.hero-content .color-orange { color: #f39c12; }
.hero-content .color-blue { color: #3498db; }
.hero-content h1 span:nth-child(3) { color: #f39c12; }
.hero-content p { font-size: 1.2rem; margin-top: 10px; font-weight: 400; letter-spacing: 1px; }
.btn-maps { background-color: white; color: #333; padding: 14px 35px; text-decoration: none; font-weight: 600; border-radius: 50px; margin-top: 30px; display: inline-block; transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.btn-maps:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
.btn-maps i { margin-right: 10px; }

/* --- Halaman Gambar Universal --- */
.image-page-wrapper { min-height: calc(100vh - 80px); display: flex; align-items: center; justify-content: center; padding: 60px 0; }
.image-page-container { max-width: 650px; width: 90%; background-color: #fff; padding: 15px; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,0.3); }
.image-page-container img { width: 100%; display: block; border-radius: 5px; }

/* --- Sections Halaman Utama --- */
.maps-section-home, .promo-section-home { padding: 100px 0; text-align: center; }
.promo-section-home { background-color: #f8f9fa; }
.section-title { font-size: 2.8rem; margin-bottom: 40px; font-weight: 700; position: relative; display: inline-block; padding-bottom: 10px; }
.section-title.light-text { color: #fff; }
.section-title::after { content: ''; position: absolute; width: 60px; height: 4px; background-color: var(--color-gold); bottom: 0; left: 50%; transform: translateX(-50%); }

/* --- Halaman Promo & Video --- */
.promo-page-wrapper, .video-page-wrapper { padding: 60px 0; text-align: center; min-height: calc(100vh - 80px - 288px); }
.promo-container, .video-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; max-width: 1000px; margin: 40px auto 0 auto; }
.promo-card, .video-card { border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); text-align: left; background-color: #fff; }
.promo-card img, .video-card video { width: 100%; display: block; }
.video-card h3 { padding: 20px; margin: 0; font-size: 1.2rem; }

/* --- Halaman Kontak --- */
.contact-page-wrapper { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 80px); padding: 60px 20px; }
.contact-container { text-align: center; color: white; }
.contact-cards-container { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }
.contact-card { background-color: rgba(255, 255, 255, 0.95); color: #333; padding: 40px; border-radius: 12px; width: 320px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-top: 5px solid var(--color-gold); }
.contact-card h3 { margin-top: 0; font-size: 1.5rem; }
.contact-card .phone-number { font-size: 1.2rem; color: #555; margin-bottom: 30px; }
.whatsapp-button { display: inline-block; background-color: #25D366; color: white; padding: 12px 25px; border-radius: 50px; text-decoration: none; font-weight: bold; }

/* --- Peta Interaktif --- */
.interactive-map-container { position: relative; width: 100%; max-width: 1000px; margin: 0 auto; border-radius: 15px; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.interactive-map-container img { width: 100%; display: block; }
.map-point { position: absolute; cursor: pointer; transform: translate(-50%, -100%); z-index: 10; transition: transform 0.2s ease; }
.map-point:hover { transform: translate(-50%, -100%) scale(1.1); z-index: 11; }
.map-point i { font-size: 32px; color: #ff4757; text-shadow: 0 2px 5px rgba(0,0,0,0.5); -webkit-text-stroke: 1px white; text-stroke: 1px white; }
.map-point::after { content: ''; position: absolute; width: 15px; height: 15px; border-radius: 50%; background: rgba(255, 71, 87, 0.7); z-index: -1; left: 50%; top: 90%; transform: translateX(-50%); animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: translateX(-50%) scale(0.95); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); } 70% { transform: translateX(-50%) scale(1.5); box-shadow: 0 0 0 10px rgba(255, 71, 87, 0); } 100% { transform: translateX(-50%) scale(0.95); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); } }
.map-point-tooltip { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background-color: rgba(0, 0, 0, 0.8); color: white; padding: 5px 10px; border-radius: 4px; font-size: 12px; white-space: nowrap; margin-bottom: 10px; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; }
.map-point:hover .map-point-tooltip { opacity: 1; visibility: visible; }
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); z-index: 2000; justify-content: center; align-items: center; padding: 20px; box-sizing: border-box; }
.modal-content { position: relative; background-color: #fff; padding: 20px; border-radius: 10px; max-width: 800px; max-height: 90%; box-shadow: 0 10px 30px rgba(0,0,0,0.3); text-align: center; }
.modal-content img { max-width: 100%; max-height: 75vh; border-radius: 5px; }
.modal-caption { margin-top: 15px; font-size: 1.2rem; font-weight: 500; color: #333; }
.close-modal-btn { position: absolute; top: -15px; right: -15px; width: 35px; height: 35px; background-color: white; border-radius: 50%; border: none; font-size: 20px; font-weight: bold; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

/* --- Footer --- */
.main-footer { background-color: var(--dark-grey); color: #ecf0f1; padding: 60px 0; font-size: 15px; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.footer-column h4 { color: #fff; font-weight: 600; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-column h4::after { content: ''; position: absolute; width: 30px; height: 2px; background-color: var(--color-gold); bottom: 0; left: 0; }
.footer-column p { color: #bdc3c7; line-height: 1.8; }
.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.social-icons a { color: #fff; font-size: 1.2rem; text-decoration: none; width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; border: 1px solid #555; border-radius: 50%; transition: all 0.3s; }
.social-icons a:hover { background-color: var(--color-gold); border-color: var(--color-gold); }

/* --- MEDIA QUERIES UNTUK RESPONSIVE --- */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 10px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }
    .nav-toggle {
        display: block;
    }
    .has-dropdown .dropdown {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        border: none;
        transform: none;
        background-color: #f8f9fa;
    }
    .has-dropdown:hover .dropdown {
        display: none;
    }
    .has-dropdown.open .dropdown {
        display: block;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-background-text {
        font-size: 20vw;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    .promo-container, .video-container {
        grid-template-columns: 1fr;
    }
    .contact-cards-container {
        flex-direction: column;
        align-items: center;
    }
    .section-title {
        font-size: 2rem;
    }