/* =========================
   Header & Navigation Styles
   ========================= */

.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  color: var(--accent-color);
  transform: translateY(-1px);
}

.navbar-brand img {
  max-width: 120px !important;
  height: auto !important;
  border-radius: 6px;
  transition: all 0.3s ease;
  width: auto;
  display: block;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-brand span {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav {
  gap: 1rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-color);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
  background: rgba(0, 123, 255, 0.1);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--primary-color);
  background: rgba(0, 123, 255, 0.1);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 1px;
}

.dropdown-toggle {
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.dropdown-toggle:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

.dropdown-menu {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 0.5rem;
  margin-top: 0.5rem;
}

.dropdown-item {
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: rgba(0, 123, 255, 0.1);
  color: var(--primary-color);
  transform: translateX(5px);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.navbar-toggler:focus {
  box-shadow: none;
  background: rgba(0, 123, 255, 0.1);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 123, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav {
    gap: 0.5rem;
  }
  
  .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 8px;
  }
  
  .dropdown {
    margin: 0.5rem 0;
  }
  
  /* Navbar Logo Mobile Styling */
  .navbar-brand img {
    max-width: 100px !important;
    height: auto !important;
    width: auto;
  }
  
  .navbar-brand span {
    font-size: 1.1rem;
  }
}

/* Animation for navbar items */
.navbar-nav .nav-item {
  animation: slideInDown 0.6s ease forwards;
  opacity: 0;
  transform: translateY(-20px);
}

.navbar-nav .nav-item:nth-child(1) { animation-delay: 0.1s; }
.navbar-nav .nav-item:nth-child(2) { animation-delay: 0.2s; }
.navbar-nav .nav-item:nth-child(3) { animation-delay: 0.3s; }
.navbar-nav .nav-item:nth-child(4) { animation-delay: 0.4s; }

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