/* Styling Header */
/* Pastikan body dan wrapper memiliki tinggi penuh */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif !important;
}

/* Pastikan konten utama tidak tertutup navbar */
.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    /* Beri jarak agar tidak tertutup navbar */
}

/* Tambahkan padding ke bagian kontak agar tidak tertutup */
.main-content {
    flex: 1;
    padding: 20px;
}

/* Navbar tetap di atas dan tidak menutupi konten */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.8);
    /* Warna navbar lebih jelas */
    padding: 15px 20px;
    color: white;
}


.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    color: white;
    text-decoration: none;
}

.logo-img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-menu li {
    display: inline-block;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 10px;
    transition: 0.3s;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}


/* Efek saat Scroll */
.scrolled .navbar {
    background: rgba(11, 25, 47, 0.9);
    /* Sedikit lebih gelap saat di-scroll */
}

/* Heading */
h2 {
    margin-top: 5rem;
    color: #343a40;
}

.main-content {
    margin-bottom: 18rem;
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    margin-top: 20rem !important;
}


/* Pastikan footer tidak menutupi konten */
.footer-section {
    position: relative;
    bottom: 0;
    width: 100%;
}


html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

/* Form */
form {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Tombol WhatsApp */
.btn-whatsapp-custom {
    background-color: #25D366;
    color: #fff;
    padding: 12px 25px;
    font-size: 20px;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-whatsapp-custom i {
    font-size: 24px;
}

.btn-whatsapp-custom:hover {
    background-color: #1ebe5d;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}



/* RESPONSIVE DESIGN */

/* 💻 1. Desktop (≥ 1024px) */
@media screen and (min-width: 1024px) {
    .nav-menu {
        display: flex;
    }

    .hamburger-menu {
        display: none;
        font-size: 28px;
        color: white;
        cursor: pointer;
    }

    .wrapper {
        padding-top: 100px;
        /* Tambah jarak untuk tablet */
    }
}

/* Tampilkan Hamburger di Tablet & HP */
@media (max-width: 1024px) {
    .hamburger-menu {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        text-align: center;
        padding-top: 50px;
    }

    .nav-menu.active {
        display: flex;
    }
}

/* Sembunyikan hamburger menu di Desktop */
@media (min-width: 1025px) {
    .hamburger-menu {
        display: none !important;
    }

    .nav-menu {
        display: flex !important;
        position: relative;
        height: auto;
        background: transparent;
        flex-direction: row;
    }
}

@media (max-width: 767px) {
    .wrapper {
        padding-top: 120px;
        /* Tambah lebih banyak jarak untuk HP */
    }
}