.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: all 0.3s ease;

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

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

  .logoLink {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .logoImage {
    width: 50px;
    height: 50px;
  }

  .logoText {
    .logoSubtitle {
      font-size: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
      color: #333;
    }

    h1 {
      font-size: clamp(1.2rem, 1rem + 1vw, 2rem);
      color: #f2961d;
      line-height: 1.2;
    }
  }

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

    a {
      color: #333;
      font-weight: 500;
      transition: color 0.3s ease;

      &:hover {
        color: #f2961d;
      }
    }
  }

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

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

      &: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: 50%; }
        &:nth-child(2) { opacity: 0; }
        &:nth-child(3) { transform: rotate(-45deg); top: 50%; }
      }
    }
  }
}

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

    .menuButton {
      display: block;
    }
  }
}

.mobileMenu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(251, 251, 251, 0.98);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;

  &.active {
    display: flex;
    opacity: 1;
  }

  nav {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    ul {
      text-align: center;

      li {
        margin: 2rem 0;

        a {
          font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
          color: #333;
          font-weight: 500;
          transition: color 0.3s ease;

          &:hover {
            color: #f2961d;
          }
        }
      }
    }
  }
}