/* =============================================
   DARK SHADE HIERARCHY SYSTEM
   ALL SECTIONS USE DARK SHADES - NO LIGHT/GRID BACKGROUNDS
   Only applies in DARK MODE - light mode remains unchanged
   ============================================= */

/* =============================================
   DARK MODE: Three-tier solid dark shade system
   
   SHADE 1: Deepest black (#000000) - Hero/Feature sections
   SHADE 2: Near-black (#0f0f0f) - Primary content sections  
   SHADE 3: Dark charcoal (#1a1a1a) - Secondary/Supporting sections
   
   NO GRID TEXTURES - Pure solid dark colors only
   ============================================= */

/* =============================================
   SHADE 1: DEEPEST BLACK - Hero & Key Feature Sections
   ============================================= */
body.dark .breadcrumb-section,
body.dark .home2-banner-section,
body.dark .banner-section,
body.dark .hero-area,
body.dark .our-service-section,
body.dark .service-section,
body.dark .home2-process-section,
body.dark .home4-process-section {
  background-color: #0D0D0D !important;
  background-image: none !important;
}

/* =============================================
   SHADE 2: NEAR-BLACK - Primary Content Sections
   ============================================= */
body.dark .about-us-section,
body.dark .portfolio-section,
body.dark .portfolio-showcase-section,
body.dark .work-section,
body.dark .choose-area,
body.dark .testimonial-area,
body.dark .team-section {
  background-color: #0f0f0f !important;
  background-image: none !important;
}

/* =============================================
   SHADE 3: DARK CHARCOAL - Secondary/Supporting Sections
   ============================================= */
body.dark .partner-area,
body.dark .blog-area,
body.dark .news-area,
body.dark .case-study-section,
body.dark .industry-section,
body.dark .award-section,
body.dark .faq-section,
body.dark .contact-section,
body.dark .career-section,
body.dark .pricing-plan-section-modern,
body.dark .service-details-area,
body.dark .portfolio-details-area,
body.dark .news-details-area,
body.dark .case-study-details-area,
body.dark .team-details-area,
body.dark .career-details-area,
body.dark .industry-details-area {
  background-color: #1a1a1a !important;
  background-image: none !important;
}

/* =============================================
   ENHANCED SECTION DIVIDERS FOR DARK MODE
   Sparkle dividers are more prominent between dark shades
   ============================================= */
body.dark .section-divider.style-sparkle::before {
  height: 2px !important;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 90, 0, 0.2) 10%,
    rgba(255, 90, 0, 0.8) 50%,
    rgba(255, 90, 0, 0.2) 90%,
    transparent 100%
  ) !important;
  box-shadow: 0 0 15px rgba(255, 90, 0, 0.4) !important;
}

/* Hide line dividers - sparkle dividers provide better separation */
body.dark .section-divider.style-line {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* =============================================
   TEXT CONTRAST ENHANCEMENTS FOR DARK MODE
   Ensure readability across all shade levels
   HIGH SPECIFICITY: uses body.dark to override Bootstrap !important rules
   ============================================= */

/* Primary text - highest contrast */
body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark h5,
body.dark h6,
body.dark .section-title h2,
body.dark .section-title h3 {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Secondary text - paragraphs, lead text */
body.dark p,
body.dark .lead {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* ==============================================
   BOOTSTRAP .text-muted OVERRIDE
   Bootstrap sets color: #6c757d !important which
   makes text nearly invisible on dark backgrounds.
   We need equal or higher specificity to override.
   ============================================== */

/* Direct .text-muted elements */
body.dark .text-muted {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* .text-muted on paragraphs */
body.dark p.text-muted,
body.dark p.lead.text-muted {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* li items INSIDE a ul/ol with .text-muted class */
body.dark ul.text-muted li,
body.dark ol.text-muted li {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* li items that directly have .text-muted class */
body.dark li.text-muted {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* .small / small text in dark mode */
body.dark small,
body.dark .small,
body.dark p.small,
body.dark .text-muted.small,
body.dark .small.text-muted {
  color: rgba(255, 255, 255, 0.70) !important;
}

/* Links with .text-muted */
body.dark a.text-muted {
  color: rgba(255, 255, 255, 0.70) !important;
}
body.dark a.text-muted:hover {
  color: #ff5a00 !important;
}

/* Any span that is .text-muted */
body.dark span.text-muted {
  color: rgba(255, 255, 255, 0.70) !important;
}

/* list-unstyled items (common Bootstrap utility on product cards) */
body.dark ul.list-unstyled li,
body.dark ul.list-unstyled.text-muted li {
  color: rgba(255, 255, 255, 0.80) !important;
}

/* General .content containers */
body.dark .content {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Tertiary text - meta info */
body.dark .description,
body.dark .meta {
  color: rgba(255, 255, 255, 0.65) !important;
}

/* =============================================
   ORANGE ACCENT PRESERVATION
   Maintain brand orange (#FF5A00) across all dark shades
   ============================================= */
body.dark .primary-btn1,
body.dark .secondary-btn-outline,
body.dark .view-more-btn,
body.dark a.primary-btn1,
body.dark a.secondary-btn-outline {
  background-color: #ff5a00 !important;
  border-color: #ff5a00 !important;
  color: #ffffff !important;
}

body.dark .primary-btn1:hover,
body.dark .secondary-btn-outline:hover,
body.dark .view-more-btn:hover {
  background-color: #ff7a2e !important;
  border-color: #ff7a2e !important;
  box-shadow: 0 4px 20px rgba(255, 90, 0, 0.4) !important;
}

/* Orange accents on links and highlights */
body.dark a:not(.btn):hover,
body.dark .highlight,
body.dark .accent-text {
  color: #ff5a00 !important;
}

/* =============================================
   CARD & COMPONENT BACKGROUNDS IN DARK MODE
   ============================================= */

/* Glass cards on darkest backgrounds */
body.dark .our-service-section .glass-card,
body.dark .service-section .glass-card {
  background: rgba(20, 20, 20, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Glass cards on near-black backgrounds */
body.dark .home2-process-section .glass-card,
body.dark .home4-process-section .glass-card {
  background: rgba(26, 29, 33, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Glass cards on charcoal backgrounds */
body.dark .about-us-section .glass-card,
body.dark .portfolio-section .glass-card {
  background: rgba(10, 10, 10, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* =============================================
   LIGHT MODE - UNCHANGED
   Light mode keeps existing white/light gray scheme
   ============================================= */

body:not(.dark) .breadcrumb-section,
body:not(.dark) .home2-banner-section {
  background-color: #fafbfc !important;
}

body:not(.dark) .about-us-section,
body:not(.dark) .service-section,
body:not(.dark) .portfolio-section,
body:not(.dark) .work-section,
body:not(.dark) .partner-area,
body:not(.dark) .blog-area,
body:not(.dark) .team-section {
  background-color: #ffffff !important;
}

/* =============================================
   RESPONSIVE ADJUSTMENTS
   ============================================= */

@media (max-width: 767px) {
  /* Slightly reduce text shadows on mobile for crispness */
  body.dark h1,
  body.dark h2 {
    text-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.2);
  }
}

/* =============================================
   NOTES:
   - Three-tier solid dark shade system for visual depth
   - NO GRID TEXTURES - All sections are pure solid dark colors
   - Each shade is distinct: #000000 → #0f0f0f → #1a1a1a
   - Light mode remains completely unchanged
   - Orange accent (#FF5A00) preserved throughout
   - Text contrast optimized for all shade levels
   - Sparkle dividers enhanced for better section separation
   ============================================= */
