/* Navigation Styles */
.navbar {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  background: #3b82f6;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #e2e8f0;
}

.nav-link:hover::after {
  width: 100%;
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
  position: absolute;
  transition: all 0.3s ease;
}

.theme-toggle .moon-icon {
  opacity: 0;
  transform: rotate(90deg);
}

[data-theme="dark"] .theme-toggle .sun-icon {
  opacity: 0;
  transform: rotate(-90deg);
}

[data-theme="dark"] .theme-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0deg);
}

.mobile-theme-toggle {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
  animation-delay: 0.4s;
}

.mobile-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.mobile-theme-toggle .sun-icon,
.mobile-theme-toggle .moon-icon {
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.mobile-theme-toggle .moon-icon {
  display: none;
}

[data-theme="dark"] .mobile-theme-toggle .sun-icon {
  display: none;
}

[data-theme="dark"] .mobile-theme-toggle .moon-icon {
  display: block;
}

[data-theme="dark"] .mobile-theme-toggle .theme-toggle-text::after {
  content: " Mode";
}

.mobile-theme-toggle .theme-toggle-text::before {
  content: "Dark";
}

[data-theme="dark"] .mobile-theme-toggle .theme-toggle-text::before {
  content: "Light";
}

/* Burger Menu */
.burger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  gap: 4px;
}

.burger-line {
  width: 25px;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger-menu.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #3b82f6;
  backdrop-filter: blur(20px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-close {
  position: absolute;
  top: 25px;
  right: 25px;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
  z-index: 1001;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 40px;
}

.mobile-nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

.mobile-nav-link:nth-child(1) {
  animation-delay: 0.1s;
}
.mobile-nav-link:nth-child(2) {
  animation-delay: 0.2s;
}
.mobile-nav-link:nth-child(3) {
  animation-delay: 0.3s;
}

.mobile-nav-link:hover {
  color: #e2e8f0;
  transform: translateY(-5px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design for Navbar */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .burger-menu {
    display: flex;
  }

  .nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .nav-container {
    height: 70px;
  }

  .logo-img {
    height: 35px;
  }
}
