*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

ul li{
    list-style-type: none;
}

a{
    text-decoration: none;
}



html{
    scroll-behavior: smooth;
}

body{
    font-family: "Roboto", sans-serif;
}

h1,h2,h3,h4,h5,h6{
    font-family: "Playfair", serif;
}

.container{
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}



header{
    position: sticky;
    top: 0;
    z-index: 50;
    height: 4.5rem;
    background-color: #0f172a;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

header nav a{
    color: #f5f5f5b3;
}

header nav a:hover{
    background-color: #3b82f6;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    color: white;
}

header nav{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo{
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    gap: 0.5rem;
}


.logo span:first-child{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    background-color: #3b82f6;
    border-radius: 8px;
    font-family: "Yellowtail", cursive;
    font-weight: 700;
}

.logo span:nth-child(2){
    font-weight: 500;
}

.mobile{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.mobile-navbar{
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding:  1rem;
    position: absolute;
    top: 100%;
    right: calc(-12%/2);
    background-color: #0f172a;
    color: rgba(245, 245, 245,0.7);
    height: calc(100vh - 4.5rem);
    width: 50%;
    max-width: 20rem;
}

.mobile:hover .mobile-navbar{
    display: flex ;
}

.mobile-navbar li:last-child a{
    display: block;
    padding: 0.5rem 1rem;
    background-color: #3b82f6;
    border-radius: 5px;
    color: white;
}

header nav>a{

   display: none;
}

/* hide desktop navbar */

.desktop-navbar{
    display: none;
}


@media(min-width:768px){
    .mobile button{
        font-size: 2rem;
    }
    
    .mobile-navbar{
        gap: 5rem;
    }

}



@media(min-width:1024px){

    .desktop-navbar{
        display: flex;
        gap: 3rem;
    }

    /* hide mobile navbar */

    .mobile{
        display: none;
    }

    header nav>a{
        display: block;
        padding: 0.5rem 1rem;
        background-color: #3b82f6;
        border-radius: 5px;
        color: white;
    }
}