.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-color);
  z-index: 1000;

  transition: transform 0.3s ease;
  will-change: transform;
}

.header--hidden {
  transform: translateY(-100%);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__left {
  display: flex;
  align-items: center;
}

.header__logo img {
  width: 120px;
  height: 100px;
}

.header__list {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 0.7rem;
  margin: 0;

  font-size: var(--font-size-lg);
}

.header__list a:hover {
  text-decoration: none;
}

.divider {
  width: 2.2px;
  height: 40px;
  background-color: #444;
}

.header__right button {
  border: 1px solid var(--secondary-color);
  border-radius: 10px;
  padding: 0.7rem 2rem;
  color: var(--text-color);
  cursor: pointer;

  font-size: 1.5rem;

  transition: all 0.3s ease-in-out;

  font-weight: 500;
}

.header__login-btn {
  background-color: transparent;
}

.header__sign-btn {
  margin-left: 0.5rem;
  background-color: var(--secondary-color);
}

.header__right button:hover {
  background-color: var(--link-hover-color);
  border: 1px solid var(--link-hover-color);
  box-shadow: 0 0 10px var(--link-hover-color);
}

.header__burger-btn {
  display: none;
}

@media (max-width: 1350px) {
  .header__logo img {
    width: 90px;
    height: 80px;
  }

  .header__list {
    gap: 0.3rem;
    padding-left: 0.5rem;
  }

  .header__list li {
    font-size: var(--font-size-base);
  }

  .header__right button {
    font-size: var(--font-size-base);
    padding: 0.5rem 1.3rem;
  }

  .header__sign-btn {
    margin-left: 0.2rem;
  }
}

@media (max-width: 1010px) {
  .divider {
    display: none;
  }

  .header__burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 2rem;
    height: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
  }

  .header__burger-btn span {
    display: block;
    height: 0.2rem;
    width: 100%;
    background-color: #fff;
    border-radius: 0.2rem;
    transition: all 0.3s ease;
  }

  .header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--content-color);
    flex-direction: column;
    padding: 1rem 0;
    display: none;
    box-shadow: 0 10rem 1rem rgba(0, 0, 0, 0.2);
    z-index: 999;
  }

  .header__list {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .header__nav.active {
    display: flex;
    animation: fadeSlideIn 0.3s ease forwards;
  }

  @keyframes fadeSlideIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .header__burger-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
  }

  .header__burger-btn.open span:nth-child(2) {
    opacity: 0;
  }

  .header__burger-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .header__burger-btn span {
    transition: all 0.3s ease;
  }
}

@media (max-width: 460px) {
  .header__logo img {
    width: 80px;
    height: 70px;
  }

  .header__nav a {
    font-size: var(--font-size-base);
    text-decoration: none;
  }

  .header__right {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
  }

  .header__right button {
    font-size: var(--font-size-sm);
    padding: 0.3rem 0.4rem;
  }

  .header__burger-btn span {
    width: 1.6rem;
  }
}
