.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(251, 251, 251, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.3s, transform 0.3s;

  &.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .headerInner {
    max-width: 1200px;
    margin-inline: auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .headerLogo {
    img {
      width: 60%;
      opacity: 0.8;
    }
  }

  .headerNavList {
    display: flex;
    gap: 2rem;

    a {
      font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
      transition: color 0.3s;

      &:hover {
        color: #70c5c7;
      }
    }
  }

  .menuButton {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;

    span {
      display: block;
      width: 100%;
      height: 2px;
      background-color: #333;
      position: absolute;
      transition: all 0.3s;

      &:nth-child(1) {
        top: 0;
      }
      &:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
      }
      &:nth-child(3) {
        bottom: 0;
      }
    }

    &.active {
      span {
        &:nth-child(1) {
          transform: rotate(45deg);
          top: 11px;
        }
        &:nth-child(2) {
          opacity: 0;
        }
        &:nth-child(3) {
          transform: rotate(-45deg);
          bottom: 11px;
        }
      }
    }
  }
}

@media (width < 768px) {
  .header {
    .headerNav {
      display: none;
    }

    .menuButton {
      display: block;
    }
  }
}
