.navigation {
  background-color: #161616;
}

.navigation__flex {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
  padding: 1.25rem 5rem;
}

.navigation__flex__item {
  position: relative;
  cursor: pointer;
}

.navigation__flex__item:first-child {
  margin-right: auto;
  text-transform: uppercase;
}

.navigation__flex__item:nth-child(8) {
  margin-left: auto;
}

.navigation__flex__item h1 {
  font-weight: normal;
  font-size: 1.2rem;
}

.navigation__flex__item a {
  text-decoration: none;
  color: #d9d9d9;
}

.navigation__flex__item:not(:first-child):before {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  height: 1px;
  width: 100%;
  transform: scaleX(0);
  background-color: #d9d9d9;
  transform-origin: right;
  transition: transform 400ms ease-out;
}

.navigation__flex__item:not(:first-child):hover::before {
  transform: scaleX(100%);
  transform-origin: left;
}

@media (max-width: 1100px) {
  .navigation__flex__item:not(:first-child, :nth-child(8), :nth-child(9)) {
    display: none;
  }
}
