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

.header.scrolled {
  background-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-sm) 0;
}

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

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

.logo h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

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

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

.nav-link {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-sm);
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.nav-link:hover::after {
  width: 70%;
}

.nav-button {
  background-color: #fff;
  color: var(--primary-color);
  font-size: 1.6rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-md);
  margin-left: var(--spacing-sm);
  transition: all 0.3s ease;
}

.nav-button:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  width: 2.4rem;
  height: 2rem;
  justify-content: space-between;
  cursor: pointer;
}

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

@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
    z-index: 1001;
  }
  
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 40rem;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    background-color: var(--primary-color);
    padding: 8rem var(--spacing-md) var(--spacing-md);
    transition: all 0.5s ease;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
  }
  
  .nav-list.active {
    right: 0;
  }
  
  .nav-list li {
    width: 100%;
    margin: var(--spacing-xs) 0;
  }
  
  .nav-link {
    display: block;
    width: 100%;
    padding: var(--spacing-sm) 0;
  }
  
  .nav-button {
    margin: var(--spacing-md) 0 0;
    width: 100%;
    text-align: center;
  }
  
  .menu-toggle.active span:first-child {
    transform: translateY(9px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:last-child {
    transform: translateY(-9px) rotate(-45deg);
  }
}