header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(13, 13, 13, 0.918);
  border-bottom: 1px solid var(--color-border);


}

.navbar {
  position: relative;
  padding: 4px 20px;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;

}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}

.hamburger {
  display: flex;
  position: absolute;
  right: 20px;
  z-index: 1000;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: white;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-links {
  position: fixed;
  top: 120px;
  right: 0;
  width: 200px;
  list-style: none;
  background: rgba(13, 13, 13, 0.644);

  transform: translateX(100%);
  transition: transform 0.4s ease;
}

.nav-links.active {
  transform: translateX(0);
}




.nav-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;


  color: var(--color-text);

  margin: 20px 15px;
  position: relative;
  display: flex;
}

.nav-links a:before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: #16151b;
  top: 47%;
  animation: out 0.2s cubic-bezier(1, 0, 0.58, 0.97) 1 both;
}

.nav-links a:hover:before {
  animation: in 0.2s cubic-bezier(1, 0, 0.58, 0.97) 1 both;

}

@keyframes in {
  0% {
    width: 0;
    left: 0;
    right: auto;
  }

  100% {
    left: 0;
    right: auto;
    width: 100%;
  }
}

@keyframes out {
  0% {
    width: 100%;
    left: auto;
    right: 0;
  }

  100% {
    width: 0;
    left: auto;
    right: 0;
  }
}


@media (min-width: 768px) {
  .hamburger {
    display: none;
  }


  .nav-links {
    position: static;
    display: flex;
    transform: none;
    flex-direction: row;
    width: auto;
  }

}