*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: 'Nunito', sans-serif;
    background: #f0faf4;
    color:#1e3a2f;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* MAIN */
main{
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* section{
    padding: 40px 100px;
    scroll-margin-top: 90px;
} */

/* NAVBAR */
nav{
    height: 70px;
    background: #2d9e5f;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(45,158,95,0.25);
}

/* LOGO */
.logo{
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.7rem;
    font-family: 'Fredoka One', sans-serif;
}

.logo-icon{
    font-size: 1.8rem;
}

/* MENU */
.nav-menu{
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
}

.nav-menu li{
    position: relative;
}

/* LINK MENU */
.nav-menu a{
    display: block;
    padding: 10px 18px;
    border-radius: 50px;
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    font-weight: 800;
    transition: 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a.active{
    background: rgba(255,255,255,0.18);
    color: white;
}

/* DROPDOWN */
.dropdown{
    position: relative;
}

.dropdown-menu{
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    min-width: 210px;
    background: white;
    border-radius: 14px;
    padding: 10px 0;
    list-style: none;
    z-index: 999;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    animation: dropdownFade 0.2s ease;

    /* TRANSISI */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s;
}

/* SHOW DROPDOWN */
.dropdown:hover .dropdown-menu{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;

}

/* DROPDOWN LINK */

.dropdown-menu li a{
    padding: 12px 18px;
    color: #1e3a2f;
    border-radius: 0;
    font-weight: 700;
    transition: 1s ease;
}

.dropdown-menu li a:hover{
    background: #e8f8ef;
    color: #2d9e5f;
}


.hero{
    background:
        linear-gradient(
            135deg,
            #2d9e5f 0%,
            #1a7a45 60%,
            #0d5c33 100%
        );
    text-align: center;
    padding: 80px 32px;
    overflow: hidden;
    position: relative;
}

.hero-emoji{
    display: block;
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}


.hero h1{
    font-family: 'Fredoka One', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: white;
    margin-bottom: 18px;
    line-height: 1.2;
}

/* HERO TEXT */

.hero p{
    max-width: 600px;
    margin: 0 auto 30px;
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    line-height: 1.7;
}

/* BUTTON */
.btn-belajar{
    display: inline-block;
    margin-top: 10px;
    padding: 14px 30px;
    background: #ffd93d;
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 50px;
    box-shadow: 0 5px 0 #d9b600;
    transition: 0.2s ease;
}

.btn-belajar:hover{
    transform: translateY(-3px);
    background: #ffe566;
}

.btn-belajar:active{
    transform: translateY(3px);
    box-shadow: 0 2px 0 #d9b600;
}

/* FOOTER */
.footer{
    background: #2d9e5f;
    color: white;
    text-align: center;
    padding: 18px;
}

/* ANIMATION */

@keyframes bounce{
    0%,100%{transform: translateY(0);}
    50%{transform: translateY(-12px);}
}

@keyframes dropdownFade{
    from{
        opacity: 0;
        transform: translateY(10px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media(max-width: 768px){
    nav{
        padding: 0 20px;
    }
    .logo{
        font-size: 1.3rem;
    }
    .nav-menu{
        gap: 5px;
    }
    .nav-menu a{
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    /* section{
        padding: 30px 20px;
    } */
    .hero{
        padding: 70px 20px;
    }
    .hero-emoji{
        font-size: 4rem;
    }
}