/* Logo display control based on theme */
.dark-only {
  display: block !important;
}
.light-only {
  display: none !important;
}

body.light-theme .dark-only {
  display: none !important;
}
body.light-theme .light-only {
  display: block !important;
}

/* Brand Text Gradient Utility */
.brand-gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* --- Light Theme Variables & Overrides --- */
body.light-theme {
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --bg-elevated: #F1F5F9;
  --bg-hover: #E2E8F0;
  --text-primary: #0A0F1D;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 105, 170, 0.18);
  --border-hover: rgba(0, 105, 170, 0.45);
  --accent: #0069AA;
  --shadow-glow: 0 0 35px rgba(0, 105, 170, 0.15);
}

body.light-theme .navbar {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
}

body.light-theme .mobile-menu {
  background: #FFFFFF;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}

body.light-theme .mobile-overlay {
  background: rgba(15, 23, 42, 0.4);
}

body.light-theme .btn-primary {
  background: var(--gradient-brand);
  color: #000000;
  box-shadow: 0 4px 18px rgba(0, 105, 170, 0.25);
}

body.light-theme .btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 24px rgba(0, 105, 170, 0.35);
}

body.light-theme .btn-secondary {
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.03);
  color: #1E293B;
}

body.light-theme .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.07);
  border-color: #0069AA;
  color: #0069AA;
}

body.light-theme .nav-cta {
  background: rgba(0, 105, 170, 0.08);
  color: #0069AA !important;
  border: 1px solid rgba(0, 105, 170, 0.3);
}

body.light-theme .nav-cta:hover {
  background: var(--gradient-brand);
  color: #000000 !important;
}

body.light-theme .card {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

body.light-theme .card:hover {
  border-color: rgba(0, 105, 170, 0.3);
  box-shadow: 0 12px 30px rgba(0, 105, 170, 0.12);
}

body.light-theme .nav-link {
  color: var(--text-secondary);
}
body.light-theme .nav-link.active,
body.light-theme .nav-link:hover {
  color: var(--text-primary);
}

/* Floating Theme Toggle Button Styles */
.theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  background: var(--bg-hover);
}

.theme-toggle:active {
  transform: translateY(-1px) scale(0.96);
}

body.light-theme .theme-toggle {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

body.light-theme .theme-toggle:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}


body.light-theme .card-badge {
  background-color: rgba(255, 255, 255, 0.88);
  color: #111111;
  border-color: rgba(0, 0, 0, 0.15);
}

