/* Theme Toggle and Additional Features Styles */

/* Light Mode Variables */
[data-theme="light"] {
    --primary-bg: #F8F9FA;
    --secondary-bg: #FFFFFF;
    --card-bg: #FFFFFF;
    --text-primary: #1A202C;
    --text-secondary: #4A5568;
    --bg-gradient-start: #F8F9FA;
    --bg-gradient-middle: #E9ECEF;
    --bg-gradient-end: #DEE2E6;
}

[data-theme="light"] body {
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 50%, #DEE2E6 100%);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .hero {
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
}

[data-theme="light"] .hero-bg-element {
    background: radial-gradient(circle, rgba(139, 95, 191, 0.1), transparent);
}

[data-theme="light"] .card,
[data-theme="light"] .service-card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .integration-card,
[data-theme="light"] .process-card {
    background: #FFFFFF;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(139, 95, 191, 0.2);
    color: #1A202C;
}

[data-theme="light"] .service-card:hover,
[data-theme="light"] .testimonial-card:hover,
[data-theme="light"] .integration-card:hover,
[data-theme="light"] .process-card:hover {
    box-shadow: 
        0 30px 60px rgba(139, 95, 191, 0.3),
        0 0 40px rgba(151, 104, 246, 0.2);
}

[data-theme="light"] .service-card:hover *,
[data-theme="light"] .testimonial-card:hover *,
[data-theme="light"] .integration-card:hover *,
[data-theme="light"] .process-card:hover * {
    color: #FFFFFF !important;
}

[data-theme="light"] .service-card h3,
[data-theme="light"] .testimonial-card h3,
[data-theme="light"] .integration-card h3,
[data-theme="light"] .process-card h3,
[data-theme="light"] .service-card p,
[data-theme="light"] .testimonial-card p,
[data-theme="light"] .integration-card p,
[data-theme="light"] .process-card p {
    color: #1A202C;
    transition: color 0.4s ease;
}

[data-theme="light"] footer {
    background: #FFFFFF;
    border-top: 1px solid rgba(139, 95, 191, 0.2);
}

[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
    background: #F8F9FA;
    color: #1A202C;
    border-color: rgba(139, 95, 191, 0.3);
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-purple));
    width: 0%;
    z-index: 10000;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    margin-right: 1rem;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 0 20px rgba(139, 95, 191, 0.5);
}

.theme-toggle svg {
    transition: all 0.3s ease;
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}

[data-theme="light"] .theme-toggle {
    background: var(--primary-color);
    color: white;
}

/* Exit Intent Popup */
.exit-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.exit-popup.active {
    display: flex;
}

.exit-popup-content {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 3rem;
    max-width: 550px;
    width: 90%;
    position: relative;
    text-align: center;
    animation: slideUp 0.4s ease;
    border: 3px solid var(--primary-color);
    box-shadow: 0 20px 60px rgba(139, 95, 191, 0.4);
}

.exit-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exit-popup-close:hover {
    color: var(--primary-color);
    background: rgba(139, 95, 191, 0.1);
    transform: rotate(90deg);
}

.exit-popup-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(139, 95, 191, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(139, 95, 191, 0);
    }
}

.exit-popup h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 800;
}

.exit-popup p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.exit-popup strong {
    color: var(--primary-color);
    font-weight: 700;
}

.exit-popup-benefits {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
    display: inline-block;
    background: rgba(139, 95, 191, 0.1);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(139, 95, 191, 0.2);
}

.exit-popup-benefits li {
    color: var(--text-primary);
    padding: 0.75rem 0;
    font-size: 1.05rem;
    font-weight: 500;
}

.exit-popup-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.exit-popup-cta {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    font-weight: 600;
}

.exit-popup-actions .btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--text-secondary);
}

.exit-popup-actions .btn-secondary:hover {
    background: var(--text-secondary);
    color: white;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(80px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Responsive for Exit Popup */
@media (max-width: 768px) {
    .exit-popup-content {
        padding: 2rem 1.5rem;
        max-width: 95%;
    }

    .exit-popup h2 {
        font-size: 1.75rem;
    }

    .exit-popup p {
        font-size: 1rem;
    }

    .exit-popup-icon {
        width: 80px;
        height: 80px;
    }

    .exit-popup-icon svg {
        width: 50px;
        height: 50px;
    }

    .exit-popup-actions {
        flex-direction: column;
    }

    .exit-popup-benefits {
        padding: 1rem 1.5rem;
    }

    .exit-popup-benefits li {
        font-size: 0.95rem;
        padding: 0.5rem 0;
    }
}

/* Theme Toggle Responsive */
@media (max-width: 968px) {
    .theme-toggle {
        width: 40px;
        height: 40px;
        margin-right: 0.5rem;
    }
}
