:root{
      --primary: #8CC633;
      --primarydark: #1B2D00;
      --primarylight: #A9DE59;
      --color-primarylight: #A9DE59;
      --secondary: #1C1A1B;
      --bodybg: #131F00;
      --bodyfg: #fff;
      --bodytext: #77775B;
      --primary-white: #fff;
      --text-dark: #77775B;
      --text-dark2: #77775B;
      --card: #292D32;
      --title: #1C1A1B;
      --black: #000;
      --text: #fff;
      --bg-card: #fff;
      --card-bg: #171717;
      --text-light: #171717b3; 
      --bg-light: #ECECDE;
      --white: #fff;
      
      
      --bg-gradient: linear-gradient(180deg, #203400 0%, #1C1A1B 100%); 
      --bg-gradient2: linear-gradient(90deg, #8CC633 0%, #A9DE59 100%);
     --bg-gradient3: linear-gradient(180deg, rgba(169, 222, 89, 0.5) 0%, rgba(169, 222, 89, 0) 87%);
      
      --font-family-title: "Space Grotesk";
      --font-family-base: "Space Grotesk";
      
}

/* Aggressive Dark Mode Global Fixes */
[data-theme-version="dark"] {
    --secondary: #fff;
    --secondary-hover: #ddd;
    --secondary-light: #2C2E30;
    --primary-white: #1B2D00;
    --bg-light: #131F00;
    --body-color: #fff;
    --text-dark: #eee;
    --text-dark2: rgba(255, 255, 255, 0.7);
    --title: #fff;
    --white: #fff;
    --bg-card: #2C2E30;
}

[data-theme-version="dark"] body,
[data-theme-version="dark"] .page-wraper,
[data-theme-version="dark"] .content-inner-1,
[data-theme-version="dark"] .content-inner-2 {
    background-color: #131F00 !important;
}

[data-theme-version="dark"] .page-text,
[data-theme-version="dark"] .post-share ul li a,
[data-theme-version="dark"] .headline,
[data-theme-version="dark"] .title,
[data-theme-version="dark"] .footer-title,
[data-theme-version="dark"] .text__char,
[data-theme-version="dark"] .text,
[data-theme-version="dark"] h1, 
[data-theme-version="dark"] h2, 
[data-theme-version="dark"] h3, 
[data-theme-version="dark"] h4, 
[data-theme-version="dark"] h5, 
[data-theme-version="dark"] h6 {
    color: #fff !important;
}

/* Service Cards Dark Mode */
[data-theme-version="dark"] .icon-bx-wraper.style-6,
[data-theme-version="dark"] .icon-bx-wraper.style-6 .icon-box,
[data-theme-version="dark"] .icon-bx-wraper.style-6 .icon-footer {
    background-color: #1a1a1a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme-version="dark"] .icon-bx-wraper.style-6 .icon-box .icon-content .title,
[data-theme-version="dark"] .icon-bx-wraper.style-6 .icon-box .icon-content .text {
    color: #fff !important;
}

/* Testimonial Dark Mode */
[data-theme-version="dark"] .testimonial-section-wrapper .testimonial-slide,
[data-theme-version="dark"] .testimonial-section-wrapper.style-2 .testimonial-slide,
[data-theme-version="dark"] .testimonial-section-wrapper .testimonial-rating-box,
[data-theme-version="dark"] .testimonial-swiper .swiper-slide,
[data-theme-version="dark"] .testimonial-rating-box,
[data-theme-version="dark"] .testimonial-slide {
    background-color: #1a1a1a !important;
    background: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-theme-version="dark"] .testimonial-section-wrapper .testimonial-slide .text,
[data-theme-version="dark"] .testimonial-section-wrapper.style-2 .testimonial-slide .text,
[data-theme-version="dark"] .testimonial-section-wrapper .testimonial-rating-box .text,
[data-theme-version="dark"] .testimonial-section-wrapper .testimonial-rating-box .title,
[data-theme-version="dark"] .testimonial-slide .text,
[data-theme-version="dark"] .testimonial-rating-box .title {
    color: #fff !important;
}

/* Footer Dark Mode */
[data-theme-version="dark"] .site-footer.style-4 {
    background-color: #111 !important;
    color: #fff !important;
}

[data-theme-version="dark"] .site-footer.style-4 .footer-top-title .title,
[data-theme-version="dark"] .site-footer.style-4 .widget .footer-title,
[data-theme-version="dark"] .site-footer.style-4 .widget ul li a,
[data-theme-version="dark"] .site-footer.style-4 .animation-btn.style-1 .text__char {
    color: #fff !important;
}

[data-theme-version="dark"] .site-footer.style-4 .footer-form-wrapper {
    background-color: #1a1a1a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme-version="dark"] .site-footer.style-4 .form-control {
    background-color: #2c2c2c !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

[data-theme-version="dark"] .site-footer.style-4 svg path {
    stroke: #fff !important;
}

/* Global Component Dark Mode Overrides */
[data-theme-version="dark"] [class*="icon-bx-wraper"],
[data-theme-version="dark"] .icon-bx-wraper,
[data-theme-version="dark"] .dz-card,
[data-theme-version="dark"] .blog-post,
[data-theme-version="dark"] .item-box,
[data-theme-version="dark"] .box,
[data-theme-version="dark"] .pricingtable-wrapper,
[data-theme-version="dark"] .bg-light,
[data-theme-version="dark"] .bg-white,
[data-theme-version="dark"] .bg-gray,
[data-theme-version="dark"] .main-bar,
[data-theme-version="dark"] .site-header,
[data-theme-version="dark"] .header-nav,
[data-theme-version="dark"] .footer-form-wrapper,
[data-theme-version="dark"] .footer-bottom,
[data-theme-version="dark"] .site-footer.style-4 {
    background-color: #131F00 !important;
    background: #131F00 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme-version="dark"] .testimonial-slide,
[data-theme-version="dark"] .testimonial-rating-box,
[data-theme-version="dark"] .swiper-slide,
[data-theme-version="dark"] .chat-window,
[data-theme-version="dark"] .chat-footer {
    background-color: #1a1a1a !important;
    background: #1a1a1a !important;
}

[data-theme-version="dark"] .title,
[data-theme-version="dark"] .text,
[data-theme-version="dark"] h1, 
[data-theme-version="dark"] h2, 
[data-theme-version="dark"] h3, 
[data-theme-version="dark"] h4, 
[data-theme-version="dark"] h5, 
[data-theme-version="dark"] h6,
[data-theme-version="dark"] p,
[data-theme-version="dark"] span,
[data-theme-version="dark"] li,
[data-theme-version="dark"] a,
[data-theme-version="dark"] i,
[data-theme-version="dark"] .icon-content .title,
[data-theme-version="dark"] .icon-content .text,
[data-theme-version="dark"] .navbar-nav > li > a,
[data-theme-version="dark"] .footer-title,
[data-theme-version="dark"] .text__char {
    color: #fff !important;
}

[data-theme-version="dark"] .form-control {
    background-color: #2c2c2c !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme-version="dark"] .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Specific fix for elements using var(--secondary) or var(--title) */
[data-theme-version="dark"] * {
    --secondary: #fff;
    --title: #fff;
    --title-color: #fff;
}

[data-theme-version="dark"] i[class*="flaticon-"],
[data-theme-version="dark"] i[class*="fa-"],
[data-theme-version="dark"] .icon-bx i {
    color: #fff !important;
}

/* General Layout Fixes */
.section-head .title {
    text-transform: inherit;
}

.section-head p {
    color: var(--text-dark2);
}

.btn {
    text-transform: initial;
}

.main-banner {
    background: var(--bg-light);
}

.custmize {
    background: var(--bg-light) !important;
}

.pagination.style-1 li .next {
    border-radius: 50px !important;
}

.contact-section:after {
    background-color: var(--primary);
}

.btn-quantity.light .btn {
    border-radius: 10px;
}

img {
    border-radius: 20px;
}

.banner-gradient1 .rating-bx .title,
.banner-gradient1 .rating-bx .text,
.banner-gradient1 .section-head .title,
.banner-gradient1 .section-head .text {
    color: #fff;
}

::selection {
    color: #ffffff;
    background: var(--primary);
}