/* Enhanced Navigation Styles - Full white background with blue letters */

/* Navigation Container */
.main-navigation {
  background: #fff; /* Full white background */
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

/* Logo/Brand */
.nav-brand {
  flex-shrink: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #06c; /* Blue color for company logo */
  transition: color 0.2s ease;
  gap: 0.75rem; /* Space between logo image and text */
}

.nav-logo:hover {
  color: #f60; /* Orange on hover */
}

/* Logo Image */
.logo-image {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.nav-logo:hover .logo-image {
  transform: scale(1.05);
}

/* Logo Text Container */
.logo-text-container {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.logo-tagline {
  font-size: 0.75rem;
  font-weight: 400;
  color: #06c; /* Blue color for tagline */
  margin-top: -2px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
  background-color: #f0f8ff; /* Light blue background on hover */
}

.mobile-menu-toggle:hover .hamburger-line {
  background-color: #f60; /* Orange hamburger lines on hover */
}

.mobile-menu-toggle:focus {
  outline: 2px solid #f60; /* Orange focus outline */
  outline-offset: 2px;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: #06c; /* Blue color matching navigation links */
  transition: all 0.3s ease;
  margin: 2px 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation Menu */
.nav-menu-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #06c; /* Blue letters on white background */
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: #f60; /* Orange letters on hover */
  background-color: #fff; /* Keep white background */
}

.nav-link:focus {
  outline: 2px solid #f60; /* Orange focus outline */
  outline-offset: 2px;
}

.nav-link.active {
  color: #f60; /* Orange for active state */
  background-color: #fff;
}

.nav-link.active:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background-color: #f60; /* Orange underline for active */
  border-radius: 1px;
}

/* Language Switcher */
.language-switcher {
  position: relative;
  z-index: 100;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  transition: all 0.2s ease;
  min-width: 120px;
}

.lang-toggle:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.lang-toggle:focus {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

.lang-toggle.loading {
  opacity: 0.6;
  pointer-events: none;
}

.lang-flag {
  font-size: 1rem;
}

.lang-current {
  flex: 1;
  text-align: left;
}

.lang-arrow {
  transition: transform 0.2s ease;
  color: #94a3b8;
}

.lang-toggle[aria-expanded="true"] .lang-arrow {
  transform: rotate(180deg);
}

/* Language Dropdown */
.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  list-style: none;
  margin-left: 0;
  padding: 0.5rem 0;
}

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

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #475569;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
  border-radius: 0;
}

.lang-option:hover {
  background-color: #f8fafc;
  color: #334155;
}

.lang-option:focus {
  background-color: #f0f9ff;
  color: #0ea5e9;
  outline: none;
}

.lang-option.active {
  background-color: #eff6ff;
  color: #0ea5e9;
  font-weight: 600;
}

.lang-option .lang-flag {
  font-size: 1rem;
}

.lang-option .lang-name {
  flex: 1;
}

.lang-check {
  color: #0ea5e9;
  width: 16px;
  height: 16px;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  /* Mobile logo adjustments */
  .logo-image {
    height: 35px; /* Slightly smaller on mobile */
  }

  .nav-logo {
    gap: 0.5rem; /* Reduce gap on mobile */
  }

  .logo-text {
    font-size: 1.25rem; /* Slightly smaller text on mobile */
  }

  .logo-tagline {
    font-size: 0.7rem; /* Smaller tagline on mobile */
  }

  .nav-menu-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999; /* Ensure mobile menu appears above content */
  }

  .nav-menu-wrapper.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    padding: 1rem;
    border-radius: 0;
    border-bottom: 1px solid #f1f5f9;
  }

  .nav-link.active:after {
    display: none;
  }

  .language-switcher {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
  }

  .lang-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .lang-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-top: 1px solid #e2e8f0;
    border-radius: 0;
    margin-top: 0.5rem;
    padding: 0;
  }

  .lang-dropdown.open {
    transform: none;
  }

  .lang-option {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f8fafc;
  }

  /* Prevent body scroll when mobile menu is open */
  body.nav-open {
    overflow: hidden;
  }
}

/* Tablet Styles */
@media (max-width: 1024px) and (min-width: 769px) {
  .nav-container {
    padding: 0 2rem;
  }
  
  .nav-menu {
    gap: 1rem;
  }
  
  .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
}

/* Large Screen Enhancements */
@media (min-width: 1200px) {
  .nav-container {
    padding: 0;
  }
  
  .nav-menu {
    gap: 2rem;
  }
  
  .nav-link {
    padding: 0.75rem 1.25rem;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .main-navigation {
    border-bottom-width: 2px;
  }
  
  .nav-link:focus,
  .lang-toggle:focus {
    outline-width: 3px;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .nav-link,
  .lang-toggle,
  .lang-dropdown,
  .hamburger-line {
    transition: none;
  }
}

/* Print Styles */
@media print {
  .main-navigation {
    display: none;
  }
}
