/* Header styles */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;

  .headerContainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1800px;
    margin: 0 auto;
    padding: 1.5rem 2rem;

    @media (max-width: 768px) {
      padding: 1rem 1.5rem;
    }
  }

  .headerLogo {
    h1 {
      font-size: 2.4rem;
      font-weight: 700;
      color: #333;
      transition: color 0.3s ease;

      @media (max-width: 768px) {
        font-size: 2rem;
      }
    }
  }

  .headerNav {
    ul {
      display: flex;
      gap: 2rem;

      @media (max-width: 1024px) {
        gap: 1.5rem;
      }

      @media (max-width: 768px) {
        display: none;
      }
    }

    li {
      a {
        font-size: 1.6rem;
        font-weight: 500;
        color: #333;
        transition: color 0.3s ease;
        position: relative;

        &::after {
          content: '';
          position: absolute;
          bottom: -5px;
          left: 0;
          width: 0;
          height: 2px;
          background-color: #333;
          transition: width 0.3s ease;
        }

        &:hover {
          color: #000;

          &::after {
            width: 100%;
          }
        }
      }
    }
  }

  .hamburgerMenu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;

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

    @media (max-width: 768px) {
      display: flex;
    }
  }

  /* Header scroll state */
  &.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);

    .headerLogo h1 {
      color: #000;
    }
  }

  /* Mobile navigation */
  &.mobileNavActive {
    .hamburgerMenu {
      span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
      }

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

      span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
      }
    }

    .headerNav {
      display: block;
      position: fixed;
      top: 60px;
      left: 0;
      width: 100%;
      height: calc(100vh - 60px);
      background-color: rgba(255, 255, 255, 0.98);
      padding: 2rem;
      z-index: 999;
      
      ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
      }

      li {
        a {
          font-size: 1.8rem;
        }
      }
    }
  }
}