.header{
  display:flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  color: black;
  box-shadow: 0 4px 10px rgb(0 0 0 / 8%);  
}

.name{
  font-weight: 500;
  font-size: 16px;
}

.left-section{
  margin-left: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  cursor: pointer;
  gap: 8px;
}

.right-section{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

li{
  list-style: none;
  margin-right: 20px;
  font-weight: 500;
  letter-spacing: 2px;
}

li::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  border-bottom: 1px solid black;
  transition: width 0.3s;
}

li:hover::after {
  width: 100%;

}

.dark-mode li::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  border-bottom: 1px solid white;
  transition: width 0.3s;
}

.dark-mode li:hover::after {
  width: 100%;
}

.nav-menu{
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  gap: 30px;
}

.hamburger{
  display: none;
  cursor: pointer;
  margin-right: 10px;
}

.bar{
  display: block;
  width: 25px;
  height: 2px;
  background-color: black;
  margin: 6px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

#logo1,#logo2{
  width: 35px;
}

#dark-mode-icon{
  margin-bottom: 5px;
  font-size: 15px;
}

/* RESPONSIVE DESIGN*/

@media screen and (max-width: 1030px) {

  .hamburger{
    display: block;
  }

  .hamburger.active .bar:nth-child(2){
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1){
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3){
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu{
    position: absolute;
    left: -120%;
    top: 38px;
    gap: 0;
    flex-direction: column;
    background-color: #E8EAE6;
    width: 100%;
    text-align: center;
    transition: 0.3s;
  }

  .dark-mode .nav-menu{
    background-color: #444444;
  }

  .nav-item{
    margin: 16px 0;
  }

  .nav-menu.active{
    left: 0;
    padding: 0;
  }

  .right-section{
    font-size: small;
  }

  .left-section .name{
    font-size: medium;
  }

  .left-section img{
    margin: 10px 0px;
  }

  #logo1,#logo2{
    width: 32px;
  }


}

@media screen and (max-width: 1200px){
  .header{
    font-size: small;
  }
}

a{
  text-decoration: none;
  color: black;
}

a:visited{
  color: black;
  text-decoration: none;
}

