/* Advanced Header Styles */

/* Enhanced Header */
header {
  background-color: transparent;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: all 0.4s ease;
  border-bottom: none;
}

header.scrolled {
  background-color: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 5%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.logo a {
  text-decoration: none;
  color: var(--light-color);
}

.logo h1 {
  font-size: 1.8rem;
  margin-bottom: 0;
  letter-spacing: 1px;
  position: relative;
}

.logo h1::after {
  content: '';
  position: absolute;
  width: 30%;
  height: 4px;
  background: var(--primary-gradient);
  bottom: -4px;
  left: 0;
  border-radius: 2px;
}

/* Enhanced Nav Links */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  color: var(--light-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
  padding: 0.5rem 0;
}

nav ul li a:hover {
  color: var(--primary-color);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: width 0.3s cubic-bezier(0.65, 0, 0.35, 1);
  border-radius: 1px;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

/* Enhanced Mobile Menu */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--light-color);
  transition: all 0.3s;
}

.menu-toggle:hover {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--medium-dark-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  nav ul li {
    margin: 1.5rem 0;
    text-align: center;
    width: 100%;
  }

  nav ul li a {
    font-size: 1.2rem;
    display: block;
    padding: 0.5rem 0;
  }

  nav ul li a::after {
    bottom: -5px;
    height: 3px;
  }
}
