@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: #2c2c2c;
    overflow-x: hidden;
    background-image: url('svg-background-real-estate-rudhiz.svg');
    background-size: cover; /* Atau ganti 'auto' jika ingin pattern berulang */
    /* Jika menggunakan pattern yang berulang, gunakan: background-repeat: repeat; */
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Navigasi --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: #111;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ccc;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #2c2c2c;
    color: #fff;
}

/* --- Konten Utama --- */
main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.content-left {
    max-width: 45%;
}

h1 {
    font-size: 3.2rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #1a1a1a;
    letter-spacing: 1px;
}

h2 {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #222;
}

p {
    font-size: 0.85rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 40px;
}

.cta-btn {
    background-color: #1f1e1e;
    color: #fff;
    border: none;
    padding: 14px 35px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    background-color: #333;
}

/* --- Galeri Gambar --- */
.content-right {
    width: 55%;
    display: flex;
    justify-content: flex-end;
}

.image-gallery {
    display: flex;
    gap: 25px;
    align-items: center;
}

.img-card {
    width: 200px;
    height: 380px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background-color: #fff;
    border: 6px solid #fff;
}

.img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-1 { height: 340px; transform: translateY(30px); }
.card-2 { height: 420px; transform: translateY(-20px); }
.card-3 { height: 360px; transform: translateY(10px); }

.img-card:hover { z-index: 10; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.img-card:hover img { transform: scale(1.1); }

/* ========================================= */
/* RESPONSIVE LAYOUT UNTUK TABLET & MOBILE   */
/* ========================================= */

@media (max-width: 992px) {
    .container { padding: 30px 40px; }
    h1 { font-size: 2.5rem; }
    .img-card { width: 160px; height: 320px; }
    .card-1 { height: 280px; }
    .card-2 { height: 360px; }
    .card-3 { height: 300px; }
}

@media (max-width: 768px) {
    .container { padding: 20px; }
    
    /* Navigasi Mobile */
    .menu-toggle { display: block; }
    .nav-links {
        display: none; /* Disembunyikan, akan dimunculkan via JS */
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 20px;
        padding: 20px 0;
        background-color: #fff;
        border-radius: 10px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    .nav-links.active { display: flex; }
    nav { margin-bottom: 40px; }

    /* Mengubah Layout menjadi 1 Kolom */
    main { flex-direction: column; text-align: center; }
    
    .content-left {
        max-width: 100%;
        margin-bottom: 60px;
    }
    
    .content-right {
        width: 100%;
        justify-content: center;
    }

    /* Penyesuaian Galeri untuk Mobile */
    .image-gallery {
        flex-direction: column; /* Gambar dibuat bertumpuk ke bawah */
        gap: 20px;
    }

    .img-card {
        width: 100%;
        max-width: 350px; /* Lebar maksimal di HP */
        height: 250px;
        transform: translateY(0) !important; /* Menghilangkan efek naik-turun agar rapi */
    }

    /* Menyamakan tinggi semua kartu di mobile */
    .card-1, .card-2, .card-3 {
        height: 250px;
    }
}