/* ================================================================ *\
	Modern 2025 Navbar Styles - Dark Theme with Enhanced Color Palette
\* ================================================================ */

/* Expanded Color Variables - Inspired by Cursor & GitHub */
:root {
  /* Core Theme Colors */
  --primary-cyan: #76ffd4;
  --primary-blue: #63c6ff;
  --primary-green: #1d9b6c;
  
  /* Backgrounds */
  --bg-card: rgba(1, 8, 12, 0.7);
  --bg-card-hover: rgba(1, 8, 12, 0.9);
  --bg-dark: #01080c;
  --bg-medium: #0e1319;
  --bg-accent: #0f2a3a;
  
  /* Borders */
  --border-primary: rgba(34, 90, 123, 0.6);
  --border-secondary: rgba(34, 90, 123, 0.3);
  --border-emerald: rgba(0, 255, 64, 0.4);
  --border-lime: rgba(132, 204, 22, 0.4);
  --border-purple: rgba(139, 92, 246, 0.4);
  --border-magenta: rgba(217, 70, 239, 0.4);
  --glass-border: rgba(34, 90, 123, 0.2);
  
  /* Text */
  --text-white: #ffffff;
  --text-light: #cccccc;
  --text-gray: #dedede;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #76ffd4, #63c6ff);
  --bg-gradient-2: linear-gradient(135deg, rgba(118, 255, 212, 0.1), rgba(99, 198, 255, 0.1));
  
  /* Extended Color Palette */
  --primary-emerald: #00ff40;
  --primary-orange: #ff6b35;
  --primary-purple: #8b5cf6;
  --primary-pink: #ec4899;
  --primary-indigo: #6366f1;
  --primary-teal: #14b8a6;
  --primary-lime: #84cc16;
  --primary-yellow: #f59e0b;
  --primary-red: #ef4444;
  --primary-magenta: #d946ef;
  --text-magenta: #d946ef;
  
  /* Status Colors */
  --status-success: #10b981;
  --status-warning: #f59e0b;
  --status-info: #3b82f6;
  --status-coolgray: #6b7280;
  
  /* Glass Effect Variables */
  --glass-bg: rgba(1, 8, 12, 0.6);
  --glass-border-light: rgba(118, 255, 212, 0.1);
  --glass-shadow: rgba(0, 0, 0, 0.3);
  
  /* Hover States */
  --hover-cyan: rgba(118, 255, 212, 0.1);
  --hover-blue: rgba(99, 198, 255, 0.1);
  --hover-accent: rgba(34, 90, 123, 0.15);
}

/* Example usage:
  background: var(--bg-gradient-2);
  color: var(--text-magenta);
  border-color: var(--border-lime);
*/

/* Base Navbar Styles */
.cursor-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100001;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  height: 64px;
  display: flex;
  align-items: center;
}

.cursor-navbar.scrolled {
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.cursor-navbar.hidden {
  transform: translateY(-100%);
}

.cursor-navbar::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
  opacity: 0.6;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

/* Brand Section */
.brand-section {
  display: flex;
  align-items: center;
  z-index: 2;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.02);
}

.brand-icon {
  width: 32px;
  height: 32px;
  color: var(--primary-cyan);
  transition: all 0.3s ease;
}

.brand-icon svg {
  width: 100%;
  height: 100%;
}

.brand-logo:hover .brand-icon {
  color: var(--primary-blue);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-primary {
  color: var(--text-white);
  font-family: "PoppinsRegular", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.brand-secondary {
  color: var(--primary-cyan);
  font-family: "PoppinsLight", sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  margin-top: -2px;
}

.brand-logo:hover .brand-primary {
  color: #f8f9fa;
}

.brand-logo:hover .brand-secondary {
  color: var(--primary-blue);
}

/* Navigation Section */
.nav-section {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 0 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.8);
  font-family: "PoppinsLight", sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(118, 255, 212, 0.08), rgba(99, 198, 255, 0.08));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link:hover::before {
  opacity: 1;
}

.nav-link.active {
  color: #76ffd4;
  background: rgba(118, 255, 212, 0.1);
}

/* Enhanced Nav Link Colors - Different colors for different sections */
.nav-item:nth-child(1) .nav-link:hover {
  color: var(--primary-emerald);
  border-color: var(--border-emerald);
}

.nav-item:nth-child(2) .nav-link:hover {
  color: var(--primary-orange);
  border-color: var(--border-lime);
}

.nav-item:nth-child(3) .nav-link:hover {
  color: var(--primary-purple);
  border-color: var(--border-purple);
}

.nav-item:nth-child(4) .nav-link:hover {
  color: var(--primary-pink);
  border-color: var(--border-magenta);
}

.nav-item:nth-child(5) .nav-link:hover {
  color: var(--primary-indigo);
  border-color: var(--border-lime);
}

.nav-item:nth-child(6) .nav-link:hover {
  color: var(--primary-teal);
  border-color: var(--border-lime);
}

/* Dropdown Styles */
.dropdown-toggle::after {
  display: none;
}

.dropdown-arrow {
  width: 16px;
  height: 16px;
  color: currentColor;
  transition: transform 0.3s ease;
  margin-left: 0.25rem;
}

.dropdown:hover .dropdown-arrow,
.dropdown.show .dropdown-arrow {
  transform: rotate(180deg);
}

/* Desktop dropdown menu styling */
.cursor-navbar .dropdown-menu {
  background: var(--bg-card-hover) !important;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-secondary) !important;
  border-radius: 12px;
  padding: 0.5rem;
  margin-top: 0.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  min-width: 200px;
  z-index: 100003 !important;
  position: absolute !important;
  display: none !important;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease !important;
}

.cursor-navbar .dropdown-menu.show {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

.cursor-navbar .dropdown-item {
  color: var(--text-light) !important;
  font-family: "PoppinsLight", sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  padding: 0.75rem 1rem !important;
  border-radius: 8px;
  margin-bottom: 0.25rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  background: transparent !important;
}

.cursor-navbar .dropdown-item:last-child {
  margin-bottom: 0;
}

.cursor-navbar .dropdown-item:hover,
.cursor-navbar .dropdown-item:focus {
  color: var(--primary-cyan) !important;
  background: rgba(118, 255, 212, 0.1) !important;
  border-color: var(--border-primary) !important;
  text-decoration: none !important;
}

.cursor-navbar .dropdown-item.active,
.cursor-navbar .dropdown-item:active {
  color: var(--primary-cyan) !important;
  background: rgba(118, 255, 212, 0.15) !important;
  border-color: var(--border-primary) !important;
}

/* Actions Section */
.actions-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 2;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social-link {
  color: var(--text-light);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
  background: rgba(34, 90, 123, 0.1);
  border: 1px solid rgba(34, 90, 123, 0.2);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  color: var(--primary-cyan);
  background: rgba(118, 255, 212, 0.1);
  border-color: var(--border-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(118, 255, 212, 0.2);
}

.signup-btn {
  color: var(--text-light);
  font-family: "PoppinsLight", sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  background: rgba(34, 90, 123, 0.1);
  border: 1px solid rgba(34, 90, 123, 0.2);
}

.signup-btn:hover {
  color: var(--primary-cyan);
  background: rgba(118, 255, 212, 0.1);
  border-color: var(--border-primary);
}

.cta-button {
  background: linear-gradient(135deg, #76ffd4 0%, #63c6ff 100%);
  color: #000000;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-family: "PoppinsRegular", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(118, 255, 212, 0.3);
  color: #000000;
  text-decoration: none;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.cta-button:hover .cta-arrow {
  transform: translateX(2px);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  background: rgba(34, 90, 123, 0.2);
  border: 1px solid rgba(34, 90, 123, 0.3);
  border-radius: 10px;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100002;
  position: relative;
}

.mobile-toggle:hover {
  background: rgba(118, 255, 212, 0.1);
  border-color: rgba(118, 255, 212, 0.3);
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: #76ffd4;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(1, 8, 12, 0.98);
  backdrop-filter: blur(20px);
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(1, 8, 12, 0.98);
}

.mobile-menu-header {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.mobile-brand:hover {
  transform: scale(1.02);
}

.mobile-brand .brand-icon {
  width: 40px;
  height: 40px;
  color: #76ffd4;
  transition: all 0.3s ease;
}

.mobile-brand .brand-icon svg {
  width: 100%;
  height: 100%;
}

.mobile-brand:hover .brand-icon {
  color: #63c6ff;
}

.mobile-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.mobile-brand .brand-primary {
  color: #ffffff;
  font-family: "PoppinsRegular", sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.mobile-brand .brand-secondary {
  color: #76ffd4;
  font-family: "PoppinsLight", sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  margin-top: -2px;
}

.mobile-brand:hover .brand-primary {
  color: #f8f9fa;
}

.mobile-brand:hover .brand-secondary {
  color: #63c6ff;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  justify-content: center;
  align-items: center;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.mobile-nav-link {
  color: #ffffff;
  font-family: "PoppinsLight", sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
  border: 1px solid rgba(118, 255, 212, 0.2);
  background: rgba(118, 255, 212, 0.08);
  margin-bottom: 0.5rem;
}

.mobile-nav-link:hover {
  color: #76ffd4;
  background: rgba(118, 255, 212, 0.1);
  border-color: rgba(118, 255, 212, 0.3);
  transform: translateY(-2px);
}

.mobile-dropdown {
  width: 100%;
}

.mobile-dropdown-toggle {
  color: #ffffff;
  font-family: "PoppinsLight", sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
  border: 1px solid rgba(118, 255, 212, 0.2);
  background: rgba(118, 255, 212, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.mobile-dropdown-toggle:hover {
  color: #76ffd4;
  background: rgba(118, 255, 212, 0.1);
  border-color: rgba(118, 255, 212, 0.3);
}

.mobile-dropdown-arrow {
  width: 16px;
  height: 16px;
  margin-left: auto;
  transition: transform 0.3s ease;
}

.mobile-dropdown-arrow.rotated {
  transform: rotate(180deg);
}

.mobile-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  padding: 0;
  background: rgba(34, 90, 123, 0.15);
  border-radius: 8px;
  border: 1px solid rgba(118, 255, 212, 0.1);
}

.mobile-dropdown-content.active {
  max-height: 500px;
  padding: 0.5rem;
}

/* Mobile dropdown menu items styling */
.mobile-dropdown-content .dropdown-menu {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  position: static !important;
  display: block !important;
  width: 100% !important;
}

.mobile-dropdown-content .dropdown-item {
  color: #ffffff !important;
  background: rgba(118, 255, 212, 0.05) !important;
  border: 1px solid rgba(118, 255, 212, 0.1) !important;
  border-radius: 8px !important;
  margin-bottom: 0.25rem !important;
  padding: 0.75rem 1rem !important;
  text-decoration: none !important;
  display: block !important;
  transition: all 0.2s ease !important;
}

.mobile-dropdown-content .dropdown-item:hover {
  color: #76ffd4 !important;
  background: rgba(118, 255, 212, 0.15) !important;
  border-color: rgba(118, 255, 212, 0.3) !important;
}

.mobile-menu-footer {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

.mobile-social-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.mobile-social-link {
  color: #cccccc;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  background: rgba(34, 90, 123, 0.1);
  border: 1px solid rgba(34, 90, 123, 0.2);
}

.mobile-social-link svg {
  width: 24px;
  height: 24px;
}

.mobile-social-link:hover {
  color: #76ffd4;
  background: rgba(118, 255, 212, 0.1);
  border-color: rgba(118, 255, 212, 0.3);
  transform: translateY(-2px);
}

.mobile-cta-button {
  background: linear-gradient(135deg, #76ffd4, #63c6ff);
  color: #021827;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1rem;
  font-family: "PoppinsRegular", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(118, 255, 212, 0.3);
  width: 100%;
  max-width: 300px;
  justify-content: center;
}

.mobile-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(118, 255, 212, 0.4);
  color: #021827;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1199px) {
  .navbar-container {
    padding: 0 1rem;
  }
  
  .nav-links {
    gap: 0.25rem;
  }
  
  .nav-link {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .social-links {
    gap: 0.5rem;
  }
  
  .cta-button {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 991px) {
  .nav-section,
  .social-links {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .navbar-container {
    justify-content: space-between;
  }
  
  .actions-section {
    gap: 1rem;
  }
  
  .actions-section .signup-btn {
    display: none;
  }
}

@media (max-width: 767px) {
  .navbar-container {
    padding: 0 1rem;
  }
  
  .brand-text {
    display: none;
  }
  
  .brand-icon {
    width: 28px;
    height: 28px;
  }
  
  .mobile-menu-content {
    padding: 1.5rem;
  }
  
  .mobile-nav-links {
    gap: 0.75rem;
  }
  
  .mobile-nav-link,
  .mobile-dropdown-toggle {
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
  }
}

/* Ensure content appears above texture */
.cursor-navbar {
  position: fixed !important;
  z-index: 100001 !important;
}

/* Override any conflicting Bootstrap styles */
.cursor-navbar .nav-link {
  color: #cccccc !important;
}

.cursor-navbar .nav-link:hover {
  color: #76ffd4 !important;
}

.cursor-navbar .nav-link.active {
  color: #76ffd4 !important;
}