/* ============================================
   EVERRISELABS NAVBAR THEMES
   Professional navbar system with light/dark themes
   ============================================ */

/* ===== BASE NAVBAR STYLES ===== */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* ===== BRAND/LOGO AREA ===== */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: translateY(-2px);
}

.navbar-logo {
  height: 50px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  background: transparent;
}

/* Ensure logo has transparent background on dark navbar */
.navbar-dark .navbar-logo {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) brightness(1.1);
}

.navbar-brand-text {
  font-size: 20px;
  font-weight: 700;
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: -0.5px;
  transition: color 0.3s ease;
}

/* ===== NAVIGATION MENU ===== */
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-menu a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  transition: width 0.3s ease;
}

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

/* ===== SERVICES DROPDOWN ===== */
.navbar-services-link {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.services-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.services-toggle::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  transition: width 0.3s ease;
}

.navbar-services-link:hover .services-toggle::after {
  width: 100%;
}

.dropdown-icon {
  font-size: 10px;
  transition: transform 0.3s ease;
  display: inline-block;
  margin-left: 4px;
}

.services-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 12px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  padding: 8px;
}

.services-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.services-dropdown a {
  display: block;
  padding: 12px 16px;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.services-dropdown a:hover {
  background: #fafbfc;
  color: #4A90E2;
  padding-left: 20px;
}

.services-dropdown a::after {
  display: none;
}

/* Light theme dropdown */
.navbar-light .services-toggle {
  color: #2c3e50;
}

.navbar-light .services-toggle::after {
  background: #4a90e2;
}

.navbar-light .services-toggle:hover {
  color: #4a90e2;
}

/* Dark theme dropdown */
.navbar-dark .services-toggle {
  color: #ffffff;
}

.navbar-dark .services-toggle::after {
  background: #ffffff;
}

.navbar-dark .services-toggle:hover {
  color: #e0e0e0;
}

.navbar-dark .services-dropdown {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

.navbar-dark .services-dropdown a {
  color: #1a1a1a;
}

.navbar-dark .services-dropdown a:hover {
  background: #fafbfc;
  color: #4A90E2;
}

/* ===== LANGUAGE SWITCHER ===== */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
}

.language-switcher button {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
}

.language-switcher button.active {
  font-weight: 700;
}

.language-separator {
  font-size: 14px;
  font-weight: 300;
  opacity: 0.5;
}

/* ===== MOBILE MENU TOGGLE ===== */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  transition: transform 0.3s ease;
}

.navbar-toggle:hover {
  transform: scale(1.1);
}

/* ===== LIGHT THEME ===== */
.navbar-light {
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.navbar-light .navbar-brand-text {
  color: #2c3e50;
}

.navbar-light .navbar-menu a {
  color: #2c3e50;
}

.navbar-light .navbar-menu a:hover {
  color: #4a90e2;
}

.navbar-light .navbar-menu a::after {
  background: #4a90e2;
}

.navbar-light .language-switcher button {
  color: #2c3e50;
}

.navbar-light .language-switcher button:hover {
  background: #f0f0f0;
  color: #4a90e2;
}

.navbar-light .language-switcher button.active {
  background: #e3f2fd;
  color: #4a90e2;
}

.navbar-light .language-separator {
  color: #2c3e50;
}

.navbar-light .navbar-toggle {
  color: #2c3e50;
}

/* ===== DARK THEME ===== */
.navbar-dark {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.navbar-dark .navbar-brand-text {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.navbar-dark .navbar-menu a {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.navbar-dark .navbar-menu a:hover {
  color: #e0e0e0;
}

.navbar-dark .navbar-menu a::after {
  background: #ffffff;
}

.navbar-dark .language-switcher button {
  color: #ffffff;
}

.navbar-dark .language-switcher button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.navbar-dark .language-switcher button.active {
  background: rgba(255, 255, 255, 0.3);
}

.navbar-dark .language-separator {
  color: #ffffff;
}

.navbar-dark .navbar-toggle {
  color: #ffffff;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
  .navbar-container {
    height: 60px;
  }

  .navbar-brand {
    gap: 8px;
  }

  .navbar-logo {
    height: 44px;
  }

  .navbar-brand-text {
    font-size: 18px;
  }

  .navbar-toggle {
    display: block;
  }

  .navbar-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1001;
  }

  .navbar-menu.active {
    display: flex;
  }

  .navbar-light .navbar-menu {
    background: #ffffff;
  }

  .navbar-dark .navbar-menu {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }

  .navbar-menu a,
  .navbar-menu .navbar-services-link {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .services-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
    margin-top: 0;
    margin-left: 20px;
    display: none;
  }
  
  .services-dropdown.active {
    display: block;
  }
  
  .services-dropdown a {
    padding: 8px 0;
    color: inherit;
  }
  
  .navbar-light .services-dropdown a {
    color: #2c3e50;
  }
  
  .navbar-dark .services-dropdown a {
    color: #ffffff;
  }

  .navbar-light .navbar-menu a {
    border-bottom-color: #e0e0e0;
  }

  .navbar-dark .navbar-menu a {
    border-bottom-color: rgba(255, 255, 255, 0.2);
  }

  .language-switcher {
    margin-left: 0;
    margin-top: 15px;
    justify-content: center;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  .navbar-light .language-switcher {
    border-top-color: #e0e0e0;
  }

  .navbar-dark .language-switcher {
    border-top-color: rgba(255, 255, 255, 0.2);
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  .navbar,
  .navbar-brand,
  .navbar-logo,
  .navbar-brand-text,
  .navbar-menu a,
  .language-switcher button,
  .navbar-toggle {
    transition: none;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar {
    position: static;
    box-shadow: none;
    border-bottom: 2px solid #000;
  }

  .navbar-menu,
  .language-switcher,
  .navbar-toggle {
    display: none;
  }
}
