/*nav*/
nav{
    position: fixed;
    top: 0;
    width: 100%;
    transition: 0.3s;
    background-color: rgba(255, 255, 255, 0.153); 
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 100000000;
    color: #fff;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

nav .logo{
    font-weight: 700;
    text-decoration: none;
    font-size: 2em;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
    margin-right: 40px;
    color: var(--main-color);
    &:hover:after{
        width: 0;
    }
    & img{
        height: 4rem;
        margin-top: 0.5rem;
    }
}
nav ul{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin-bottom: 0;
}
nav ul li{
    margin: 0 20px;
}
nav ul li a{
    position: relative;
    display: inline-block;
    height: 7rem;
    line-height: 7rem;
    text-decoration: none;
    letter-spacing: 2px;
    font-weight: 600;
    transition: 0.3s; 
    font-size: 1.5em;
    cursor: pointer;
    white-space: nowrap;
}
nav ul li a:hover{
    color: var(--main-color);
}
nav.sticky ul li a:hover{
    color: #fff;

}
nav.sticky{
    background-color: var(--main-color);
    & a:after{
        background-color: #fff;
    }
}
nav i::before{
    color: var(--main-color);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}
nav.sticky .logo,
nav.sticky ul li a,
nav.sticky i::before{
    color: #000;
}

nav.sticky ul li a{
    height: 5rem;
    line-height: 5rem;
}
nav ul li ul{
    opacity: 0;
    display: block;
    position: absolute;
    transform: translateX(-20px) translateY(-20px);
    transition: 0.3s;
    background-color: rgba(255, 255, 255, 0.153); 
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    height: auto;
    background-clip: content-box;
    padding: 10px 0 20px;
    pointer-events: none;
}
nav.sticky ul li ul{
    background-color: var(--main-color);
}
nav.sticky ul li ul li a,
nav ul li ul li{
    margin: 0;
}
.pc_nav nav.sticky ul li ul li a,
.pc_nav nav ul li ul li a{
    padding: 10px 20px;
    line-height: 40px;
    height: auto;
    cursor: pointer;
}
#hp, #entrepreneurship, #safety, #notebook{
    cursor: pointer;
}
nav ul li:hover a~ul{
    opacity: 1;
    transform:translateX(-20px) translateY(0px);
    pointer-events: all;
}
.pc_nav{
    margin: 0 auto;
    display:flex;
    align-items:center;
    justify-content:center;
    width: 100%;
}
.pc_submenu li a{
    line-height: 3rem;
    height: 3rem;
    padding: 0 1rem;
    font-size: 1.3em;
}
nav.sticky .pc_submenu li a{
    line-height: 3rem;
    height: 3rem;
}
nav.sticky ul li .pc_submenu{
    background-color: var(--main-color);
}
.mobil_nav{
    display: none;
    width: 100%;
    padding: 0 30px;
}
.mobil_nav_container{
    display: none;
}
.nav_list{
    font-size: 2em;
    transition: 0.3s;
    cursor: pointer;
}
@media all and (max-width: 1500px){
    nav ul li a{
        height: 120px;
        line-height: 120px;
    }
    nav.sticky ul li a{
        height: 70px;
        line-height: 70px;
    }
    nav ul li{
        margin:0 10px;
    }
}
@media all and (max-width: 1200px){
    nav{
        justify-content: center;
    }
    nav .logo{
        display: none;
    }

    nav ul li a{
        font-size: 1.3rem;
        height: 6.25rem;
        line-height: 6.25rem;
    }
    nav.sticky ul li a{
        font-size: 1.3rem;
        height: 3.75rem;
        line-height: 3.75rem;
    }
    nav.sticky .nav_list{
        height: 3.75rem;
        line-height: 3.75rem;
        color: #000;
    }
    .pc_submenu li a{
        font-size: 1.1rem;
        line-height: 3rem;
        height: 3rem;
    }
    nav.sticky .pc_submenu li a{
        font-size: 1.1rem;
        line-height: 2.5rem;
        height: 2.5rem;
    }
}
@media all and (max-width: 950px){
    nav ul li a{
        font-size: 1rem;
        height: 5rem;
        line-height: 5rem;
        transition: 0.3s;
    }
    nav.sticky ul li a{
        height: 3.25rem;
        line-height: 3.25rem;
        font-size: 1rem;
    }
    nav .nav_list{
        height: 5rem;
        line-height: 5rem;
    }
    nav ul li{
        margin:0 0.3125rem;
    }
    .pc_submenu li a{
        font-size: 0.8rem;
        line-height: 2.4rem;
        height: 2.4rem;
    }
    nav.sticky .pc_submenu li a{
        font-size: 0.8rem;
        line-height: 2rem;
        height: 2rem;
    }
}
@media all and (max-width: 780px){
    .pc_nav{
        display: none;
    }
    .mobil_nav{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    nav .logo{
        display: block;
        line-height: 5rem;
    }
    nav.sticky .logo{
        color: #000;
        line-height: 3.75rem;
    }
    .mobil_nav_container{
        display: block;
    }
    nav ul li a{
        font-size: 0.8em;
        height: 4rem;
        line-height: 4rem;
        transition: 0.3s;
    }
    nav.sticky ul li a{
        height: 2.8rem;
        line-height: 2.8rem;
        font-size: 0.8em;
    }
    .pc_submenu li a{
        font-size: 0.95em;
    }
}

.bi.bi-list {
  background-color: transparent;
}

.nav_button {
  background-color: transparent;
  border: none;
}
.mobil_nav_container {
  display: block;
  height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  & li span,
  & li a{
    padding-left: 2rem;
  }
  & li i{
    padding-right: 2rem;
  }
}

.mobil_nav_container.open {
  height: auto;
  opacity: 1;
  visibility: visible;
  padding: 0;
}
.mobil_nav_container ul li {
  position: relative;
}

li.submenu {
  font-size: 0.8rem;
  padding: 0;
  width: 100%;
  background-color: transparent;
  position: relative;
  opacity: 1;
  & a {
    padding-left: 4em;
  }
  display: none;
  transform: none;
}

#mobil_project, #mobil_wetlab, #mobil_drylab, #mobil_team{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.5s ease;
}
nav .mobil_nav_container span,
nav .mobil_nav_container a
{
    height: 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--main-color);
    line-height: 2.5rem;
    transition: all 0.3s ease;
}
nav .mobil_nav_container a{
    width: 100%;
}

nav.sticky .mobil_nav_container span,
nav.sticky .mobil_nav_container a{
    height: 2.5rem;
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    line-height: 2.5rem;
}
nav .mobil_nav_container .submenu a{
    font-size:0.8rem;
    height: 2.2rem;
}
i{
    transition: all 0.3s ease;
}
.mobil_nav_container i::before{
    transition: all 0.3s ease;
}
.mobil_nav_container .arrow{
    transition: all 0.3s ease;
    transform: rotateY(0);
}
nav .mobil_nav_container .selected{
    z-index: -10;
    & .arrow{
        transform: rotateX(180deg);
    }
    & .arrow i::before{
        color: #fff;
    }
    & span{
        color: #fff;
    }
    &+li.submenu{
        display: flex;
        z-index: 1000;
        flex-direction: column;
    }
}

.mobil_nav_container a:hover::after{
    width: 0;
}