/* Header specific styles */
.nav-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.5rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: #9CA3AF;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.nav-link:hover {
  color: #fff;
}

.nav-link.active {
  color: #fff;
}

/* Dropdown styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1C1F2E;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 0.5rem;
  min-width: 200px;
  z-index: 1000;
}

.nav-item.dropdown.active .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: #9CA3AF;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s;
  border-radius: 0.25rem;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.down-arrow {
  border: solid #9CA3AF;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 2px;
  transform: rotate(45deg);
  margin-top: -2px;
  transition: border-color 0.2s;
}

.nav-link:hover .down-arrow {
  border-color: #fff;
}

/* Hamburger menu styles */
.hamburger {
  display: none;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0.5rem;
  margin-left: auto;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #fff;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Mobile and tablet styles */
@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0.5rem 2rem;
  }

  .l {
    flex: 1;
    max-width: calc(100% - 60px);
  }

  .l span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hamburger {
    display: block;
    position: relative;
    right: 0;
    top: auto;
    transform: none;
    padding-left: 1rem;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(14,15,30,.98);
    backdrop-filter: blur(10px);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-link {
    width: 100%;
    padding: 1rem 1.5rem;
    justify-content: space-between;
    font-size: 1.1rem;
  }

  .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    background: rgba(28, 31, 46, 0.5);
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    transition: max-height 0.3s ease-in-out;
    max-height: none;
  }

  .nav-item.dropdown.active .dropdown-menu {
    display: block;
    max-height: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .dropdown-item {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .dropdown-item:last-child {
    border-bottom: none;
  }

  .down-arrow {
    width: 10px;
    height: 10px;
    border-width: 0 2px 2px 0;
    transition: transform 0.3s ease;
  }

  .nav-item.dropdown.active .down-arrow {
    transform: rotate(-135deg);
    margin-top: 2px;
  }

  /* Hamburger animation */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

/* Small mobile styles */
@media (max-width: 480px) {
  .nav-container {
    padding: 0.5rem 1rem;
  }

  .nav-link {
    font-size: 0.875rem;
  }
}