*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
}
/* body{
    overflow-x: hidden;  
} */
.header{
    background-color: orange;
    padding:0 4.8rem;
    height:10rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.header .logo{
    height: 80px;

}
.navbar-list{
    display: flex;
    gap:4.8rem;
    list-style: none;
}
.navbar-link:link,
.navbar-link:visited{
    display: inline-block;
    text-transform: capitalize;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 500;
    color: navy;
    transition: all 0.3s;
}
.navbar-link:hover,.navbar-link:active{
    color: green;

}
.mobile-navbar{
    display: none;
    background: transparent;
    cursor: pointer;
}
.mobile-navbar .close{
    display: none;
}
.menu{
    font-size:4rem;
    
}
@media(max-width:62em){
    html, body{
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }
    .header img{
        width:100px;
    }
    .mobile-navbar{
        display: block;
        z-index:999;
        
    }
     p{
        font-size: 16px;
    }
    .navbar{
        width:100%;
        height: 100vh;
        background-color:orange;
        position: absolute;
        top:0;
        left: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: all 0.5s linear;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;

    }
    .navbar-list{
        flex-direction: column;
        align-items: center;
    }
    .active .navbar{
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        z-index: 999;
    }
    .active .mobile-navbar .close{
        display: block;
    }
    .active .mobile-navbar .hem{
        display: none;
    }
}