/* ===== BASE NAVBAR STYLES - GERMAN THEME ===== */
.custom-navbar {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  height: 70px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid #FFCC00; /* German gold color accent */
}

/* Add subtle German flag stripes effect */
.custom-navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #000000 33%, #DD0000 33%, #DD0000 66%, #FFCC00 66%);
  z-index: 1031;
}

/* Navbar brand with German theme */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.navbar-brand-text {
  font-size: 1.3rem;
  color: #000000 !important; /* German black */
  font-weight: 700;
  background: linear-gradient(90deg, #000000, #DD0000, #FFCC00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.navbar-brand-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #000000, #DD0000, #FFCC00);
  border-radius: 1px;
}

.navbar-brand img {
  height: 35px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

/* Navbar toggler with German colors */
.navbar-toggler {
  border: 2px solid #000000;
  padding: 0.25rem 0.5rem;
  transition: all 0.2s ease;
}

.navbar-toggler:hover {
  border-color: #DD0000;
  background-color: rgba(221, 0, 0, 0.05);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(221, 0, 0, 0.25);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23000000' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== CENTERED NAVIGATION ===== */
.navbar-nav {
  gap: 1.5rem;
  align-items: center;
}

/* Nav links with German color scheme */
.nav-link {
  font-size: 1rem;
  color: #000000 !important; /* German black */
  padding: 0.5rem 0.75rem;
  transition: all 0.3s ease;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  border-radius: 4px;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: #DD0000 !important; /* German red on hover */
  background-color: rgba(255, 204, 0, 0.1); /* Light gold background on hover */
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #DD0000; /* German red underline */
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link.dropdown-toggle::after {
  border-top-color: #000000;
  margin-left: 0.3rem;
}

.nav-link.dropdown-toggle:hover::after {
  border-top-color: #DD0000;
}

/* ===== DROPDOWN MENUS WITH GERMAN THEME ===== */
.dropdown-menu {
  border: 2px solid #000000;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0.5rem;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.dropdown-item {
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  border-radius: 4px;
  color: #000000;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: linear-gradient(90deg, rgba(255, 204, 0, 0.15), rgba(221, 0, 0, 0.1));
  color: #DD0000;
  transform: translateX(5px);
}

.dropdown-item::before {
  content: '▸';
  position: absolute;
  left: 0.5rem;
  color: #FFCC00; /* German gold */
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dropdown-item:hover::before {
  opacity: 1;
}

/* Services Dropdown - 2 Columns */
#servicesDropdown + .dropdown-menu {
  min-width: 400px;
  border-top: 4px solid #FFCC00; /* Gold accent */
}

#servicesDropdown + .dropdown-menu .row {
  margin: 0;
}

#servicesDropdown + .dropdown-menu .col-6 {
  padding: 0.25rem;
}

/* ===== RIGHT SIDE BUTTONS - GERMAN COLORS ===== */
.navbar-buttons {
  gap: 0.8rem;
  align-items: center;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* Login button - German black theme */
.btn-outline-primary {
  color: #000000;
  border: 2px solid #000000;
  background: transparent;
}

.btn-outline-primary:hover {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Register button - German red theme */
.btn-primary {
  background: linear-gradient(135deg, #DD0000, #BB0000);
  border: 2px solid #DD0000;
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #BB0000, #990000);
  border-color: #BB0000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(221, 0, 0, 0.3);
}

/* Schedule Call button - German gold theme */
.btn-success {
  background: linear-gradient(135deg, #FFCC00, #E6B800);
  border: 2px solid #FFCC00;
  color: #000000;
  font-weight: 600;
}

.btn-success:hover {
  background: linear-gradient(135deg, #E6B800, #CCA300);
  border-color: #E6B800;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
}

/* Welcome text */
.nav-text {
  font-size: 0.9rem;
  color: #000000 !important;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  background: rgba(255, 204, 0, 0.1);
  border-radius: 4px;
  border-left: 3px solid #DD0000;
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 991.98px) {
  .custom-navbar {
    padding: 0.5rem 1rem;
    height: auto;
    min-height: 70px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  }
  
  .navbar-collapse {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 1rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
    border: 2px solid #000000;
    border-top: 4px solid #FFCC00;
  }
  
  .navbar-nav {
    gap: 0;
    text-align: left;
    padding: 0;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link {
    padding: 0.8rem 0.5rem;
    display: block;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: #000000 !important;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .nav-link:hover {
    background-color: rgba(255, 204, 0, 0.15);
    color: #DD0000 !important;
  }
  
  /* Right side buttons */
  .navbar-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.6rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #FFCC00;
  }
  
  .auth-buttons {
    width: 100%;
    flex-direction: column;
    gap: 0.6rem;
  }
  
  .navbar-buttons .btn {
    width: 100%;
    text-align: center;
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }
  
  .schedule-call-btn {
    width: 100%;
  }
  
  /* Services dropdown mobile */
  #servicesDropdown + .dropdown-menu {
    min-width: unset;
    width: 100% !important;
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: none;
    padding: 0.5rem;
    margin: 0.5rem 0;
    background: #ffffff;
  }
  
  #servicesDropdown + .dropdown-menu .row {
    flex-direction: column;
  }
  
  #servicesDropdown + .dropdown-menu .col-6 {
    width: 100%;
  }
  
  /* All dropdowns mobile */
  .dropdown-menu {
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: none;
    margin: 0.5rem 0;
    width: 100% !important;
    padding: 0.5rem;
    background: #ffffff;
  }
  
  .dropdown-item {
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .dropdown-item:hover {
    transform: translateX(3px);
  }
  
  /* Welcome text on mobile */
  .nav-text {
    display: block !important;
    text-align: center;
    margin-bottom: 0.5rem;
  }
}

/* Small mobile fixes */
@media (max-width: 575.98px) {
  .custom-navbar {
    padding: 0.5rem 0.8rem;
  }
  
  .navbar-brand img {
    height: 32px;
  }
  
  .navbar-brand-text {
    font-size: 1.2rem;
  }
  
  .navbar-buttons {
    gap: 0.5rem;
  }
  
  .navbar-brand-text::after {
    height: 1px;
  }
}