/* Modern Navbar Styling */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Using var(--dark-bg) to match footer exactly as requested */
  background: var(--dark-bg);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: padding 0.3s ease;
}

.navbar-logo a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.8em;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 50px !important;
  /* Override inline styles if needed via CSS specificity or modification later */
  width: auto !important;
  transition: transform 0.3s ease;
}

.navbar-logo a:hover img {
  transform: rotate(5deg) scale(1.1);
}

/* Desktop Menu Links */
.navbar-links {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
  padding: 0;
}

.navbar-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 1.05em;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.navbar-links a:hover {
  color: var(--primary-color);
}

.navbar-links a:hover::after {
  width: 100%;
}

/* Mobile Toggle (Hamburger) */
.navbar-toggle {
  display: none;
  font-size: 1.8em;
  color: var(--white);
  background: none;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  padding: 5px 10px;
  transition: all 0.3s ease;
}

.navbar-toggle:hover {
  color: var(--primary-color);
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 5%;
  }

  .navbar-links {
    display: none;
    flex-direction: column;
    gap: 15px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-bg);
    /* backdrop-filter: blur(15px); - Removed for consistent solid color */
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* .active class is toggled by JS currently */
  .navbar-links.active {
    display: flex;
    animation: slideDown 0.3s ease forwards;
  }

  .navbar-toggle {
    display: block;
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}