/* Navbar Styles - Fixed with Original Colors */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.5rem 1rem;
  animation: fadeIn 0.6s ease-out;
  transition: all 0.3s ease;
}

.navbar-container {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}

body.dark .navbar-container {
  background: rgba(31, 41, 55, 0.95);
  border-color: rgba(75, 85, 99, 0.3);
}

.navbar.scrolled .navbar-container {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

body.dark .navbar.scrolled .navbar-container {
  background: rgba(31, 41, 55, 0.98);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.logo-container:hover {
  transform: scale(1.05);
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(to bottom right, var(--gray-900), var(--gray-700));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.logo-container:hover .logo-icon {
  transform: rotate(10deg) scale(1.1);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--gray-900), var(--gray-700));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.dark .logo-text {
  background: linear-gradient(to right, var(--gray-100), var(--gray-300));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar-center {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .navbar-center {
    display: flex;
    flex: 1;
    justify-content: center;
  }
}

.nav-link {
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
  font-size: 0.95rem;
}

body.dark .nav-link {
  color: var(--gray-300);
}

.nav-link:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

body.dark .nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  background: rgba(0, 0, 0, 0.08);
  color: var(--gray-900);
  font-weight: 600;
}

body.dark .nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gray-100);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  justify-content: flex-end;
}

.theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--gray-100);
  color: var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--gray-200);
  transform: scale(1.05);
}

body.dark .theme-toggle {
  background: rgba(75, 85, 99, 0.5);
  color: var(--yellow-400);
}

body.dark .theme-toggle:hover {
  background: var(--gray-700);
}

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

body.dark .theme-toggle .sun-icon {
  display: block;
}

body.dark .theme-toggle .moon-icon {
  display: none;
}

.btn-secondary {
  display: none;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 600;
  color: var(--gray-700);
  background: white;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.9rem;
}

body.dark .btn-secondary {
  color: var(--gray-300);
  background: var(--gray-800);
  border-color: var(--gray-700);
}

@media (min-width: 768px) {
  .btn-secondary {
    display: inline-flex;
    align-items: center;
  }
}

.btn-secondary:hover {
  border-color: var(--gray-300);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.dark .btn-secondary:hover {
  border-color: var(--gray-600);
}

.btn-primary {
  display: none;
  padding: 0.625rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(to right, var(--gray-900), var(--gray-700));
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .btn-primary {
    display: inline-flex;
    align-items: center;
  }
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(to right, var(--gray-800), var(--gray-600));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  color: var(--gray-700);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0.75rem;
}

body.dark .mobile-menu-toggle {
  color: var(--gray-300);
}

.mobile-menu-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

body.dark .mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0;
  margin-top: 1rem;
  border-top: 1px solid var(--gray-200);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0 0 1rem 1rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

body.dark .mobile-menu {
  border-color: var(--gray-700);
  background: rgba(31, 41, 55, 0.95);
}

.mobile-menu.active {
  display: flex;
}

.mobile-nav-link {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all 0.3s ease;
  text-decoration: none;
  margin: 0 0.5rem;
}

body.dark .mobile-nav-link {
  color: var(--gray-300);
}

.mobile-nav-link:hover {
  background: rgba(0, 0, 0, 0.05);
}

body.dark .mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Ensure body has padding to account for fixed navbar */
body {
  padding-top: 80px;
}

/* Fade in animation for navbar */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}