/* Modify body to enable vertical centering */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html,
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
    color: #2E7D32;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Added flex-direction column to ensure vertical layout */
    width: 100%;
    /* Ensure full width */
    overflow-x: hidden;
    /* Untuk mencegah scroll horizontal jika ada elemen overflow */
}

/* Menghilangkan scrollbar di webkit browser */
::-webkit-scrollbar {
    display: none;
}

:root {
    --primary-green: #2E8B57;
    --bg-mint: #E8F5E9;
}

section {
    height: 100vh;
    /* Tinggi penuh layar */
    overflow: hidden;
    /* Hindari elemen melampaui batas */
}

.container {
    width: 100%;
    height: 100vh;
    padding-top: 2em;
    /* Reduced from 5em to 2em to save vertical space */
    padding-left: 7em;
}

/* ... existing code ... */

.section {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Strict height for JS scroll compatibility */
    overflow: hidden;
    /* Prevent visual overlap */
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    /* Bold untuk heading */
}

h1 {
    font-size: 38px;
}

p,
a,
button,
input,
select,
textarea {
    font-family: 'Poppins', sans-serif;
    font-weight: 550;
    text-align: justify;
    line-height: 30px;
    font-size: 22px;
}


button {
    border-radius: 20px;
    padding: 10px;
    font-size: 18px;
    color: #ffffff;
    background-color: #2E8B57;
    border: none;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
    /* Menambahkan transisi untuk efek halus */
}

button:hover {
    background-color: #1F6B4D;
    /* Mengubah warna latar belakang saat hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* Menambahkan bayangan saat hover */
    transform: translateY(-10%);
    /* Menggerakkan tombol ke atas saat hover */
}

/* Media Query untuk Mobile */
@media (max-width: 768px) {
    .social-menu ul li a {
        position: relative;
        display: block;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background-color: #2E8B57;
        text-align: center;
        transition: 0.6s;
        box-shadow: 0 5px 4px rgba(0, 0, 0, 0.5);
    }

    .social-menu ul li .fab {
        font-size: 40px;
        line-height: 85px;
        transition: 0.3s;
        color: #A5D6A7;
    }
}

/* Transisi kemunculan untuk section */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Transisi kemunculan untuk elemen animate-item */
.animate-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    /* Transisi untuk kemunculan */
}

/* Ketika elemen terlihat, elemen muncul satu per satu */
.animate-item.visible {
    opacity: 1;
    transform: translateY(0);
}

#content-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
}

/* Ensure background SVGs fill the screen */
.svg-background,
.svg-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    #content-wrapper {
        overflow-x: hidden;
        width: 100%;
    }
}