*,*::after,*::before{
    box-sizing: border-box;
 }
 *{
    margin: 0;
    padding: 0;
 }  
 .mobile-navbar{
   display:none;   
}
.desktop-navbar{
   height:80px;
   width:100%;
   padding:0 1rem;
   display:flex;
   position:fixed;
   top:0;
   z-index: 999;
}
.nav_bg{
   height:100%;
   width:100%;
   /* background-color: #353D48; */
   background-color:rgba(53, 61 , 72, 0.8);
   position:absolute;
   top:0;
   left: 0;
   z-index: 1;
   backdrop-filter: blur(5px);
}
.logo-container{
   height:100%;
   width:20%;
   display:flex;
   justify-content:flex-start;
   align-items:center;
   z-index: 2;
}

.logo-container img{
   height:3rem;
}
.menu-container{
   height:100%;
   width:80%;
   display:flex;
   justify-content:flex-end;
   align-items:center;
   z-index: 2;
}
.menu{
   height:100%;
   width:100%;
   display:flex;
   justify-content: space-around;
   align-items: center;
   /* font-family: 'Montserrat', sans-serif; */
   font-family: 'Source-Serif-Pro';
}
.menu li{
   list-style: none;
}
.menu li a{
   text-decoration: none;
   text-transform: uppercase;
   color: #fff;
   font-size: clamp(0.5rem, 2vw, 1.1rem);
   font-weight: 200;
   padding-bottom: 12px;
   border-bottom:2px solid transparent;
   transition: .5s ease;
   font-family: 'Source-Serif-Pro';
}

.menu li a:hover {
   border-bottom:2px solid white;
}
 
 :root{
    --bar-width:30px;
    --bar-height:3px;
    --hamburger-gap:4px;
    --foreground:#333;
    --background:white;
    --hamburger-margin:15px;
    --animation-timing: 200ms ease-in-out;
    --hamburger-height:calc(var(--bar-height) * 3 + var(--hamburger-gap) * 2);
}
.hamburger-menu{
    --x-width:calc( var(--hamburger-height)* 1.41421356237);
    display: flex;
    flex-direction: column;
    gap: var(--hamburger-gap);
    width: max-content;
    position:fixed;
    top:var(--hamburger-margin);
    left:var(--hamburger-margin);
    z-index: 2000;
    cursor:pointer;
}
.hamburger-menu:has(input:checked){
    --foreground: white;
    --background: #333;
}

.hamburger-menu:has(input:focus-visible)::before,
.hamburger-menu:has(input:focus-visible)::after,
.hamburger-menu input:focus-visible{
    border:1px solid var(--background);
    box-shadow: 0 0 0 1px var(--foreground);
}
 .hamburger-menu::before, .hamburger-menu::after , .hamburger-menu input{
    content:"";
    width: var(--bar-width);
    height: var(--bar-height);
    background-color: var(--foreground);
    border-radius: 9999px;
    transition:opacity var(--animation-timing), width var(--animation-timing), rotate var(--animation-timing), translate var(--animation-timing), background-color var(--animation-timing);
    transform-origin: left center;
 }

 
 .hamburger-menu input{
    appearance: none;
    padding: 0;
    margin: 0;
    outline: none;
    pointer-events: none;
 }

 .hamburger-menu:has(input:checked)::before{
    rotate:45deg;
    width: var(--x-width);
    translate: 0 calc(var(--bar-height) /-2);
 }
 .hamburger-menu:has(input:checked)::after{
    rotate:-45deg;
    width: var(--x-width);
    translate: 0 calc(var(--bar-height) /2);
 }


 .hamburger-menu input:checked{
    opacity: 0;
    width: 0;
 }

 .sidebar{
    transition: translate var(--animation-timing);
    translate:-100%;
    padding: 0.5rem 1rem;
    padding-top: calc(var(--hamburger-height) + var(--hamburger-margin) + 1rem);
    background-color: var(--foreground);
    color:var(--background);
    max-width: 10rem;
    min-height: 100vh;
    position:fixed;
      top:0;
    z-index: 1000;
 }

 .hamburger-menu:has(input:checked) + .sidebar{
    translate:0;
 }

.navbar-home img{
    height:60px;
    margin: 20px 0;
}
.navbar-link{
    margin:10px 0;  
}
.navbar-link a{
    text-decoration: none;
    color: var(--background);
    font-size: 1.2rem;
    font-weight: 500;
}

@media screen and (max-width: 1090px) {
   /* navbar media queries */
   .nav_bg{
       background-color:rgba(53, 61 , 72, 0.98);
   }
}
@media screen and (max-width: 818px) {
   .desktop-navbar{
       display:none;
   }
   .mobile-navbar{
       display:block;
   }
}