.header {
  background: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav {
  display: flex; /* Make nav a flex container */
  align-items: center;
  justify-content: flex-end; /* Push nav items to the right */
}

.nav-list {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
  align-items: center;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--font-size-sm);
  transition: color 0.3s ease;
  padding: var(--spacing-xs) 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

/* Burger Icon Styles (Initially Hidden on larger screens) */
.burger-icon {
  display: none; /* Hidden by default on larger screens */
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger-line {
  width: 100%;
  height: 0.25rem;
  background-color: var(--text-primary);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

/* Media Query for Small Screens (e.g., Tablets and Phones) */
@media (max-width: 768px) {
  .nav {
    position: relative; /* Needed for absolute positioning of nav-list */
    flex-direction: row-reverse; /* Flip order to place burger icon on the left */
    justify-content: space-between; /* Ensure burger and actions are spaced out */
    width: 100%; /* Take full width in header */
  }

  .nav-list {
    display: none; /* Initially hide nav list on small screens */
    position: absolute; /* Position the nav list below the header */
    top: 100%; /* Position right below the header */
    left: 0;
    background-color: var(--bg-primary);
    flex-direction: column; /* Stack links vertically */
    width: 100%;
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
  }

  .nav-list li {
    margin-bottom: var(--spacing-md); /* Add spacing between stacked links */
  }

  .nav-link {
    display: block; /* Make nav links full width in mobile menu */
    padding: var(--spacing-sm) 0; /* Add padding to mobile nav links */
    border-bottom: 1px solid var(--border-color); /* Separator for mobile nav links */
  }
  .nav-link:last-child {
    border-bottom: none; /* Remove border from last link */
  }

  .nav-list.nav-active {
    display: flex; /* Show nav list when 'nav-active' class is present */
  }

  .burger-icon {
    display: flex; /* Show burger icon on small screens */
  }

  .header-actions {
    display: none; /* Hide the "Get in Touch" button on mobile */
    /* You could also target just the button if you might have other actions later:
         .header-actions .btn { display: none; }
      */
  }
}
