/*
 * PREMIUM HEADER - FIXED DESIGN
 * Always White Background with Blue Text (Both Light & Dark Modes)
 * Professional, Clean, Consistent
 */

/* ===== HEADER BASE STYLES ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  
  /* ALWAYS WHITE - BOTH MODES */
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  
  transition: all 0.3s ease;
}

/* Scrolled state - more solid */
header.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.08);
  border-bottom-color: rgba(59, 130, 246, 0.15);
}

/* Ensure white in dark mode too */
[data-theme="dark"] header,
[data-theme="dark"] header.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] header.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
}

/* ===== LOGO - ALWAYS BLUE ===== */
.logo,
.logo a {
  color: #2563eb !important; /* Blue */
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.logo:hover,
.logo a:hover {
  color: #1d4ed8 !important; /* Darker blue on hover */
  transform: scale(1.02);
}

/* Logo icon if present */
.logo svg,
.logo img {
  width: 40px;
  height: 40px;
  filter: none !important; /* REMOVED - NO FILTER */
}

/* ===== NAVIGATION LINKS - ALWAYS BLUE ===== */
.nav-menu a,
.nav-link {
  color: #2563eb !important; /* Blue */
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu a:hover,
.nav-link:hover {
  color: #1d4ed8 !important; /* Darker blue */
  background: rgba(59, 130, 246, 0.08);
}

.nav-menu a.active,
.nav-link.active {
  color: #1d4ed8 !important;
  background: rgba(59, 130, 246, 0.12);
  font-weight: 600;
}

/* Underline effect on hover */
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #2563eb;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 50%;
}

/* ===== HEADER BUTTONS - BLUE THEME ===== */
.header-btn,
.btn-header {
  padding: 0.625rem 1.5rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Primary button - solid blue */
.btn-header-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white !important;
  border: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-header-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
}

/* Secondary button - outline blue */
.btn-header-secondary {
  background: transparent;
  color: #2563eb !important;
  border: 2px solid #2563eb;
}

.btn-header-secondary:hover {
  background: #2563eb;
  color: white !important;
  transform: translateY(-2px);
}

/* ===== THEME TOGGLE - BLUE ACCENT ===== */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  border: 2px solid rgba(59, 130, 246, 0.2);
  color: #2563eb !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  transform: rotate(180deg) scale(1.05);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  color: #2563eb;
}

/* ===== MOBILE MENU TOGGLE - BLUE ===== */
.mobile-menu-toggle,
.menu-toggle {
  width: 44px;
  height: 44px;
  background: rgba(59, 130, 246, 0.1);
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  color: #2563eb !important;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover,
.menu-toggle:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.mobile-menu-toggle span,
.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #2563eb;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger animation */
.mobile-menu-toggle.active span:nth-child(1),
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2),
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3),
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MOBILE MENU - WHITE WITH BLUE TEXT ===== */
.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: calc(100vh - 70px);
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.mobile-menu.active {
  transform: translateX(0);
}

[data-theme="dark"] .mobile-menu {
  background: rgba(255, 255, 255, 0.98) !important;
}

.mobile-menu a {
  color: #2563eb !important;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 1rem;
  display: block;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8 !important;
  transform: translateX(8px);
}

/* ===== HEADER CONTAINER ===== */
.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ===== CONTACT INFO IN HEADER ===== */
.header-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: #2563eb !important;
  font-size: 0.9rem;
  font-weight: 500;
}

.header-contact a {
  color: #2563eb !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.header-contact a:hover {
  color: #1d4ed8 !important;
}

.header-contact svg {
  width: 18px;
  height: 18px;
  color: #2563eb;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .header-contact {
    display: none;
  }
  
  .nav-menu {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
    height: 60px;
  }

  .logo {
    font-size: 1.25rem;
  }

  .logo svg,
  .logo img {
    width: 32px;
    height: 32px;
  }

  .mobile-menu {
    top: 60px;
    height: calc(100vh - 60px);
  }

  .btn-header {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}

/* ===== SMOOTH ANIMATIONS ===== */
@media (prefers-reduced-motion: reduce) {
  header,
  .nav-menu a,
  .mobile-menu {
    transition: none;
  }
}

/* ===== ACCESSIBILITY ===== */
header a:focus,
header button:focus,
.theme-toggle:focus,
.mobile-menu-toggle:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* ===== UTILITY CLASSES FOR HEADER ===== */
.header-badge {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-left: 0.5rem;
  display: inline-block;
}

.header-divider {
  width: 1px;
  height: 30px;
  background: rgba(59, 130, 246, 0.2);
}

/* ===== PREMIUM GLOW EFFECT ===== */
header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.5) 50%,
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

header.scrolled::after {
  opacity: 1;
}
