/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: var(--transition-normal);
  padding: var(--spacing-md) 0;
}

.header.scrolled {
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  width: 40px;
  height: 40px;
  margin-right: var(--spacing-sm);
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  transition: var(--transition-normal);
}

.logo h1 span {
  color: var(--accent-color);
}

.header.scrolled .logo h1 {
  color: var(--primary-color);
}

.nav-list {
  display: flex;
  align-items: center;
}

.nav-item {
  margin: 0 var(--spacing-md);
}

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  padding: var(--spacing-sm) 0;
  position: relative;
}

.header.scrolled .nav-link {
  color: var(--dark-gray);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: var(--transition-normal);
  background-color: var(--white);
}

.header.scrolled .bar {
  background-color: var(--primary-color);
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    z-index: 101;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-xl);
    z-index: 100;
  }
  
  .nav.active {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    text-align: center;
  }
  
  .nav-item {
    margin: var(--spacing-md) 0;
  }
  
  .nav-link {
    color: var(--primary-color) !important;
    font-size: 1.2rem;
  }
}