.header-container {
  background-color: var(--header-background);
  display: flex;
  justify-content: space-between;
  padding-inline: var(--inline-spacing);
  padding-block: 40px 15px;
  position: sticky;
  top: 0;
  z-index: 99;
}

.header-logo {
  flex-shrink: 0;

  & img {
    width: 180px;
  }
}

.header-right {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 30px;
}

.header-navigation {
  display: flex;
  align-items: center;
  font-weight: 200;
  font-size: 18px;

  & ul {
    display: flex;
    gap: 10px 45px;
    list-style: none;
  }

  & li:hover {
    font-weight: 600;
  }

  & li a {
    color: #fff;
  }
}

.header-navigation li.active {
  font-weight: 600;
}

.header-contact {
  display: flex;
  align-items: center;
  font-weight: 200;
  font-size: 18px;

  & ul {
    display: flex;
    gap: 10px 25px;
    list-style: none;
  }

  & li a {
    color: #fff;
  }

  & .phone {
    font-size: 16px;

    & a {
      font-weight: 300;
      display: flex;
      gap: 2px;
    }

    & img {
      width: 20px;
    }
  }

  & .linkedin img {
    width: 25px;
  }
}

@media (max-width: 1200px) {
  .header-navigation {
    & ul {
      justify-content: flex-end;
      gap: 10px 25px;
    }

    & .phone {
      padding-left: 20px;
    }
  }
}

/* Hamburger default hidden on desktop */
.hamburger {
  display: none;
  width: 40px;
  height: 32px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  transition: 0.3s;
}

/* Mobile view */

@media (max-width: 768px) {
  .header-container {
    flex-direction: column-reverse;
  }

  .header-logo {
    display: flex;
    justify-content: center;
    padding-top: 30px;
  }

  .header-right {
    flex-direction: row-reverse;
    justify-content: space-between;
  }

  .header-contact {
    & ul {
      padding-left: 0;
      flex-direction: row-reverse;
    }

    & .phone {
      font-size: 12px;

      & img {
        width: 16px;
      }
    }

    & .linkedin img {
      width: 20px;
    }
  }

  .hamburger {
    display: flex;
    position: relative;
    z-index: 999;
  }

  .header-navigation {
    position: fixed;
    top: 0px;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--primary-color);
    padding-top: 100px;
    transition: 0.3s ease;
    z-index: 998;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    overflow: auto;
    padding-bottom: 30px;
  }

  .header-navigation.open {
    right: 0;
  }

  .header-navigation ul {
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
  }

  .header-navigation ul li {
    overflow: hidden;

    & a {
      font-size: 60px;
      display: flex;
      text-align: right;
      justify-content: flex-end;
      align-items: center;
      gap: 15px;
    }

    & .nav-arrow {
      position: relative;
      top: 5px;
      width: 105px;
      flex-shrink: 0;
      margin-right: -105px;
      transition: 0.5s all;
    }

    &:hover {
      font-weight: 200;
    }

    &.active {
      font-weight: 200;

      & .nav-arrow {
        margin-right: 0;
      }
    }
  }

  .hamburger span {
    transform-origin: center;
  }

  /* Active state */
  .hamburger.active span:nth-child(1) {
    transform: translateY(15px) rotate(45deg);
  }

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

  .hamburger.active span:nth-child(3) {
    transform: translateY(-15px) rotate(-45deg);
  }
}

@media (max-width: 400px) {
  .header-navigation ul li {
    & a {
      font-size: 54px;
    }

    & .nav-arrow {
      width: 90px;
      margin-right: -90px;
    }
  }
}
