/* Dark Mode Styles */
[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --card-bg: #2d2d2d;
    --card-border: #404040;
    --section-bg: #1f1f1f;
}

/* Apply dark mode to body and main sections */
[data-theme="dark"] body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* White background sections become dark */
[data-theme="dark"] .seo-section,
[data-theme="dark"] .skills-section,
[data-theme="dark"] .blog-section,
[data-theme="dark"] .contact-section,
[data-theme="dark"] .services-section,
[data-theme="dark"] .about-company,
[data-theme="dark"] .why-choose-us,
[data-theme="dark"] .case-studies,
[data-theme="dark"] .expert-team,
[data-theme="dark"] .testimonials-section,
[data-theme="dark"] .pricing-section,
[data-theme="dark"] .who-we-are-section,
[data-theme="dark"] .our-story-section {
    background-color: var(--section-bg) !important;
    color: var(--text-color);
}

/* Cards become white with dark background */
[data-theme="dark"] .service-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .skill-item,
[data-theme="dark"] .stat-item,
[data-theme="dark"] .team-member,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .contact-form-section,
[data-theme="dark"] .who-we-are-right,
[data-theme="dark"] .our-story-card {
    background-color: var(--card-bg) !important;
    color: var(--text-color) !important;
    border-color: var(--card-border);
}

/* Text colors in dark mode */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] .section-title,
[data-theme="dark"] .page-title,
[data-theme="dark"] .hero-title,
[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] .breadcrumb,
[data-theme="dark"] .contact-icon-text,
[data-theme="dark"] .who-we-are-title,
[data-theme="dark"] .who-we-are-stat-number,
[data-theme="dark"] .who-we-are-stat-label,
[data-theme="dark"] .who-we-are-powered-by,
[data-theme="dark"] .who-we-are-logo-text {
    color: var(--text-color) !important;
}

/* Who We Are subtitle stays green in dark mode */
[data-theme="dark"] .who-we-are-subtitle {
    color: #25a849 !important;
}

/* Who We Are logo icon stays green in dark mode */
[data-theme="dark"] .who-we-are-logo-icon svg {
    fill: #25a849 !important;
}

/* Who We Are right container border stays green in dark mode */
[data-theme="dark"] .who-we-are-right {
    border-color: #25a849 !important;
}

/* Form elements */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background-color: var(--card-bg) !important;
    color: var(--text-color) !important;
    border-color: var(--card-border) !important;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus {
    border-color: #25a849 !important;
    background-color: var(--card-bg) !important;
}

/* Footer */
[data-theme="dark"] .footer {
    background-color: #0f0f0f !important;
    color: var(--text-color);
}

[data-theme="dark"] .footer-section a,
[data-theme="dark"] .footer-section ul li {
    color: #cccccc !important;
}

[data-theme="dark"] .footer-section a:hover {
    color: #25a849 !important;
}

/* Contact icons */
[data-theme="dark"] .contact-icon-item {
    background-color: var(--card-bg) !important;
    border-color: var(--card-border) !important;
    color: var(--text-color) !important;
}

/* Tag text in service cards - black text in dark mode */
[data-theme="dark"] .service-card .tag {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* Trust section (Powered by QB Tech Solutions) - green in dark mode */
[data-theme="dark"] .trust-section {
    background: linear-gradient(135deg, #25a849, #208243) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .trust-section h3 {
    color: #ffffff !important;
}

[data-theme="dark"] .brand-item {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

/* Team section - black background in dark mode */
[data-theme="dark"] .team-section {
    background-color: var(--section-bg) !important;
}

/* CTA sections stay green in dark mode */
[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, #25a849, #208243) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .cta {
    background: linear-gradient(135deg, #25a849, #208243) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .cta-title,
[data-theme="dark"] .cta-content h2 {
    color: #ffffff !important;
}

/* Stats section (Real Learning. Real Results.) green in dark mode */
[data-theme="dark"] .stats-section {
    background: linear-gradient(135deg, #25a849, #208243) !important;
    color: #ffffff !important;
}
[data-theme="dark"] .stats-section .section-title,
[data-theme="dark"] .stats-section .stat-number,
[data-theme="dark"] .stats-section .stat-label {
    color: #ffffff !important;
}

/* Do not restyle stat items in the green stats section */
[data-theme="dark"] .stats-section .stat-item,
[data-theme="dark"] .stats-section .stat-item.in-view {
    background-color: transparent !important;
    color: inherit !important;
    border-color: transparent !important;
}

/* Keep green areas as they are - green sections remain unchanged */
/* Green gradient backgrounds, buttons, and accents stay green */

/* Dark Mode Toggle Button */
.theme-toggle {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 20px;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.theme-toggle i {
    font-size: 20px;
    color: #ffffff;
    transition: all 0.3s ease;
}

[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .theme-toggle i {
    color: #ffd700;
}

/* Navbar adjustments */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Ensure hamburger menu works with toggle */
@media (max-width: 768px) {
    .theme-toggle {
        width: 40px;
        height: 40px;
        margin-left: 10px;
    }
    
    .theme-toggle i {
        font-size: 18px;
    }
}

