@use "../../assets/stylesheets/abstracts/mixins" as *;

header {
  padding: 44px 0;
  max-width: 1224px;
  display: flex;
  margin: 0 auto;
  justify-content: space-between;
  align-items: center;
  padding-left: 20px;
  padding-right: 20px;
  z-index: 1000;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;

  .navigation {
    display: flex;
    column-gap: 55px;

    a {
      text-transform: uppercase;

      &:first-child {
        margin-left: 0;
      }
    }
  }

  .mobile-menu-btn {
    position: fixed;
    right: 20px;
    z-index: 3;
    width: 23px;
    height: 23px;
    display: none;
    cursor: pointer;

    &:focus {
      outline: 1px solid #fff;
    }

    span {
      background-color: #fff;
      height: 5px;
      position: absolute;
      transition: all ease-in-out 0.8s;
    }

    #top-left {
      width: 5px;
    }
    #top-right {
      width: 15px;
    }
    #center-left {
      width: 5px;
    }
    #center-right {
      width: 9px;
    }
    #bottom-left {
      width: 5px;
    }
    #bottom-right {
      width: 5px;
    }

    #top-left,
    #top-right {
      top: 0;
    }
    #center-left,
    #center-right {
      top: 9px;
    }
    #bottom-left,
    #bottom-right {
      bottom: 0;
    }

    #top-right,
    #center-right,
    #bottom-right,
    #bottom-left {
      right: 0;
    }

    #center-left {
      left: 6px;
    }

    &.open {
      #top-right,
      #center-right {
        width: 5px;
      }

      #center-right,
      #center-left {
        right: 9px;
        left: unset;
      }
      #bottom-left {
        right: 18px;
      }
      #center-left {
        left: 9px;
      }
    }
  }

  .mobile-menu {
    transition: all ease 1s;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 96px 0;
    background: radial-gradient(
        59.78% 25.3% at 50% 50%,
        rgba(225, 104, 154, 0.15) 0%,
        rgba(141, 162, 243, 0.063) 49.1%,
        rgba(23, 23, 23, 0) 100%
      ),
      rgba(13, 13, 13, 0.95);
    box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    z-index: 2;
    display: flex;
    position: fixed;
    height: 100vh;
    width: 295px;
    top: 0;
    right: -295px;
    bottom: 0;

    .navigation {
      display: flex;
      flex-direction: column;
      align-items: center;

      a {
        margin-left: 0;
        margin-bottom: 28px;
      }
    }

    .header-contacts {
      display: flex;
      flex-direction: column;
      align-items: center;

      img {
        margin: 0 auto;
      }
    }

    &.open {
      right: 0;
    }
  }

  @include for-mobile {
    .logo {
      width: 100%;

      img {
        margin: 0 auto;
      }
    }

    nav {
      display: none;
    }

    .mobile-menu-btn {
      display: block;
    }
  }
}
