/* ============================================
   QUESCO SOLAR - PREMIUM UX/UI UPGRADE
   Advanced animations, glassmorphism, 3D effects
   ============================================ */

/* ---------- PRELOADER ---------- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #111859 0%, #1b2470 50%, #4477FE 100%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  animation: preloaderPulse 1.5s ease-in-out infinite;
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.preloader-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: #fff;
  border-radius: 3px;
  animation: preloaderSlide 1.2s ease-in-out infinite;
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.8; }
}

@keyframes preloaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ---------- SCROLL PROGRESS ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #4477FE, #667eea, #764ba2);
  z-index: 10000;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(68, 119, 254, 0.5);
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4477FE, #667eea);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 20px rgba(68, 119, 254, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 30px rgba(68, 119, 254, 0.5);
}

.back-to-top::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  z-index: -1;
  animation: backToTopPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0;
}

.back-to-top.visible::before {
  opacity: 1;
}

@keyframes backToTopPing {
  0% { transform: scale(1); opacity: 0.5; }
  75%, 100% { transform: scale(1.8); opacity: 0; }
}

/* ---------- GLASSMORPHISM CARDS ---------- */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  border-color: rgba(68, 119, 254, 0.3);
}

[data-theme="dark"] .glass-card {
  background: rgba(40, 40, 40, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .testimonial-card .quote {
  color: #e0e0e0;
}

[data-theme="dark"] .testimonial-card .author-info h5 {
  color: #fff;
}

[data-theme="dark"] .testimonial-card .author-info p {
  color: #b0b0b0;
}

[data-theme="dark"] .testimonial-icon {
  background-color: rgba(68, 119, 254, 0.3);
}

[data-theme="dark"] .carousel-control-btn {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .custom-indicators button {
  background-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .custom-indicators button.active {
  background-color: #4477FE;
}

/* ---------- 3D TILT CARDS ---------- */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.tilt-card .tilt-inner {
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
}

.tilt-card .tilt-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.15) 0%, transparent 60%);
}

.tilt-card:hover .tilt-shine {
  opacity: 1;
}

/* ---------- ENHANCED BUTTONS ---------- */
.btn-premium {
  position: relative;
  padding: 14px 32px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.btn-premium-primary {
  background: linear-gradient(135deg, #4477FE 0%, #667eea 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(68, 119, 254, 0.4);
}

.btn-premium-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(68, 119, 254, 0.5);
  color: #fff;
}

.btn-premium-primary:active {
  transform: translateY(-1px);
}

.btn-premium-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.btn-premium-primary:hover::before {
  left: 100%;
}

.btn-premium-outline {
  background: transparent;
  color: #4477FE;
  border: 2px solid #4477FE;
  box-shadow: 0 4px 15px rgba(68, 119, 254, 0.15);
}

.btn-premium-outline:hover {
  background: linear-gradient(135deg, #4477FE 0%, #667eea 100%);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(68, 119, 254, 0.4);
}

/* Button ripple effect */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ---------- ENHANCED HERO ---------- */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(-100px) rotate(720deg);
    opacity: 0;
  }
}

/* Floating shapes in hero */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  z-index: 1;
  pointer-events: none;
}

.hero-shape-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #fff, transparent);
  top: -100px;
  right: -50px;
  animation: floatShape 8s ease-in-out infinite;
}

.hero-shape-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #4477FE, transparent);
  bottom: -50px;
  left: -50px;
  animation: floatShape 10s ease-in-out infinite reverse;
}

.hero-shape-3 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #ffd700, transparent);
  top: 30%;
  left: 10%;
  animation: floatShape 12s ease-in-out infinite;
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -30px) rotate(5deg); }
  50% { transform: translate(-10px, 20px) rotate(-5deg); }
  75% { transform: translate(15px, 10px) rotate(3deg); }
}

/* Hero text gradient animation */
.hero-gradient-text {
  background: linear-gradient(90deg, #fff, #ffd700, #fff);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

/* ---------- ENHANCED SECTION DIVIDERS ---------- */
.section-wave {
  position: relative;
}

.section-wave::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23f8f9fa' d='M0,40 C360,100 1080,0 1440,60 L1440,100 L0,100 Z'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
  z-index: 2;
  pointer-events: none;
}

.section-wave-dark::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23ffffff' d='M0,40 C360,100 1080,0 1440,60 L1440,100 L0,100 Z'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
}

/* ---------- ENHANCED COUNTER BOXES ---------- */
.counter-box {
  position: relative;
  overflow: hidden;
}

.counter-box::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(68, 119, 254, 0.03), transparent 30%);
  animation: counterRotate 8s linear infinite;
  pointer-events: none;
}

@keyframes counterRotate {
  100% { transform: rotate(360deg); }
}

/* ---------- ENHANCED SERVICE CARDS ---------- */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #4477FE, #667eea, #764ba2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 10;
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* ---------- ENHANCED TESTIMONIALS ---------- */
.testimonials-section .section-title,
.testimonials-section .lead {
  position: relative;
  z-index: 2;
}

[data-theme="dark"] .testimonials-section .section-title {
  color: #fff;
}

[data-theme="dark"] .testimonials-section .lead {
  color: #b0b0b0;
}

/* Fix: testimonial cards inside carousel must always be visible */
.testimonial-carousel .testimonial-card {
  opacity: 1 !important;
  transform: none !important;
}

/* Testimonial card dark mode contrast */
[data-theme="dark"] .testimonial-card {
  background: rgba(50, 50, 55, 0.95);
  border: 1px solid rgba(68, 119, 254, 0.2);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.testimonial-card {
  position: relative;
  overflow: visible;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 6rem;
  font-family: Georgia, serif;
  color: rgba(68, 119, 254, 0.08);
  line-height: 1;
  pointer-events: none;
}

[data-theme="dark"] .testimonial-card::before {
  color: rgba(68, 119, 254, 0.15);
}

/* ---------- ENHANCED FAQ ---------- */
.accordion-item {
  border: none !important;
  margin-bottom: 12px;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.accordion-item:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.accordion-button {
  border-radius: 12px !important;
  font-weight: 500;
  padding: 1.25rem 1.5rem;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, rgba(68, 119, 254, 0.08), rgba(102, 126, 234, 0.08));
  color: #4477FE;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion-body {
  padding: 0 1.5rem 1.25rem;
  line-height: 1.8;
}

/* ---------- ENHANCED CONTACT FORM ---------- */
.contact-form-card {
  border-radius: 20px;
  overflow: hidden;
}

.form-control:focus,
.form-select:focus {
  border-color: #4477FE;
  box-shadow: 0 0 0 4px rgba(68, 119, 254, 0.1);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: #4477FE;
}

/* ---------- FLOATING BADGES ---------- */
.floating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- STAT HIGHLIGHTS ---------- */
.stat-highlight {
  position: relative;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(68, 119, 254, 0.1), rgba(102, 126, 234, 0.1));
  color: #4477FE;
  font-weight: 700;
}

/* ---------- GLOW EFFECTS ---------- */
.glow-primary {
  box-shadow: 0 0 20px rgba(68, 119, 254, 0.3);
}

.glow-primary:hover {
  box-shadow: 0 0 40px rgba(68, 119, 254, 0.5);
}

/* ---------- ANIMATED GRADIENT BORDER ---------- */
.gradient-border {
  position: relative;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, #4477FE, #667eea, #764ba2, #4477FE);
  background-size: 300% 300%;
  animation: gradientBorderMove 4s ease infinite;
}

.gradient-border > * {
  background: #fff;
  border-radius: 14px;
}

[data-theme="dark"] .gradient-border > * {
  background: #1e1e1e;
}

@keyframes gradientBorderMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- TRUST BADGES ---------- */
.trust-bar {
  background: linear-gradient(135deg, #111859, #1b2470);
  padding: 20px 0;
  overflow: hidden;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  white-space: nowrap;
  padding: 0 30px;
}

.trust-item i {
  color: #ffd700;
  font-size: 1.2rem;
}

.trust-item span {
  font-weight: 500;
  font-size: 0.95rem;
}

.trust-scroll {
  display: flex;
  animation: trustScroll 30s linear infinite;
}

@keyframes trustScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- ENHANCED CTA ---------- */
.cta-section {
  background: linear-gradient(135deg, #4477FE 0%, #667eea 50%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.cta-section .feature-icon {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.cta-section .feature-icon i {
  color: #ffd700;
}

.cta-section .feature-text h5,
.cta-section .feature-text p {
  color: #fff;
}

.cta-section .feature-text p {
  opacity: 0.85;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
  animation: ctaPulse 6s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* ---------- CURSOR GLOW (Desktop only) ---------- */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(68, 119, 254, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.cursor-glow.active {
  opacity: 1;
}

/* ---------- NUMBER COUNTER ENHANCEMENT ---------- */
.counter-box h2 {
  font-variant-numeric: tabular-nums;
}

/* ---------- SMOOTH SECTION TRANSITIONS ---------- */
.section-padding {
  position: relative;
}

/* ---------- MOBILE BOTTOM NAV ---------- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 1000;
  padding: 8px 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .mobile-bottom-nav {
  background: rgba(26, 26, 26, 0.95);
  border-top-color: rgba(255, 255, 255, 0.1);
}

.mobile-bottom-nav .nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
}

.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.mobile-bottom-nav .nav-item i {
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item.active {
  color: #4477FE;
}

.mobile-bottom-nav .nav-item.cta-item {
  background: linear-gradient(135deg, #4477FE, #667eea);
  color: #fff;
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(68, 119, 254, 0.4);
}

.mobile-bottom-nav .nav-item.cta-item:hover {
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 767.98px) {
  .mobile-bottom-nav {
    display: block;
  }

  /* Add padding to body so content isn't hidden behind bottom nav */
  body {
    padding-bottom: 80px;
  }

  /* Move chat widget and back-to-top above bottom nav */
  .chat-widget {
    bottom: 90px !important;
  }

  .back-to-top {
    bottom: 160px;
  }

  .mode-toggle {
    bottom: 160px !important;
  }
}

/* ---------- IMAGE LAZY LOAD EFFECT ---------- */
img.lazy-fade {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img.lazy-fade.loaded {
  opacity: 1;
}

/* ---------- SKELETON LOADING ---------- */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%);
  background-size: 200% 100%;
}

/* ---------- TOOLTIP ENHANCEMENT ---------- */
[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #111859;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 100;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ---------- ENHANCED RESPONSIVE ---------- */
@media (max-width: 991.98px) {
  .hero-content h1 {
    font-size: 2.5rem !important;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-padding {
    padding: 4rem 0;
  }
}

@media (max-width: 767.98px) {
  .hero-content h1 {
    font-size: 2rem !important;
  }

  .hero-content p {
    font-size: 1rem !important;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .hero-slider .carousel-item {
    min-height: 500px;
  }

  .hero-shape {
    display: none;
  }

  .counter-box {
    padding: 1.5rem 1rem;
  }

  .trust-bar {
    padding: 12px 0;
  }
}

/* ---------- DARK MODE GLOBAL TEXT FIX ---------- */
[data-theme="dark"] .text-muted {
  color: #9a9a9a !important;
}

[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6,
[data-theme="dark"] .h1, [data-theme="dark"] .h2, [data-theme="dark"] .h3,
[data-theme="dark"] .h4, [data-theme="dark"] .h5, [data-theme="dark"] .h6 {
  color: #f0f0f0;
}

[data-theme="dark"] p {
  color: #c8c8c8;
}

[data-theme="dark"] .lead {
  color: #b8b8b8;
}

[data-theme="dark"] .section-title {
  color: #fff !important;
}

[data-theme="dark"] .section-title::after {
  background-color: #5588ff;
}

/* Contact section text visibility */
[data-theme="dark"] .contact-section p,
[data-theme="dark"] .contact-section .text-muted {
  color: #b0b0b0 !important;
}

[data-theme="dark"] .contact-section h3 a {
  color: #5588ff;
}

/* Form labels in dark mode */
[data-theme="dark"] .form-floating > label {
  color: #999 !important;
}

[data-theme="dark"] .form-floating > .form-control:focus ~ label,
[data-theme="dark"] .form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: #5588ff !important;
}

/* Benefits section icons text */
[data-theme="dark"] .small.text-muted {
  color: #999 !important;
}

/* ---------- DARK MODE LOCATION PAGES ---------- */
[data-theme="dark"] .card.h-100,
[data-theme="dark"] .card.border-0.shadow-sm {
  background-color: rgba(50, 50, 55, 0.95);
  border: 1px solid rgba(68, 119, 254, 0.15) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  color: #e0e0e0;
}

[data-theme="dark"] .card .card-title {
  color: #fff;
}

[data-theme="dark"] .card .card-text {
  color: #b0b0b0;
}

[data-theme="dark"] .alert {
  background-color: rgba(50, 50, 55, 0.95);
  border: 1px solid rgba(68, 119, 254, 0.2) !important;
  color: #e0e0e0;
}

[data-theme="dark"] .alert h4,
[data-theme="dark"] .alert h5,
[data-theme="dark"] .alert-heading {
  color: #fff;
}

[data-theme="dark"] section[style*="background-color: #f8f9fa"] {
  background-color: #1a1a1a !important;
}

[data-theme="dark"] .service-card {
  background-color: rgba(40, 40, 45, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .service-card .card-body {
  background-color: transparent;
}

[data-theme="dark"] .accordion-item {
  background-color: rgba(40, 40, 45, 0.95) !important;
}

/* ---------- PRINT STYLES ---------- */
@media print {
  .preloader,
  .scroll-progress,
  .back-to-top,
  .mobile-bottom-nav,
  .chat-widget,
  .mode-toggle,
  .cursor-glow,
  .hero-particles {
    display: none !important;
  }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .trust-scroll {
    animation: none;
  }

  .hero-particle {
    display: none;
  }
}
