@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
}

body{
    min-height: 100vh;
    min-width: 200px;
    overflow: hidden;
}

header{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    height: 80px;
    padding: 0 5%;
    color: #276678;
    font-size: 18px;
}
header .logo{
    color: #276678;
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: auto;
}
header nav{
    display: flex;
    align-items: center;
}
header nav .menu{
    /*bikin menunya jadi horizontal*/
    display: flex; 
    align-items: center;
}
header nav .menu li a{
    position: relative;
    color: #276678;
    font-size: 1rem;
    font-weight: 600;
    margin-left: 40px;
    border-radius: 0.4rem;
    transition: color 0.4s ease;
}
header nav .menu li a #signup, header nav .menu li a #signin{
    color: #f3de88;
}
header nav .menu li a:hover{
    color: #540375;
}
header nav #toggle:hover {
    color: #540375;
}

header nav #toggle{
    /*pakai important untuk mendahulukan css ini*/
    font-size: 1.3rem !important; 
    margin-left: 80px !important;
    cursor: pointer !important;
}

/* CSS untuk tampilan desktop dengan toggle button aktif */
header nav .menu.active {
    flex-direction: column;
    row-gap: 2rem;
    position: absolute;
    left: 0;
    top: 80px;
    width: 100%;
    padding-top: 50px;
    background: #276678;
    height: calc(100vh - 80px);
    z-index: 10;
}

header nav .menu.active li a {
    margin-left: unset;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #f3de88;
    width: 250px;
    height: 60px;
    line-height: 60px;
    display: block;
    text-align: center;
    border-radius: 5px;
    transition: 0.25s ease;
}

header nav .menu.active li a:hover {
    background: #f3de88;
    color: #276678;
}
header nav #toggle {
    font-size: 1.3rem;
    margin-left: 20px; /* Adjust as needed */
    cursor: pointer;
    display: block; /* Ensure it's displayed */
}

.home{
    padding: 0 5%;
    color: #276678;
    text-align: center;
}
.home h1{
    color: #276678;
    text-transform: uppercase;
    font-size: 6rem;
    font-weight: 700;
    letter-spacing: 10px;
}
.home h2{
    color: #276678;
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: -25px;
}
.home .description {
    background: #276678;
    color: #f3de88;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0.4rem;
    font-size: 1rem;
    font-weight: 300;
}
button{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
    margin-left: 40vw;
    border: none;
    outline: none;
    background: #276678;
    box-shadow: 0 7px 0 0 #153943;
    border-radius: 12px;
    height: 50px;
    padding: 0 20px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 4px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: 0.1s;
}
/*mengatur tombol sebelum adanya perubahan*/
button::before
{
    position: absolute;
    content:attr(alt);
    inset: 0;
    text-transform: uppercase;
    color: #f3de88;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 4px;
    opacity: 1;
}
/*ketika tombol ditekan*/
button:active
{
    box-shadow: none;
    transform: translateY(7px);
    transition: 0.1s;
}
button:hover::before
{
    opacity: 0;
    transform: translateY(100%);
}
/*mengatur tombol setelah dikenakan perubahan*/
button span{
    color:#f3de88;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 1s ease;
}
/*animasi pada huruf ketika tombol sebeum perubahan di hover*/
button:hover span
{
    opacity: 1;
    transform: translateY(0);
    transition: all 0.1s ease;
    transition-delay: calc(0.045s * var(--i));
}
/*description highlight*/
.highlight {
    color: white;
    
}

.home .images .img-1,
.home .images .img-2,
.home .images .img-3,
.home .images .img-4,
.home .images .img-5,
.home .images .img-6,
.home .images .img-7{
    width: 100%;
    height: 100vh;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -10;
}
.home .images .img-1{
    background: url("../images/background.jpg");
    background-position: center;
    background-size: cover;
    z-index: -30;

    
}
.home .images .img-2{
    background: url("../images/star.png");
    background-position: center;
    background-size: 20vw;
    width: 100%; 
    
    height: 50%; /* Setengah tinggi layar */
    top: 0; /* Mulai dari atas */
    left: 0;
    z-index: -10;

}

.home .images .img-3{
    background: url("../images/math.jpg");
    background-position: center;
    background-size: cover;
    z-index: -20;
}



@media (max-width: 800px){
    .home{
        min-width: 385px;
    }
    .home h1{
        margin-top: 5px;
        font-size: 3rem;
        font-weight: 700;
    }
    .home h2{
        margin-top: 10px;
    }
    button{
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 3rem;
        margin-left: 38vw;
        border: none;
        outline: none;
        background: #276678;
        box-shadow: 0 7px 0 0 #153943;
        border-radius: 12px;
        height: 50px;
        padding: 0 20px;
        font-size: 18px;
        font-weight: 600;
        letter-spacing: 4px;
        overflow: hidden;
        position: relative;
        cursor: pointer;
        transition: 0.1s;
    }
    button:active
    {
    box-shadow: none;
    transform: translateY(7px);
    transition: 0.1s;
}
    
    
    header nav .menu{
        flex-direction: column;
        row-gap: 2rem;
        position: absolute;
        left:-100%;
        top: 80px;
        width: 100%;
        padding-top: 50px;
        background: #276678;
        height: calc(100vh - 80px);
        z-index: 10;
        transition: left 0.4s ease;
    }
    header nav .menu.active{
        left: 0;
    }
    header nav .menu li a{
        margin-left: unset;
        font-size: 2rem;
        font-weight: 700;
        text-transform: uppercase;
        color: #f3de88;
        width: 250px;
        height: 60px;
        line-height: 60px;
        display:block;
        text-align: center;
        border-radius: 5px;
        transition: 0.25s ease;
    }
    header nav .menu li a:hover{
        background: #f3de88;
        color: #276678;
    }
}

@media (max-width: 384px){
    .home{
        min-width: 300px;
        display: flex;
        flex-direction: column;
        align-items: center; /* Tengah horizontal */
        justify-content: center; /* Tengah vertical */
    }
    .home h1{
        margin-top: 10px;
        font-size: 2rem;
        font-weight: 700;
    }
    .home h2{
        margin-top: 10px;
    }
    .home .description {
        position: absolute;
        top: 10.4rem;
        left: 3.65rem;
        background: #276678;
        color: #f3de88;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 0.4rem;
        font-size: 1rem;
        font-weight: 300;
        width: 70%; /* Pastikan elemen mengambil lebar penuh */
        box-sizing: border-box; /* Termasuk padding dalam lebar elemen */
    }
    button{
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 19rem;
        margin-left: 3vw;
        border: none;
        outline: none;
        background: #276678;
        box-shadow: 0 7px 0 0 #153943;
        border-radius: 12px;
        height: 50px;
        padding: 0 20px;
        font-size: 18px;
        font-weight: 600;
        letter-spacing: 4px;
        overflow: hidden;
        position: relative;
        cursor: pointer;
        transition: 0.1s;
    }

    header nav{
        display: flex;
        align-items:center;
        margin: 0;
    }
    header nav .menu{
        display: flex;
        flex-direction: column;
        align-items: center; /* Tengah horizontal */
        position: absolute;
        left: -100%;
        top: 80px;
        width: 100%;
        padding-top: 50px;
        background: #276678;
        height: calc(100vh - 80px);
        z-index: 10;
        transition: left 0.4s ease;
    }
    header nav .menu.active{
        left: 0;
    }
    header nav .menu li a{
        margin-left: unset;
        margin-top: -0.4rem;
        font-size: 1rem;
        font-weight: 700;
        text-transform: uppercase;
        color: #f3de88;
        width: 250px;
        height: 60px;
        line-height: 60px;
        display:block;
        text-align: center;
        border-radius: 5px;
        transition: 0.25s ease;
    }
    header nav .menu li a:hover{
        background: #f3de88;
        color: #276678;
    }
    header nav #toggle {
        display: block; /* Ensure it's displayed */
        position: absolute;
        left: 15rem;
        font-size: 1.3rem;
        cursor: pointer;
        
    }
    
    
}
