/* =================================================================== */
/* ===                 MODERN RESET & GLOBAL STYLES                === */
/* =================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #F8F7F5;
    color: #333333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior: none;
}

h1, h2, h3, h4, h5, h6, .header-logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #1c1c1c;
}

/* =================================================================== */
/* ===                         PRELOADER                           === */
/* =================================================================== */
.preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #F8F7F5; display: flex; justify-content: center;
    align-items: center; z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    animation: fadeOut 0.8s ease 1s forwards;
}
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }
.preloader-text { font-size: 1rem; font-weight: 500; color: #888888; }


/* =================================================================== */
/* ===                      MAIN LAYOUT & HEADER                     === */
/* =================================================================== */

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.header {
    padding: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #EAE8E4;
    font-weight: 500;
    font-size: 0.9rem;
}

.header-logo {
    font-size: 1.25rem;
}

.header-status {
    color: #888888;
    background-color: #EAE8E4;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* =================================================================== */
/* ===                         HERO SECTION                        === */
/* =================================================================== */

.hero {
    padding: 120px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 120px auto;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/home.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 16px;
}

.hero h1 {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    line-height: 1.15;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.hero p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* =================================================================== */
/* ===                VIDEO, TEXT & SPECS SECTIONS                 === */
/* =================================================================== */

.caption {
    text-align: right; font-size: 0.9rem; color: #888888; margin-top: 15px; padding-right: 10px;
}

.text-section {
    max-width: 700px;
    margin: 0 auto 120px auto;
}

.text-section h2, .specs-section h2, .gallery-section h2, .cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #EAE8E4;
}

/* === GAYA BARU UNTUK DETAIL LAHAN YANG RAPIH === */
.lahan-details { margin-top: 20px; }
.lahan-item { margin-bottom: 2.5rem; }
.lahan-item:last-child { margin-bottom: 0; }
.lahan-item h3 { font-size: 1.75rem; color: #333; margin-bottom: 0.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid #EAE8E4; }
.lahan-item p.luas { font-size: 1rem; font-weight: 500; color: #555; margin-bottom: 1rem; font-style: italic; }
.lahan-item ul { list-style: none; padding-left: 0; }
.lahan-item ul li { font-size: 1rem; line-height: 1.7; color: #555; padding-left: 30px; position: relative; margin-bottom: 0.75rem; }
.lahan-item ul li::before { content: '✓'; position: absolute; left: 0; top: 2px; color: #2E7D32; font-weight: bold; font-size: 1.2rem; }

/* =================================================================== */
/* ===                  VIDEO SLIDER SECTION (BARU)                === */
/* =================================================================== */

.video-slider-section {
    margin-bottom: 120px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.video-swiper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Biarkan slide menjadi wadah sederhana */
.video-swiper .swiper-slide {
    background: #000;
    /* Pastikan video mengikuti sudut melengkung dari slider */
    overflow: hidden;
}

/* Terapkan rasio aspek ke pembungkus langsung video */
.video-responsive {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Rasio 16:9 untuk video YouTube */
}

/* Paksa iframe untuk mengisi penuh pembungkusnya */
.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Kustomisasi Navigasi & Paginasi untuk Slider Video */
.video-swiper .swiper-button-next,
.video-swiper .swiper-button-prev {
    color: #ffffff;
    top: 40%;
}

.video-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.7);
}

.video-swiper .swiper-pagination-bullet-active {
    background: #ffffff;
}

.specs-section {
    padding: 80px 0; border-top: 1px solid #EAE8E4; border-bottom: 1px solid #EAE8E4; margin-bottom: 120px;
}

.specs-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px;
}

.spec-item h3 {
    font-size: 0.9rem; font-weight: 500; color: #888888; margin-bottom: 10px; font-family: 'Inter', sans-serif;
}
.spec-item p {
    font-size: 1.2rem; font-weight: 500; color: #1c1c1c;
}

/* =================================================================== */
/* ===                       GALLERY SECTION                       === */
/* =================================================================== */

.gallery-section {
    margin-bottom: 120px; max-width: 1000px; margin-left: auto; margin-right: auto;
}
.gallery-tabs {
    display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; border-bottom: 1px solid #EAE8E4; padding-bottom: 20px;
}
.tab-button {
    padding: 10px 20px; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.9rem;
    border: 1px solid transparent; background-color: transparent; color: #888888; border-radius: 5px;
    cursor: pointer; transition: all 0.3s ease;
}
.tab-button:hover { color: #111111; background-color: #EAE8E4; }
.tab-button.active { color: #111111; font-weight: 700; background-color: #EAE8E4; }
.gallery-pane { display: none; animation: fadeInContent 0.8s ease; }
.gallery-pane.active { display: block; }
.swiper-container {
    border-radius: 12px; overflow: hidden; background-color: #f0f0f0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); aspect-ratio: 16 / 10;
    width: 100%; display: flex; justify-content: center; align-items: center;
}
.swiper-slide { background: #222222; display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; }
.swiper-slide img { width: 100%; height: 100%; object-fit: contain; }
.swiper-button-next, .swiper-button-prev { background-color: rgba(0,0,0,0.4); color: #fff; width: 40px; height: 40px; border-radius: 50%; transition: background 0.3s ease; }
.swiper-button-next:hover, .swiper-button-prev:hover { background-color: rgba(0,0,0,0.7); }
.swiper-button-next:after, .swiper-button-prev:after { font-size: 16px; font-weight: bold; }
.swiper-pagination-bullet { background: rgba(255,255,255,0.8); opacity: 1; }
.swiper-pagination-bullet-active { background: #FFFFFF; }
@keyframes fadeInContent { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* =================================================================== */
/* ===                       CTA & FOOTER                          === */
/* =================================================================== */
.cta-section { text-align: center; max-width: 700px; margin: 0 auto 120px auto; }
.cta-section p { color: #555555; margin-bottom: 40px; font-size: 1.1rem; }
.contact-link { display: inline-block; font-size: 1.1rem; font-weight: 500; background-color: #333; color: #fff; text-decoration: none; padding: 16px 32px; border-radius: 8px; border-bottom: none; transition: background-color 0.3s ease, transform 0.3s ease; }
.contact-link:hover { background-color: #111; transform: translateY(-3px); }
.footer { padding: 40px 0; border-top: 1px solid #EAE8E4; display: flex; justify-content: space-between; font-size: 0.9rem; color: #888888; }

/* =================================================================== */
/* ===                      ANIMATION ON SCROLL                    === */
/* =================================================================== */
.animate-on-scroll { animation: fade-in-up linear both; animation-timeline: view(); animation-range-start: entry 10%; animation-range-end: cover 30%; }
@keyframes fade-in-up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }


/* =================================================================== */
/* ===           MODERN RESPONSIVE DESIGN (MOBILE FIRST)           === */
/* =================================================================== */
@media (max-width: 768px) {
    /* === Tata Letak & Jarak Global === */
    .main-content {
        padding: 0 15px;
    }
    section {
        margin-bottom: 60px; /* Jarak konsisten antar seksi */
    }
    .text-section, .cta-section, .specs-section, .video-slider-section {
        margin-bottom: 60px;
    }
    .text-section h2, .specs-section h2, .gallery-section h2, .cta-section h2 {
        font-size: 2rem;
        text-align: center;
        border-bottom: none; /* Hapus garis bawah di mobile */
        padding-bottom: 0;
    }
    
    /* === Header & Hero === */
    .header {
        flex-direction: column; gap: 15px; text-align: center;
    }
    .hero {
        padding: 60px 20px; margin-bottom: 60px; border-radius: 12px;
    }

    /* === Gaya Kartu untuk Seksi Video === */
    .video-slider-section {
        background-color: #FFFFFF;
        padding: 0; /* Ubah baris ini */
        border-radius: 16px;
        box-shadow: 0 4px 25px rgba(48, 48, 48, 0.07);
        margin-top: -30px; /* Sedikit menimpa hero section untuk efek modern */
        position: relative;
        z-index: 10;
    }

    .video-swiper {
        border-radius: 12px;
    }

    /* === Desain Kartu untuk Seksi Lainnya === */
    .gallery-section, .specs-section, .cta-section {
        background-color: #FFFFFF;
        padding: 20px;
        border-radius: 16px;
        box-shadow: 0 4px 25px rgba(48, 48, 48, 0.07);
        border: none;
    }

    /* === Gaya Konten dalam Kartu === */
    .lahan-item h3 { font-size: 1.5rem; }
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .spec-item {
        padding-bottom: 20px;
        border-bottom: 1px solid #EAE8E4;
    }
    .spec-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    /* === GALERI MODERN MINIMALIS === */
    .gallery-tabs {
        display: flex;
        background-color: #EAE8E4;
        border-radius: 12px;
        padding: 4px;
        border-bottom: none;
        gap: 0;
        margin-bottom: 20px; /* Jarak ke slider */
    }
    .tab-button {
        flex: 1;
        padding: 10px 5px;
        font-size: 0.8rem;
        text-align: center;
        border: none;
        border-radius: 9px;
        background-color: transparent;
        color: #555;
        font-weight: 500;
        transition: all 0.3s ease;
        min-height: auto;
        line-height: 1.4;
    }
    .tab-button.active {
        background-color: #fff;
        color: #111;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        font-weight: 700;
    }

    #gallery .swiper-container {
        aspect-ratio: 4 / 3.5; /* Rasio yang lebih baik untuk mobile */
        border-radius: 12px;
    }
    .swiper-button-next, .swiper-button-prev {
        width: 32px; height: 32px; background-color: rgba(0, 0, 0, 0.35);
    }
    .swiper-button-next:after, .swiper-button-prev:after {
        font-size: 14px;
    }
    .swiper-pagination {
        position: relative;
        bottom: auto;
        margin-top: 20px;
    }
    .swiper-pagination-bullet {
        background: #D1D1D1;
        opacity: 1;
        transition: all 0.3s ease;
    }
    .swiper-pagination-bullet-active {
        background: #333;
        width: 16px;
        border-radius: 4px;
    }
    
    /* === Footer === */
    .footer {
        flex-direction: column; gap: 10px; text-align: center;
    }
}