/* 😍بِسْمِ اللَّهِ الرَّحْمَنِ الرَّحِیمِ😍 */
:root {
    --primary-color: #8f94fb;
    --secondary-color: #4e54c8;
    --accent-color: #6a5acd;
    --text-color: #f0f0f0;
    --light-text: #f8f9fa;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius: 12px;
    --header-height: 80px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* بهبود نمایش کادر موبایل در صفحه اصلی */
.app-mockup {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin: 0 auto;
    background-color: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    width: 300px;
    height: 500px;
}

.math-animation {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.equation {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    opacity: 1;
    transform: none;
    transition: all 0.5s ease;
}

.solution {
    font-size: 1.8rem;
    color: var(--text-color);
    opacity: 1;
    transform: none;
    transition: all 0.5s ease;
}

/* بهبود نمایش دکمه‌های دانلود */
.download-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    flex-direction: column;
}

.download-buttons .btn {
    width: 100%;
    margin: 0;
}

/* بقیه استایل‌های دارک مود مانند قبل */
.hero,
.features,
.demo,
.about {
    background-color: var(--bg-color) !important;
}

.products,
.download {
    background-color: #1a1a1a !important;
}

body::before {
    opacity: 0.03;
    background-image: url('../images/math-pattern-dark.svg') !important;
}

.features::before {
    background-image: url('../images/math-bg-dark.svg') !important;
    opacity: 0.03;
}

.header {
    background-color: rgba(30, 30, 30, 0.95) !important;
    backdrop-filter: blur(10px);
}

.header.scrolled {
    background-color: rgba(30, 30, 30, 0.98) !important;
}

.nav-link {
    color: var(--text-color) !important;
}

.theme-toggle .fa-moon {
    opacity: 0 !important;
}

.theme-toggle .fa-sun {
    opacity: 1 !important;
}

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

.feature-card,
.download-card,
.products-tabs,
.tab-content .tab-text,
.app-mockup,
.chat-container,
.messenger-mockup,
.team-card,
.about-text {
    background-color: var(--card-bg) !important;
    color: var(--text-color) !important;
}

.feature-description,
.tab-text p,
.download-description,
.member-bio,
.about-text p {
    color: #bbb !important;
}

.app-screen,
.chat-messages,
.messenger-screen {
    background-color: #1e1e1e !important;
}

.bot-message .message-content {
    background-color: #333 !important;
    color: #f0f0f0 !important;
}

.chat-input,
.messenger-tabs {
    background-color: #333 !important;
}

.messenger-tabs button {
    color: #bbb !important;
}

.messenger-tabs button.active {
    background-color: #1e1e1e !important;
    color: var(--primary-color) !important;
}

.footer {
    background-color: #121212 !important;
}

.footer-links a,
.footer-contact li {
    color: #bbb !important;
}

.footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.05) !important;
}

.s-logo {
    color: var(--primary-color) !important;
}

.s-name {
    color: var(--text-color) !important;
}

.feature-title,
.tab-text h3,
.demo-text h3,
.download-title,
.member-info h3,
.about-text h3 {
    color: var(--text-color) !important;
}

.features-list li {
    color: #bbb !important;
}

.download-info {
    border-top-color: #444 !important;
}

.other-platforms h3 {
    color: var(--text-color) !important;
}

.platform-card {
    background-color: #2a2a2a !important;
}

.platform-info p {
    color: #999 !important;
}

.browser-header {
    background-color: #333 !important;
}

.browser-url {
    background-color: #2a2a2a !important;
    color: #bbb !important;
}

.message.user-message .message-content {
    background-color: var(--primary-color) !important;
}

.message.bot-message .message-content {
    background-color: #333 !important;
}

.chat-input input,
.messenger-input input {
    background-color: #2a2a2a !important;
    border-color: #444 !important;
    color: var(--text-color) !important;
}

.member-avatar {
    background-color: var(--primary-color) !important;
}

.avatar-overlay {
    background-color: rgba(79, 70, 229, 0.7) !important;
}

.tabs-header {
    background-color: #333 !important;
    border-bottom-color: #444 !important;
}

.tab-btn {
    color: #bbb !important;
    background-color: transparent !important;
    font-family: 'Vazirmatn', sans-serif !important;
}

.tab-btn.active {
    background-color: var(--card-bg) !important;
    color: var(--primary-color) !important;
}

.tab-btn::after {
    background-color: var(--primary-color) !important;
}

.messenger-input {
    background-color: #333 !important;
    border-top-color: #444 !important;
}

.messenger-input input {
    background-color: #2a2a2a !important;
    border-color: #444 !important;
    color: var(--text-color) !important;
}

.messenger-input button {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.message.user-message .message-content {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.message.bot-message .message-content {
    background-color: #333 !important;
    color: var(--text-color) !important;
}

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

.options button {
    background-color: #2a2a2a !important;
    color: var(--text-color) !important;
    border: 1px solid #444 !important;
}

.options button:hover {
    background-color: #333 !important;
}

.btn.disabled {
    background-color: #333 !important;
    color: #999 !important;
    border-color: #444 !important;
    box-shadow: none !important;
    font-family: 'Vazirmatn', sans-serif !important;
}

.btn.disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.btn.disabled .fa-hourglass-half {
    color: #999 !important;
}

/* بهبود نمایش در موبایل */
@media (max-width: 768px) {
    .app-mockup {
        width: 280px;
        height: 450px;
    }
    
    .app-mockup.large, 
    .browser-mockup {
        height: 300px;
    }
    
    .messenger-mockup {
        height: 450px;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .download-buttons .btn {
        width: 100%;
    }
}
/* استایل‌های دارک مود برای بخش‌های جدید */
.updates {
    background-color: var(--bg-color) !important;
}

.update-card {
    background-color: var(--card-bg) !important;
}

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

.update-description {
    color: #bbb !important;
}

.update-link {
    color: var(--primary-color) !important;
}

.update-link:hover {
    color: var(--secondary-color) !important;
}

.developer-bio {
    background-color: var(--card-bg) !important;
}

.bio-text p {
    color: #bbb !important;
}

.audio-player {
    background-color: rgba(108, 99, 255, 0.2) !important;
}

.audio-player h4 {
    color: var(--text-color) !important;
}