.header-hamburger {
  display: none;
  position: relative;
}
.header-hamburger .line {
  width: 28px;
  height: 3px;
  background-color: var(--primary-color);
  display: block;
  margin: 6px auto;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}
.openMenuMobile .header-hamburger .line:nth-child(1) {
  transform: translateY(13px) rotate(45deg);
}
.openMenuMobile .header-hamburger .line:nth-child(2) {
  opacity: 0;
}
.openMenuMobile .header-hamburger .line:nth-child(3) {
  transform: translateY(-13px) rotate(-45deg);
}
.header-hamburger .line:nth-child(1) {
  margin-top: 0px;
}
.header-hamburger .line:nth-child(3) {
  margin-bottom: 0px;
}

.openMenuMobile header .header-bottom {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.header-hamburger .pulse-line {
  transform-origin: center center;
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 40px;
}

.header-hamburger .pulse-line .bar {
  box-shadow:
    0 0 0 var(--primary-color),
    0 0 1px var(--primary-color),
    0 0 1px var(--primary-color),
    0 0 4px var(--primary-color);
  position: absolute;
  background-color: var(--primary-color);
  animation-fill-mode: both;
}

.header-hamburger .pulse-line .left-1 {
  animation: leftBar 2s linear infinite;
  width: 1px;
}
.header-hamburger .pulse-line .top-1 {
  animation: topBar 2s linear infinite;
  height: 1px;
  width: 0;
}
.header-hamburger .pulse-line .right-1 {
  animation: rightBar 2s linear infinite;
  width: 1px;
}
.header-hamburger .pulse-line .bottom-1 {
  animation: bottomBar 2s linear infinite;
  height: 1px;
}

@keyframes leftBar {
  0% {
    height: 0;
    left: 0;
    top: 100%;
  }
  20% {
    height: 100%;
    left: 0;
    top: 0;
  }
  40% {
    height: 0;
    left: 0;
    top: 0;
  }
}

@keyframes topBar {
  0%,
  20% {
    left: 0;
    top: 0;
    width: 0;
  }
  40% {
    left: 0;
    top: 0;
    width: 100%;
  }
  60% {
    left: calc(100% - 1px);
    top: 0;
    width: 0;
  }
}
@keyframes rightBar {
  0%,
  40% {
    height: 0;
    left: calc(100% - 1px);
    top: 0;
  }
  60% {
    height: 100%;
    left: calc(100% - 1px);
    top: 0;
  }
  80% {
    height: 0;
    left: calc(100% - 1px);
    top: 100%;
  }
}

@keyframes bottomBar {
  0%,
  60% {
    left: 100%;
    top: 100%;
    width: 0;
  }
  80% {
    left: 0;
    top: 100%;
    width: 100%;
  }
  100% {
    left: 0;
    top: 100%;
    width: 0;
  }
}

@media (max-width: 1024px) {
  .header-hamburger {
    display: block;
    z-index: 10000;
  }
}
