/* ✅ GLOBAL STYLES */
:root {
    --primary: #1a5c40;
    --secondary: #2e856e;
    --accent: #f59e0b;
    --light: #f0fdf4;
    --dark: #1f2937;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    scroll-behavior: smooth;
    padding-top: 80px;
    /* Untuk memberi space untuk fixed navbar */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 5rem 0;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    color: var(--primary);
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--accent);
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
}

.btn:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.btn-accent:hover {
    background: transparent;
    color: var(--accent);
}

/* ✅ NAVBAR STYLES */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
}

/* Navbar saat scroll */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

/* ✅ HERO SECTION */
.hero {
    height: 100vh;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    margin-top: -80px;
    /* Kompensasi fixed navbar */
}

/* HERO LOGO */

/* Container logo khusus */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

/* Gaya logo */
.hero-logo {
    max-width: 170px;
    /* Ukuran bisa disesuaikan */
    height: 190px;
    object-fit: contain;
    margin: 0 auto;
    /* Memastikan logo di tengah */
    display: block;
}

/* Responsive adjustment */
@media (min-width: 768px) {
    .hero-logo {
        max-width: 100px;
        /* Sedikit lebih besar di desktop */
    }
}

/* VIDEO HERO */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Gunakan viewport height untuk full screen */
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    /* Diubah dari -1 ke 1 untuk memastikan video di atas background */
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    animation: fadeIn 1.5s ease;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    /* Responsif font size */
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    /* Responsif font size */
    margin-bottom: 2rem;
    font-style: italic;
}

/* Spacer antara Hero dan Gallery */
.hero-spacer {
    height: 60px;
    /* Memberi jarak antara hero dan gallery */
    position: relative;
    z-index: 10;
    background-color: #f8f9fa;
    /* Warna sama dengan gallery background */
}

/* Gallery Section Styles */
.gallery-section {
    position: relative;
    z-index: 5;
    /* Pastikan di atas hero video */
    padding: 5rem 0;
    background-color: #f8f9fa;
    margin-top: -1px;
    /* Untuk menghindari celah kecil */
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background: white;
    /* Latar belakang untuk placeholder */
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 1.5rem 1rem 1rem;
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        height: 80vh;
        /* Lebih pendek di mobile */
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 250px;
    }

    .gallery-section {
        padding: 3rem 0;
    }

    .hero-spacer {
        height: 40px;
        /* Lebih pendek di mobile */
    }
}


/* ✅ ABOUT SECTION */
.about {
    background: white;
}

/* ✅ FACILITIES SECTION */
.facilities {
    background: var(--light);
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.facility-item {
    background: white;
    padding: 2rem 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.facility-item:hover {
    transform: translateY(-10px);
}

.facility-item i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-subtitle-facility {
    display: inline-block;
    background-color: #f8f9fa;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    color: #4CAF50;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.section-subtitle i {
    margin-right: 8px;
    color: #e74c3c;
}

.subtitle-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.section-subtitle {
    text-align: center;
    background: #f8f9fa;
    padding: 12px 24px;
    border-radius: 30px;
    display: inline-block;
    font-size: 1rem;
    color: #4a4a4a;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #4CAF50;
    margin: 0 auto;
}

/* ✅ UNIT TYPES */
/* Unit Types Section */
.units {
    background: #f8f9fa;
    padding: 5rem 0;
}

.unit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.unit-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.unit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.unit-icon {
    font-size: 3rem;
    color: #1a5c40;
    margin-bottom: 1.5rem;
}

.unit-icon i {
    background: #e8f5e9;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    display: inline-block;
}

.unit-content h3 {
    color: #1a5c40;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.unit-features {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
    padding-left: 1rem;
}

.unit-features li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.unit-features i {
    color: #2e856e;
    position: absolute;
    left: 0;
    top: 0.2rem;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f59e0b;
    margin: 1.5rem 0;
}

.unit-btn {
    display: inline-block;
    background: #1a5c40;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.unit-btn:hover {
    background: #2e856e;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 992px) {
    .unit-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .unit-grid {
        grid-template-columns: 1fr;
    }

    .units {
        padding: 3rem 0;
    }
}

/* TEXT BERKEDIP */
.blinking-text {
    background-color: #ff4d4d;
    /* warna merah terang stabilo */
    color: white;
    padding: 10px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    border-radius: 6px;
    width: fit-content;
    margin: 20px auto;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Promo Section */
.promo-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa, #e8f5e9);
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.promo-badge {
    position: absolute;
    top: -15px;
    right: 10%;
    background: #e53935;
    color: white;
    padding: 5px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.promo-cards {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.promo-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid #f59e0b;
    width: 100%;
}

.promo-card.highlight::before {
    content: "PENAWARAN TERBAIK";
    position: absolute;
    top: -10px;
    right: 20px;
    background: #f59e0b;
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: bold;
}

.promo-tag {
    position: absolute;
    top: -15px;
    left: 20px;
    background: #1a5c40;
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: bold;
}

.price-container {
    margin: 1.5rem 0;
    text-align: center;
}

.original-price {
    display: block;
    font-size: 1.2rem;
    color: #757575;
    text-decoration: line-through;
}

.promo-price {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #e53935;
}

.promo-features {
    list-style: none;
    margin: 1.5rem 0;
    columns: 2;
    column-gap: 1.5rem;
}

.promo-features li {
    margin-bottom: 0.8rem;
    padding-left: 1.8rem;
    position: relative;
    break-inside: avoid;
}

.promo-features i {
    color: #1a5c40;
    position: absolute;
    left: 0;
    top: 0.2rem;
}

.promo-timer {
    background: #fff8e1;
    padding: 0.8rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    text-align: center;
    color: #ff8f00;
}

.promo-timer i {
    margin-right: 5px;
}

.countdown {
    font-weight: bold;
}

.promo-btn {
    display: block;
    background: #1a5c40;
    color: white;
    text-align: center;
    padding: 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.promo-btn:hover {
    background: #2e856e;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.promo-note {
    text-align: center;
    margin-top: 2rem;
    color: #616161;
    font-size: 0.9rem;
}

.promo-note i {
    color: #1a5c40;
    margin-right: 5px;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .promo-features {
        columns: 1;
    }

    .promo-card {
        padding: 1.5rem;
    }

    .promo-badge {
        right: 5%;
    }

    .promo-card.highlight::before {
        right: 10px;
        font-size: 0.7rem;
    }
}

/* ✅ LOCATION ADVANTAGE */
/* Location Section */
.location {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 kolom untuk laptop */
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.video-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.location-video {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    aspect-ratio: 9/16;
    /* Rasio portrait */
}

.video-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 1.5rem 1rem;
    font-weight: 500;
    text-align: center;
}

.location-features {
    list-style: none;
    margin: 1.5rem 0;
}

.location-features li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1.1rem;
}

.location-features i {
    color: #1a5c40;
    position: absolute;
    left: 0;
    top: 0.2rem;
}

.location-description {
    margin-top: 2rem;
}

.location-btn {
    display: inline-block;
    background: #1a5c40;
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.location-btn:hover {
    background: #2e856e;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .location-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .location-grid {
        grid-template-columns: 1fr;
        /* 1 kolom untuk mobile */
    }

    .video-wrapper {
        margin-bottom: 2rem;
    }

    .location-video {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .location {
        padding: 3rem 0;
    }

    .location-features li {
        font-size: 1rem;
    }
}

/* ✅ CONTACT SECTION */
.contact {
    background: var(--primary);
    color: white;
    text-align: center;
}

.contact h2 {
    color: white;
}

.contact h2::after {
    background: var(--accent);
}

/* ✅ WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 100;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #128C7E;
}

.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    /* Warna hijau WhatsApp */
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    /* Warna hijau lebih gelap saat hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Untuk ikon WhatsApp */
.whatsapp-btn i {
    font-size: 1.2em;
}

/* ✅ ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ✅ RESPONSIVE STYLES */
@media (max-width: 992px) {
    .facility-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .unit-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .location-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    /* Navbar Mobile Styles */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .hamburger {
        display: block;
    }

    /* Konten Responsif */
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .facility-grid,
    .unit-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 3rem 0;
    }
}

/* Gaya Form Survey */
.survey-form {
    max-width: 600px;
    margin: 0 auto 40px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.btn-accent {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-accent:hover {
    background: #3e8e41;
}

/* Gaya tombol WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* HALAMAN TANAH KAVLING MURAH */

/* POP UP WHATSAPP */
.wa-popup-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    color: #1f2937;
}

.wa-floating-btn {
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 10%;
    width: 55px;
    height: 55px;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.wa-floating-btn:hover {
    transform: scale(1.1);
}

.wa-form-popup {
    background: white;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 10px;
    width: 260px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wa-form-popup input,
.wa-form-popup textarea {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.wa-form-popup button {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 10px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
}

.hidden {
    display: none;
}