/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--space-md) var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.scrolled {
  background-color: var(--secondary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.logo h2 {
  font-size: var(--font-xl);
  font-weight: 700;
  margin: 0;
  letter-spacing: 1px;
  color: var(--text-color);
}

.logo h2 span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links li {
  margin-left: var(--space-xl);
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

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

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

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px;
  transition: all 0.3s ease;
}

/* Mobile nav styles */
@media screen and (max-width: 768px) {
  .nav-links {
    position: absolute;
    right: 0;
    height: 100vh;
    top: 0;
    background-color: var(--background-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 70%;
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
    z-index: 10;
    padding: var(--space-xl) 0;
  }

  .nav-links li {
    opacity: 0;
    margin: 0;
  }

  .burger {
    display: block;
    z-index: 20;
  }
  
  .nav-active {
    transform: translateX(0%);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  }
  
  .toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
    background-color: var(--primary-color);
  }
  
  .toggle .line2 {
    opacity: 0;
  }
  
  .toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
    background-color: var(--primary-color);
  }
}

@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}