/* =========================================
   1. RESET & GLOBAL STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
}

.section h2 {
    margin-bottom: 40px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 800; 
    line-height: 1.2;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
}

/* =========================================
   2. LAYOUT UTILITIES
   ========================================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.section {
    padding: 80px 20px;
}

.bg-light {
    background-color: #f4f4f4;
}

/* =========================================
   3. NAVBAR & MENU
   ========================================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
}

nav .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

nav .logo img {
    height: 20px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

nav .logo img:hover {
    transform: scale(1.05);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #00b4d8;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* Gambar Hero Placeholder Desktop */
    background-image: url('xpeng-x9-jakarta-hero-1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 0, 0, 0.2) 50%, 
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    color: #ffffff;
}

.hero-title .highlight {
    color: inherit;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 40px;
    letter-spacing: 1px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* =========================================
   5. PARALLAX HELPER & BACKGROUNDS
   ========================================= */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    color: #fff;
}

.content-overlay {
    background: rgba(0, 0, 0, 0.7);
    padding: 100px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Placeholder Gambar untuk Section Produk */
.bg-produk {
    background-image: url('xpeng-produk.jpg');
}

/* Placeholder Gambar untuk Section Kontak */
.footer-contact {
    background-image: url('xpeng-kontak.jpg');
}

/* =========================================
   6. BUTTONS
   ========================================= */
.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #fff;
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid #fff;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background: #fff;
    color: #111;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.btn-hero .arrow {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.btn-hero:hover .arrow {
    transform: translateX(5px);
}

.btn-primary, 
.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    margin-top: 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-primary {
    background: #00b4d8;
    color: #fff;
}

.btn-primary:hover {
    background: #0077b6;
}

.btn-secondary {
    background: #25D366; /* WhatsApp Color */
    color: #fff;
}

.btn-secondary:hover {
    background: #128C7E;
}

/* =========================================
   7. CARDS (PRODUK & BLOG)
   ========================================= */
.grid-cards {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border: 1px solid #fff;
    border-radius: 8px;
    width: 300px;
    backdrop-filter: blur(5px);
}

.blog-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.blog-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    width: 320px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #111;
    line-height: 1.4;
}

.blog-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-size: 14px;
    font-weight: bold;
    color: #00b4d8;
    text-decoration: none;
    transition: color 0.3s;
}

.read-more:hover {
    color: #0077b6;
}

/* =========================================
   8. FAQ ACCORDION
   ========================================= */
.faq-item {
    margin: 15px auto;
    max-width: 600px;
    text-align: left;
}

.faq-question {
    width: 100%;
    background: #eee;
    border: none;
    padding: 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    outline: none;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #e0e0e0;
}

.faq-answer {
    display: none;
    padding: 15px;
    background: #fafafa;
    border-left: 3px solid #00b4d8;
}

/* =========================================
   9. FOOTER
   ========================================= */
footer {
    background: #111;
    color: #aaa;
    text-align: center;
    padding: 20px;
    font-size: 12px;
}

/* =========================================
   10. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================= */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 20px;
    height: 2px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s ease;
}

/* Tablet & Smartphone (Maks. Lebar 768px) */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        position: absolute;
        top: 60px;
        left: -100%;
        padding: 20px 0;
        text-align: center;
        transition: 0.4s ease-in-out;
    }
    
    .nav-links.active {
        left: 0; 
    }

    .nav-links li {
        margin: 15px 0;
    }

    .section {
        padding: 50px 15px;
    }
    
    .content-overlay {
        padding: 60px 15px;
    }

    .card, 
    .blog-card {
        width: 100%;
        max-width: 400px;
    }
    
    /* ===== KODE BACKGROUND MOBILE ===== */
    .hero {
        background-image: url('xpeng-x9-jakarta-hero-portrait-1.jpg');
        background-position: center bottom; 
    }
    /* ================================== */
    
    /* Hero Section Adjustments */
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-hero {
        padding: 14px 30px;
        font-size: 1rem;
    }

    h1 { font-size: 32px; }
    h2 { font-size: 26px; }
}

/* Smartphone (Maks. Lebar 480px) */
@media screen and (max-width: 480px) {
    h1 { font-size: 26px; }
    h2 { font-size: 22px; }
    
    .btn-primary, 
    .btn-secondary,
    .btn-hero {
        display: block;
        width: 100%;
        text-align: center;
        padding: 15px;
        margin-top: 15px;
    }

    .faq-question {
        font-size: 14px;
        padding: 12px;
    }
}

/* =========================================
   11. GALLERY & LIGHTBOX MODAL
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Agar gambar tidak gepeng */
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-thumb:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Modal Latar Belakang Gelap */
.modal {
    display: none; /* Sembunyikan secara default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Latar hitam semi-transparan */
    justify-content: center;
    align-items: center;
}

/* Gambar dalam Modal */
.modal-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease; /* Animasi pop up */
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Tombol Tutup (Close X) */
.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: #00b4d8;
    text-decoration: none;
}