.navbar {
  display: flex;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  color: var(text-color);
  padding: 10px 20px;
  flex-wrap: wrap;
  border-bottom: var(--border-section);
  background-color: var(--background-color);
}

.navbar .icon img {
  height: 40px;
  width: 40px;
  /* filter: invert(100%); */
}

.navbar .icon {
  font-size: 20px;
  color: #fff;
  text-align: start;
  display: flex;
  align-items: center;
}

.navbar .icon h3 {
  margin-left: 10px;
  vertical-align: middle;
  color: #fff;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 2rem;
}

.navbar .buttons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.navbar .buttons a {
  background: none;
  text-decoration: none;
  font-family: var(--font-secondary);
  border: none;
  color: #fff;
  margin-right: 2rem;
  padding: 10px;
  cursor: pointer;
  font-size: 1.05rem;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.navbar .buttons a:hover {
  color: var(--secondary-color);
  border-bottom: 3px solid var(--secondary-color);
  border-radius: 5px;
  background-color: var(--primary-color);
  font-weight: 500;
}
.navbar .buttons a:hover:last-child {
  border-bottom: transparent;
  border-radius: 0 !important;
  background-color: transparent;
  font-weight: 500;
}

.navbar .buttons a.active {
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
  border-radius: 5px;
  font-weight: 600;
}

.navbar .buttons a.active:hover {
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
  border-radius: 5px;
  background-color: var(--background-color);
  font-weight: 600;
  cursor: default;
}

.navbar .buttons .profile-icon {
  margin-right: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.navbar .buttons .profile-icon img {
  height: 40px;       
  width: 40px;        
  object-fit: cover;  
  border-radius: 5px;
  transition: all 0.3s ease;
}
.navbar .buttons .profile-icon img:hover {
  border-radius: 50px;
  outline: 3px solid var(--primary-color);
}
.navbar .buttons .profile-icon:hover {
  margin-right: 0;
  border-radius: 50%;
}

.menu-hamburger {
  display: none;
  align-self: center;
  cursor: pointer;
  height: 40px;
  width: 40px;
  transition: all 0.3s ease;
}
.menu-hamburger:hover {
  transform: scale(120%);
  filter: invert(40%);
}


@media (max-width: 950px) {
  .navbar {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
  }
  .navbar .buttons {
    display: none;
  }
  .menu-hamburger {
    display: flex;
  }
}


@media (max-width: 600px) {
  .navbar .icon h3 {
    margin-left: 10px;  
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1.5rem;
  }
  .navbar .icon img {
    height: 30px;
    width: 30px;
  }
}