/* Enhanced Navigation Styles */
nav {
  background: var(--glass-bg);
  box-shadow: 0 20px 35px -22px rgba(15, 23, 42, 0.45);
  border: 1px solid var(--soft-border);
  backdrop-filter: blur(14px);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
}

.brand {
  font-size: 1.5rem;
  font-weight: bold;
}

.brand a {
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.brand img {
  height: 40px;
  margin-left: 10px;
}

#menu {
  display: flex;
  list-style: none;
  margin: 5px;
  padding: 5px;
  align-items: center;
}

#menu.active {
  right: 0;
}

#menu li {
  margin-right: 15px;
  position: relative;
}

#menu li a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 10px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

#menu li a:hover {
  color: var(--accent-blue);
  background-color: rgba(59, 130, 246, 0.1);
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: var(--card-bg);
  min-width: 200px;
  box-shadow: var(--shadow-soft);
  border-radius: 20px;
  border: 1px solid var(--soft-border);
  padding: 10px 0;
  z-index: 1;
}

.dropdown-content a {
  color: var(--text-main);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  transition: background-color 0.3s;
}

.dropdown-content a:hover {
  background-color: var(--hover-surface);
  color: var(--accent-blue);
}

.dropdown:hover .dropdown-content {
  display: block;
}

a.active {
  color: var(--accent-blue);
  border-bottom: 2px solid var(--accent-blue);
}

.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--soft-border);
  background: var(--card-bg);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 20px -15px rgba(15, 23, 42, 0.8);
}

.theme-toggle-btn:hover {
  transform: translateY(-2px);
  color: var(--accent-blue);
}

.theme-toggle-btn .fa-sun {
  display: none;
}

.dark-theme .theme-toggle-btn .fa-sun {
  display: inline-block;
}

.dark-theme .theme-toggle-btn .fa-moon {
  display: none;
}

.dark-theme nav {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.25);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.7);
}

.dark-theme #menu li a,
.dark-theme .dropdown-content a {
  color: #e2e8f0;
}

.dark-theme #menu li a:hover,
.dark-theme .dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #bfdbfe;
}

.dark-theme #menu li a i,
.dark-theme .dropdown-content a i {
  color: #60a5fa;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background-color: var(--text-main);
  margin-bottom: 4px;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 992px) {
  .menu-toggle {
    display: flex;
  }

  #menu {
    position: fixed;
    top: 70px;
    right: -300px;
    flex-direction: column;
    background-color: var(--card-bg);
    width: 300px;
    height: calc(100vh - 70px);
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.2);
    padding: 20px;
    transition: right 0.3s ease;
    align-items: flex-start;
    overflow-y: auto;
  }

  #menu.active {
    right: 0;
  }

  #menu li {
    margin: 10px 0;
    width: 100%;
  }

  .theme-toggle-item {
    width: 100%;
    margin-top: 8px;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    display: none;
    padding: 0;
    margin-top: 10px;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }
}