/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-color: #818cf8;
    --secondary-color: #a78bfa;
    --dark-color: #f9fafb;
    --light-color: #1f2937;
    --text-color: #d1d5db;
    --bg-color: #111827;
    --card-bg: #1f2937;
    --gradient: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
}

body[data-theme="dark"] {
    background: var(--bg-color);
    color: var(--text-color);
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s;
}

.loader {
    text-align: center;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.3s;
}

/* Navigation Enhancements */
.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Language switcher removed - English only */

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
}

/* Hero Enhancements */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    animation: slideInLeft 0.8s ease;
    color: white;
}

.points-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    margin-top: 20px;
    font-weight: 600;
    animation: bounce 2s infinite;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8e9ff 100%);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.section-subtitle {
    text-align: center;
    color: var(--text-color);
    font-size: 1.1rem;
    margin-top: -10px;
    margin-bottom: 50px;
}

.testimonials-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s;
    z-index: 10;
}

.testimonial-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.testimonial-nav.prev {
    left: -80px;
}

.testimonial-nav.next {
    right: -80px;
}

.testimonials-slider {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-card {
    position: absolute;
    width: 100%;
    background: white;
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
    display: none;
    text-align: center;
}

.testimonial-card.active {
    display: block;
    animation: slideIn 0.5s ease;
}

.quote-icon {
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 3rem;
    color: rgba(99, 102, 241, 0.1);
}

.stars {
    color: #fbbf24;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.stars i {
    margin: 0 2px;
}

.testimonial-text {
    font-size: 1.25rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 35px;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.testimonial-author img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.testimonial-author h4 {
    color: var(--dark-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.testimonial-author p {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #d1d5db;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary-color);
    width: 35px;
    border-radius: 6px;
}

.dot:hover {
    background: var(--secondary-color);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .testimonial-nav.prev {
        left: 10px;
    }

    .testimonial-nav.next {
        right: 10px;
    }

    .testimonial-card {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .testimonials-slider {
        height: auto;
    }

    .testimonial-card {
        padding: 30px 25px;
    }

    .testimonial-text {
        font-size: 1.1rem;
    }

    .testimonial-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background: white;
}

.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: white;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--light-color);
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 20px 20px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    position: relative;
    animation: slideInUp 0.3s;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close:hover {
    color: var(--primary-color);
}

/* ROI Calculator */
.calculator-form {
    margin-top: 30px;
}

.calc-input {
    margin-bottom: 20px;
}

.calc-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.calc-input input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
}

.roi-result {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 10px;
    display: none;
}

.roi-result.show {
    display: block;
    animation: slideInUp 0.3s;
}

/* Quiz Modal */
.quiz-modal {
    max-width: 700px;
}

.quiz-progress {
    margin: 30px 0;
}

.progress-bar {
    height: 10px;
    background: #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    width: 20%;
    transition: width 0.5s;
}

#quiz-counter {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: var(--text-color);
}

#quiz-question {
    margin: 30px 0 20px;
    color: var(--dark-color);
}

#quiz-options {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.quiz-option {
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.quiz-option:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.quiz-option.selected {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

/* Chatbot */
.chatbot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1500;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    position: relative;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
}

.chatbot-window.active {
    display: flex;
    animation: slideInUp 0.3s;
}

.chatbot-header {
    padding: 20px;
    background: var(--gradient);
    color: white;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bot-message,
.user-message {
    padding: 12px 16px;
    border-radius: 15px;
    max-width: 80%;
    animation: fadeIn 0.3s;
}

.bot-message {
    background: var(--light-color);
    align-self: flex-start;
}

.user-message {
    background: var(--primary-color);
    color: white;
    align-self: flex-end;
}

.chatbot-input {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #e5e7eb;
}

.chatbot-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    outline: none;
}

.chatbot-input button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.chatbot-input button:hover {
    background: var(--secondary-color);
}

/* Live Chat */
.live-chat {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1400;
}

.live-chat-btn {
    padding: 12px 24px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.3);
    transition: all 0.3s;
}

.live-chat-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

/* Achievement Badges */
.achievement-badges {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.badge {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    filter: grayscale(100%);
    transition: all 0.3s;
}

.badge.unlocked {
    filter: grayscale(0);
    background: rgba(255, 215, 0, 0.2);
    animation: bounce 0.5s;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Dark Mode Specific Styles */
[data-theme="dark"] {
    background: var(--bg-color) !important;
}

[data-theme="dark"] body {
    background: var(--bg-color) !important;
    color: var(--text-color) !important;
}

[data-theme="dark"] .navbar {
    background: var(--card-bg) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
}

[data-theme="dark"] .services {
    background: var(--bg-color) !important;
}

[data-theme="dark"] .model-demo {
    background: #0f172a !important;
}

[data-theme="dark"] .testimonials {
    background: linear-gradient(135deg, #1a1b3a 0%, #2d2e5f 100%) !important;
}

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

[data-theme="dark"] .testimonial-nav {
    background: var(--card-bg) !important;
    color: #a5b4fc !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .testimonial-nav:hover {
    background: #6366f1 !important;
    color: white !important;
}

[data-theme="dark"] .contact {
    background: var(--bg-color) !important;
}

[data-theme="dark"] .newsletter {
    background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 100%) !important;
}

[data-theme="dark"] .footer {
    background: #0f172a !important;
}

[data-theme="dark"] .faq {
    background: var(--bg-color) !important;
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .chatbot-window,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .floating-card,
[data-theme="dark"] .demo-display,
[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea,
[data-theme="dark"] .newsletter-form input,
[data-theme="dark"] .calc-input input,
[data-theme="dark"] .quiz-option {
    background: var(--card-bg) !important;
    color: var(--text-color) !important;
    border-color: #374151 !important;
}

[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .testimonial-card:hover,
[data-theme="dark"] .floating-card:hover {
    background: #374151 !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] .hero-title,
[data-theme="dark"] .section-title,
[data-theme="dark"] .plan-name,
[data-theme="dark"] .blog-title,
[data-theme="dark"] .faq-question span {
    color: var(--dark-color) !important;
}

[data-theme="dark"] p,
[data-theme="dark"] .hero-subtitle,
[data-theme="dark"] .service-card p,
[data-theme="dark"] .testimonial-text {
    color: var(--text-color) !important;
}

/* Language dropdown removed */

[data-theme="dark"] .faq-question {
    background: var(--card-bg) !important;
}

[data-theme="dark"] .faq-question:hover {
    background: #374151 !important;
}

[data-theme="dark"] .faq-answer {
    background: transparent !important;
}

[data-theme="dark"] #loading-screen {
    background: var(--bg-color) !important;
}

[data-theme="dark"] .bot-message {
    background: #374151 !important;
    color: var(--text-color) !important;
}

[data-theme="dark"] .demo-btn {
    background: var(--card-bg) !important;
    color: var(--text-color) !important;
}

[data-theme="dark"] .demo-btn.active {
    background: var(--gradient) !important;
    color: white !important;
}

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

[data-theme="dark"] .nav-menu a:hover {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .btn-secondary {
    background: var(--card-bg) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

[data-theme="dark"] .roi-result {
    background: linear-gradient(135deg, #065f46, #047857) !important;
}

[data-theme="dark"] .badge {
    background: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .chatbot-input input {
    background: #0f172a !important;
    color: var(--text-color) !important;
    border-color: #374151 !important;
}

[data-theme="dark"] .live-chat-btn {
    background: #065f46 !important;
}

[data-theme="dark"] .section-title::after {
    background: var(--gradient) !important;
}