.navigation {
  top: 0;
  left: 0;
  width: 100%;
  height: 8rem;
  position: fixed;
  padding: 0 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);

  .toggle-menu {
    display: none;
  }

  .list-items {
    width: 100%;
    max-width: 1370px;
    gap: 3rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;

    .item {
      list-style: none;

      .link {
        font-weight: 600;
        font-size: 2rem;
        text-decoration: none;
        color: var(--text-color);
        padding: 0.8rem 1.6rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        position: relative;

        &:hover {
          color: var(--primary-color);
          background-color: var(--hover-background);
        }

        &:focus {
          outline: 2px solid var(--focus-color);
          outline-offset: 2px;
        }

        &:active {
          transform: translateY(1px);
        }
      }
    }
  }
}

@media (max-width: 1074px) {
  .navigation {
    display: flex;
    background-color: transparent;

    .list-items {
      transform: translateY(-102vh);
      transition: 1s;
      display: flex;
      position: fixed;
      top: 0;
      right: 0;
      flex-direction: column;
      width: 100%;
      height: 100vh;
      background-color: white;
      justify-content: center;
      gap: 6rem;
      z-index: 4;

      &.active {
        transition: 1s;
        transform: translateY(0px);
      }

      &.disabled {
        transform: translateY(-102vh);
        transition: 1s;
      }

      .item {
        .link {
          font-size: 4rem;
          font-weight: bold;
        }
      }
    }

    .toggle-menu {
      background: var(--dark-color);
      width: 6rem;
      height: 6rem;
      display: flex;
      gap: 8px;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      border-radius: 12px;
      border: none;
      position: fixed;
      right: 4rem;
      top: 4rem;
      z-index: 5;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 6px rgba(31, 41, 55, 0.1);

      &:hover {
        background: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(31, 41, 55, 0.2);
      }

      &:focus {
        outline: 2px solid var(--focus-color);
        outline-offset: 2px;
      }

      .bar {
        display: block;
        width: 4rem;
        height: 4px;
        background-color: var(--white-color);
        transition: all 0.3s ease;
        border-radius: 2px;
      }

      &.active {
        .bar:nth-child(1) {
          transform: rotate(-45deg) translate(-8px, 8px);
        }
      }

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

      &.active {
        .bar:nth-child(3) {
          transform: rotate(45deg) translate(-8px, -8px);
        }
      }
    }
  }
}
