/* Main Navigation */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, rgba(15, 15, 22, 0.95) 100%);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--border-color);
  padding: var(--spacing-sm) 0;
  transition: all var(--transition-base);
  box-shadow: 0 4px 20px rgba(0, 229, 204, 0.15), 0 0 60px rgba(0, 229, 204, 0.05);
}

.main-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 229, 204, 0.03) 50%, 
    transparent 100%);
  pointer-events: none;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
}

@media (max-width: 768px) {
  .nav-container {
    min-height: 90px; /* Ensure enough height for wrapped nav */
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all var(--transition-base);
  height: 50px;
}

.nav-logo img {
  height: 100%;
  width: auto;
  transition: all var(--transition-base);
  filter: drop-shadow(0 0 10px rgba(0, 229, 204, 0.5));
}

.nav-logo:hover {
  background: rgba(0, 229, 204, 0.05);
}

.nav-logo:hover img {
  filter: drop-shadow(0 0 20px rgba(0, 229, 204, 0.8));
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
  align-items: center;
  position: relative;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links li {
  position: relative;
}

.nav-link {
  padding: 0.75rem 1.25rem;
  color: var(--text-muted);
  font-weight: 600;
  transition: all var(--transition-base);
  position: relative;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  border-radius: 8px;
  background: transparent;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-cyan);
  background: rgba(0, 229, 204, 0.1);
  text-shadow: 0 0 10px rgba(0, 229, 204, 0.3);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
  transition: width var(--transition-base);
  box-shadow: 0 0 10px var(--primary-cyan);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* Page Indicators */
.page-indicators {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(0, 229, 204, 0.05);
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all var(--transition-base);
  cursor: pointer;
  box-shadow: 0 0 0 rgba(0, 229, 204, 0);
}

.indicator:hover {
  background: var(--primary-cyan);
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(0, 229, 204, 0.5);
}

.indicator.active {
  background: var(--primary-cyan);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(0, 229, 204, 0.6);
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  margin-top: 0.5rem;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 1000;
  pointer-events: none;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

.dropdown-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
  text-transform: none;
  letter-spacing: 0;
}

.dropdown-menu a:hover {
  background: rgba(0, 229, 204, 0.1);
  color: var(--primary-cyan);
  padding-left: 1.5rem;
}

.dropdown-menu a::after {
  display: none;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .main-nav {
    height: auto;
    min-height: 100px;
  }

  .nav-container {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem var(--spacing-sm);
    min-height: 100px;
  }

  .nav-logo {
    height: 40px;
  }

  .nav-logo img {
    height: 35px;
  }

  .nav-links {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    order: 3;
    width: 100%;
    margin-top: 0.5rem;
  }

  .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
  }

  .nav-dropdown .dropdown-menu {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(-10px);
  }

  .nav-dropdown:hover .dropdown-menu {
    transform: translateX(0) translateY(0);
  }

  .page-indicators {
    gap: 0.25rem;
    order: 2;
    padding: 0.4rem 0.75rem;
  }

  .indicator {
    width: 6px;
    height: 6px;
  }

  .indicator.active {
    width: 16px;
  }
}

@media (max-width: 480px) {
  .nav-link {
    padding: 0.4rem 0.6rem;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
  }

  .page-indicators {
    padding: 0.3rem 0.5rem;
    gap: 0.2rem;
  }

  .indicator {
    width: 5px;
    height: 5px;
  }

  .indicator.active {
    width: 14px;
  }
}

