/* Reset Basic */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    /* Tinggi body dibuat lebih untuk simulasi scroll */
    min-height: 150vh;
    background-color: #F3F3F3;
}

/* Tambahkan ini di bagian paling atas (Global Reset) agar efek scroll-nya halus */
html {
    scroll-behavior: smooth;
}

/* ================= TOMBOL ARROW DOWN (HERO BANNER) ================= */
.scroll-down-btn {
    display: inline-block;
    margin-top: 30px;
    font-size: 32px;
    color: #111;
    text-decoration: none;
    animation: bounce 2s infinite; /* Efek memantul agar interaktif */
    width: fit-content;
    transition: color 0.3s ease;
}

.scroll-down-btn:hover {
    color: #E60000; /* Berubah merah saat disentuh */
}

/* Animasi Memantul (Bounce) */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

/* ================= TOMBOL ARROW TOP (BACK TO TOP) ================= */
#scrollTopBtn {
    display: none; /* Sembunyikan secara default sebelum di-scroll */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-size: 20px;
    border: none;
    outline: none;
    background-color: #111;
    color: white;
    cursor: pointer;
    padding: 15px 18px;
    border-radius: 50%;
    opacity: 0.25; /* Sesuai permintaan: Transparan 25% */
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

#scrollTopBtn:hover {
    opacity: 0.8; /* Sedikit lebih tebal saat kursor diarahkan ke tombol */
    background-color: #E60000;
}

/* ================= HEADER ================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    z-index: 999;
}

/* Class ini ditambahkan oleh JS saat di-scroll */
header.scrolled {
    background-color: #F3F3F3;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.header-kiri img {
    height: 30px; /* Sesuaikan ukuran logo */
    display: block;
}

.header-kanan {
    display: flex;
    gap: 20px;
}

.icon-link {
    color: black;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.icon-link:hover {
    color: #555;
    transform: scale(1.1);
}

/* ================= HERO BANNER ================= */
.hero-banner {
    background-color: #F3F3F3;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 5% 30px; /* Padding top untuk menghindari bentrok dengan header fixed */
    gap: 40px;
}

.kolom-1, .kolom-2 {
    flex: 1;
}

.kolom-1 img {
    width: 100%;
    /*max-width: 500px;*/
    display: block;
    margin: 0 auto;
    border-radius: 5%;
}

.kolom-2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Styling Teks */
#teks-p {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
    min-height: 36px; /* Mencegah layout melompat saat kosong */
}

#teks-h1 {
    font-size: 48px;
    font-weight: bold;
    color: #111;
    min-height: 70px; /* Mencegah layout melompat saat kosong */
}

/* Animasi Kursor Typewriter */
.kursor {
    display: inline-block;
    width: 4px;
    height: 1em;
    background-color: black;
    vertical-align: middle;
    margin-left: 5px;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ================= SECTION MAINTENANCE ================= */
.maintenance-section {
    margin-top: 50px;
    background-color: #FFFFFF;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 5%;
    gap: 40px;
    overflow: hidden; /* Mencegah scrollbar horizontal muncul saat animasi dari samping */
}

.maintenance-section h2 {
    font-size: 28px;
    color: #111;
    margin-bottom: 20px;
}

.maintenance-section p {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
}

/* ================= ANIMASI SCROLL (INITIAL STATE) ================= */
/* Section container (Fade on top / dari bawah ke atas) */
.reveal-top {
    opacity: 0;
    transform: translateY(100px);
    transition: all 1s ease-out;
}

/* Kolom 1 Image (Fade from right / dari kanan ke kiri) */
.reveal-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 1s ease-out 0.4s; /* Delay 0.4s agar muncul setelah section */
}

/* Kolom 2 Teks (Fade from left / dari kiri ke kanan) */
.reveal-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s ease-out 0.4s;
}

/* ================= ANIMASI SCROLL (ACTIVE STATE) ================= */
.reveal-top.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-top.active .reveal-right,
.reveal-top.active .reveal-left {
    opacity: 1;
    transform: translateX(0);
}

/* ================= TOMBOL CEK DETAIL ================= */
.btn-container {
    display: flex;
    justify-content: flex-end; /* Memosisikan tombol di sebelah kanan pada desktop */
    margin-top: 25px;
}

.btn-detail {
    display: inline-block;
    background-color: #E60000; /* Warna merah */
    color: #FFFFFF; /* Warna putih */
    font-weight: bold; /* Teks tebal */
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 8px; /* Sudut sedikit membulat */
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.btn-detail:hover {
    background-color: #CC0000; /* Merah lebih gelap saat di-hover */
    transform: scale(1.05); /* Sedikit membesar saat disentuh */
}

/* ================= GLOBAL SECTION STYLING (Website, Villa, Properti) ================= */
.content-section {
    background-color: #FFFFFF;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 5%;
    gap: 40px;
    overflow: hidden;
    margin-top: 20px; /* Margin atas sesuai permintaan */
}

.content-section h2 {
    font-size: 30px;
    color: #111;
    margin-bottom: 20px;
}

.content-section p {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
    margin-top: -10px;
}

.content-section img {
    width: 100%;
    max-width: 500px; /* Menjaga ukuran gambar tidak terlalu raksasa */
    display: block;
    margin: 0 auto;
}

/* Modifikasi Class Tombol Kiri dan Kanan */
.btn-container {
    display: flex;
    margin-top: 25px;
}

.btn-container.btn-right {
    justify-content: flex-end; /* Posisi Kanan untuk Villa */
}

.btn-container.btn-left {
    justify-content: flex-start; /* Posisi Kiri untuk Website & Properti */
}

/* ================= MOBILE RESPONSIVE ================= */
@media screen and (max-width: 768px) {
    /* Posisi ikon arrow down ke tengah di mobile */
    .scroll-down-btn {
        margin: 0px auto 0;
    }

    /* Menyesuaikan ukuran tombol arrow top di layar kecil */
    #scrollTopBtn {
        bottom: 20px;
        right: 20px;
        padding: 12px 15px;
        font-size: 16px;
    }

    .hero-banner {
        flex-direction: column;
        text-align: center;
        padding-top: 50px;
    }

    .kolom-1 img {
        width: 100%;
    }

    .kolom-2 {
        align-items: center;
        margin-top: -10px;
    }

    #teks-p {
        font-size: 15px;
    }

    #teks-h1 {
        margin-top: -20px;
        font-size: 25px;
    }

    /* Memastikan Icon header tetap ada dan tidak disembunyikan (sesuai request) */
    .header-kanan {
        display: flex;
    }

    .maintenance-section {
        flex-direction: column;
        text-align: left;
    }
    
    .maintenance-section h2 {
        font-size: 20px;
    }

    .maintenance-section p {
        font-size: 10px;
    }

    /* Pengaturan Tombol untuk Mobile */
    .btn-container {
        justify-content: center; /* Mereset posisi */
        width: 100%;
    }

    .btn-detail {
        width: 100%; /* Membuat tombol full width */
        padding: 15px 0;
    }

    /* Pengaturan urutan kolom di HP */
    /* reverse-mobile: Memutar posisi kolom-2 (gambar) agar berada di atas kolom-1 (teks) */
    .content-section.reverse-mobile {
        flex-direction: column-reverse;
        text-align: left;
        padding-top: 60px;
        padding-bottom: 60px;
    }

    /* normal-mobile: Mempertahankan urutan gambar di atas teks (kolom-1 atas, kolom-2 bawah) */
    .content-section.normal-mobile {
        flex-direction: column;
        text-align: left;
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .content-section h2 {
        font-size: 20px;
    }

    .content-section p {
        font-size: 10px;
    }

    /* Membuat semua tombol menjadi full-width di layar HP */
    .btn-container.btn-right,
    .btn-container.btn-left {
        justify-content: center;
        width: 100%;
    }
}