/* ===================================
   SMARTSTONE UI COLOR FIXES
   Fixes white text on white background issues
   =================================== */

/* ===================================
   1. SERVICES SECTION - REMOVE BACKGROUND
   =================================== */
.services-owl-wrapper {
    background: transparent !important;
    border: none !important;
}

[data-theme="dark"] .services-owl-wrapper {
    background: transparent !important;
    border: none !important;
}
/* Fix hero buttons width on desktop */
.hero-buttons {
    width: auto !important;
    max-width: 100% !important;
    display: inline-flex !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Ensure buttons don't stretch */
.hero-buttons .btn {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 180px; /* Adjust as needed */
}
/* ===================================
   2. SECTION SUBTITLE - GLOBAL FIX (WHITE)
   =================================== */
.section-subtitle {
    color: #fff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

[data-theme="dark"] .section-subtitle {
    color: #fff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* ===================================
   3. HERO BUTTON HOVER FIX
   =================================== */
.btn.btn-outline.btn-lg,
.btn-hero.btn-outline {
    background: transparent !important;
    color: #16213e !important;
    border: 2px solid #16213e  !important;
    transition: all 0.3s ease !important;
}

.btn.btn-outline.btn-lg:hover,
.btn-hero.btn-outline:hover {
    background: #fff !important;
    color: var(--accent) !important;
    border-color: var(--accent) !important;
    transform: translateY(-2px) !important;
}

/* ===================================
   4. CLIENTS SLIDER VISIBILITY & ANIMATION
   =================================== */
.clients-slider-wrapper {
    opacity: 1 !important;
    visibility: visible !important;
}

.clients-slider-wrapper.fade-in-scale {
    animation: fadeInScale 0.6s ease forwards !important;
}

.clients-slider-wrapper.fade-in-scale.visible {
    opacity: 1 !important;
    transform: scale(1) !important;
    margin: 0 10rem;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===================================
   5. CLIENT LOGO SLIDER - INFINITE LOOP STYLES
   =================================== */
.clients-slider {
    display: flex !important;
    animation: clientsScroll 30s linear infinite !important;
    width: max-content !important;
}

.clients-slider:hover {
    animation-play-state: paused !important;
}

/* Mobile-specific clients slider */
@media (max-width: 768px) {
    .clients-slider {
        animation: clientsScroll 15s linear infinite !important; /* Faster on mobile - 2 seconds per slide */
    }
    
    .clients-slider-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    .clients-slider-wrapper.fade-in-scale.visible{
        margin: 0;
    }
    .clients-slider-wrapper::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
}

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

.client-slide {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.client-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.client-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Fix footer text color issues */
.main-footer {
    background: var(--primary) !important;
    color: var(--text-inverse) !important;
}

.footer-logo .logo-text {
    color: var(--text-inverse) !important;
}

.footer-about p {
    color: var(--text-inverse) !important;
    opacity: 0.9 !important;
}

.footer-col h4 {
    color: var(--text-inverse) !important;
}

.footer-col ul li a {
    color: var(--text-inverse) !important;
    opacity: 0.8 !important;
}

.footer-col ul li a:hover {
    color: var(--accent-light) !important;
    opacity: 1 !important;
}

.footer-contact ul li span,
.footer-contact ul li a {
    color: var(--text-inverse) !important;
    opacity: 0.8 !important;
}

.footer-contact ul li a:hover {
    color: var(--accent-light) !important;
    opacity: 1 !important;
}

.footer-bottom p {
    color: var(--text-inverse) !important;
    opacity: 0.7 !important;
}

.footer-links a {
    color: var(--text-inverse) !important;
    opacity: 0.7 !important;
}

.footer-links a:hover {
    color: var(--accent-light) !important;
    opacity: 1 !important;
}

/* Dark theme footer fixes */
[data-theme="dark"] .main-footer {
    background: var(--bg-dark) !important;
    color: var(--text) !important;
}

[data-theme="dark"] .footer-logo .logo-text {
    color: var(--text) !important;
}

[data-theme="dark"] .footer-about p {
    color: var(--text) !important;
    opacity: 0.9 !important;
}

[data-theme="dark"] .footer-col h4 {
    color: var(--text) !important;
}

[data-theme="dark"] .footer-col ul li a {
    color: var(--text) !important;
    opacity: 0.8 !important;
}

[data-theme="dark"] .footer-col ul li a:hover {
    color: var(--accent) !important;
    opacity: 1 !important;
}

[data-theme="dark"] .footer-contact ul li span,
[data-theme="dark"] .footer-contact ul li a {
    color: var(--text) !important;
    opacity: 0.8 !important;
}

[data-theme="dark"] .footer-contact ul li a:hover {
    color: var(--accent) !important;
    opacity: 1 !important;
}

[data-theme="dark"] .footer-bottom p {
    color: var(--text) !important;
    opacity: 0.7 !important;
}

[data-theme="dark"] .footer-links a {
    color: var(--text) !important;
    opacity: 0.7 !important;
}

[data-theme="dark"] .footer-links a:hover {
    color: var(--accent) !important;
    opacity: 1 !important;
}

/* Fix service overlay text visibility */
.service-overlay {
    background: rgba(0, 0, 0, 0.7) !important;
}

.service-overlay-content h3,
.service-overlay-content p {
    color: var(--text-inverse) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* Fix client section text and background */
.clients-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

.clients-section .section-title {
    color: var(--primary) !important;
}

.clients-section .section-subtitle {
    color: #fff !important;
}

.clients-section .section-description {
    color: var(--text-muted) !important;
}

.client-title {
    color: var(--text) !important;
}

.client-description {
    color: var(--text-light) !important;
}

/* Fix client cards contrast */
.client-card {
    background: var(--bg) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.client-card:hover {
    background: var(--bg) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px) !important;
}

.client-info h4 {
    color: var(--text) !important;
}

.client-website {
    color: var(--accent) !important;
}

.client-website:hover {
    color: var(--accent-hover) !important;
}

/* Dark theme clients section */
[data-theme="dark"] .clients-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
}

[data-theme="dark"] .clients-section .section-title {
    color: var(--text) !important;
}

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

[data-theme="dark"] .clients-section .section-description {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .client-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .client-card:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--accent) !important;
}

/* Fix testimonial text */
.testimonial-content {
    color: var(--text) !important;
}

.testimonial-author h4 {
    color: var(--text) !important;
}

.testimonial-author span {
    color: var(--text-muted) !important;
}

/* Fix hero section text */
.hero-title,
.hero-description,
.hero-subtitle {
    color: var(--text-inverse) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Fix CTA section text */
.cta-title,
.cta-description {
    color: var(--text-inverse) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* Fix section titles */
.section-title {
    color: var(--text) !important;
}

.section-description {
    color: var(--text-muted) !important;
}

/* Fix product cards */
.product-title,
.product-price {
    color: var(--text) !important;
}

.product-description,
.product-category {
    color: var(--text-light) !important;
}

/* Fix feature cards */
.feature-title {
    color: var(--text) !important;
}

.feature-description {
    color: var(--text-light) !important;
}

/* Fix dark theme overrides */
[data-theme="dark"] .top-bar {
    background: var(--bg-dark) !important;
    color: var(--text) !important;
}

[data-theme="dark"] .top-bar-left span {
    color: var(--text) !important;
}

[data-theme="dark"] .social-links a {
    color: var(--text) !important;
}

[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text) !important;
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: var(--text) !important;
}

/* Fix newsletter section */
.footer-newsletter h4 {
    color: var(--text-inverse) !important;
}

.footer-newsletter p {
    color: var(--text-inverse) !important;
    opacity: 0.9 !important;
}

.newsletter-form input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: var(--text-inverse) !important;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.newsletter-form input:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--accent-light) !important;
}

.newsletter-form button {
    background: var(--accent-gradient-btn) !important;
    color: white !important;
}

.newsletter-form button:hover {
    background: var(--accent-gradient-hover) !important;
    color: white !important;
}

/* Dark theme newsletter fixes */
[data-theme="dark"] .footer-newsletter p {
    color: var(--text) !important;
    opacity: 0.9 !important;
}

[data-theme="dark"] .newsletter-form input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--text) !important;
}

[data-theme="dark"] .newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Fix all headings and paragraphs */
[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: var(--text) !important;
}

/* Fix section text visibility */
/* .section-title,
.section-description,
.section-subtitle {
    color: var(--text) !important;
} */

[data-theme="dark"] .section-title,
[data-theme="dark"] .section-description,
[data-theme="dark"] .section-subtitle {
    color: var(--text) !important;
}

/* Fix feature cards text visibility */
.feature-title,
.feature-description {
    color: var(--text) !important;
}

[data-theme="dark"] .feature-title,
[data-theme="dark"] .feature-description {
    color: var(--text) !important;
}

/* Fix product cards text visibility */
.product-title,
.product-description,
.product-category,
.product-price {
    color: var(--text) !important;
}

[data-theme="dark"] .product-title,
[data-theme="dark"] .product-description,
[data-theme="dark"] .product-category,
[data-theme="dark"] .product-price {
    color: var(--text) !important;
}

/* Fix category cards text visibility */
.category-card-title,
.category-card-count {
    color: var(--text-inverse) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* Fix testimonials text visibility */
.testimonial-quote,
.testimonial-author h4,
.testimonial-author span {
    color: var(--text) !important;
}

[data-theme="dark"] .testimonial-quote,
[data-theme="dark"] .testimonial-author h4,
[data-theme="dark"] .testimonial-author span {
    color: var(--text) !important;
}
