.navigation {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 80px;
  z-index: 99;
  animation: slideDown 0.5s ease-out 0.1s both;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--accent-primary);
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0.5rem;
  margin-right: 1rem;
}

.nav-items {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) var(--bg-tertiary);
}

.nav-items::-webkit-scrollbar {
  height: 4px;
}

.nav-items::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
}

.nav-items::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
}

.nav-item::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transition: width 0.3s ease;
}

.nav-item:hover {
  color: var(--accent-primary);
}

.nav-item:hover::before {
  width: 100%;
}

.nav-item.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.nav-icon {
  font-size: 1.2rem;
  display: inline-block;
  animation: bounce 0.6s ease-out;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.nav-label {
  display: inline-block;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-items {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-items.open {
    max-height: 600px;
    animation: slideDown 0.3s ease-out;
  }

  .nav-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    border-right: 3px solid transparent;
    width: 100%;
  }

  .nav-item::before {
    display: none;
  }

  .nav-item:hover {
    background-color: var(--bg-tertiary);
    border-right-color: var(--accent-primary);
  }

  .nav-item.active {
    border-right-color: var(--accent-primary);
    background-color: var(--accent-light);
  }

  .nav-label {
    display: inline;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 1rem;
  }

  .nav-item {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .nav-icon {
    font-size: 1rem;
  }
}
