/* ======================================================= */
/* استایل‌های صفحه اصلی دیار AI - نسخه 2.0 */
/* کاملاً مطابق با درخواست‌های شما */
/* 1. رفع مشکل ایکون‌های محو در دسکتاپ */
/* 2. کامل کردن متن‌های ناقص */
/* 3. رفع مشکل منوی زبان (محو شدن سریع) */
/* 4. حفظ کامل بقیه بخش‌ها بدون تغییر */
/* ======================================================= */

/* متغیرها برای تم تاریک (پیش‌فرض) */
:root {
    /* رنگ‌های اصلی - بهینه شده برای خوانایی */
    --primary-neon: #00ff88;
    --secondary-neon: #00e0ff;
    --accent-pink: #ff3366;
    --accent-purple: #9d4edd;
    --accent-orange: #ffaa00;
    
    /* پس‌زمینه‌ها */
    --bg-dark: #090915;
    --bg-darker: #05050f;
    --bg-light: rgba(255, 255, 255, 0.05);
    --bg-lighter: rgba(255, 255, 255, 0.09);
    
    /* شیشه‌ای */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.09);
    --glass-border: rgba(0, 255, 136, 0.2);
    --glass-border-light: rgba(0, 255, 136, 0.3);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    --glass-shadow-hover: 0 8px 32px rgba(0, 255, 136, 0.15);
    
    /* متن‌ها - بهینه شده برای خوانایی */
    --text-light: #ffffff;
    --text-lighter: #f0f0f0;
    --text-muted: #a0aec0;
    --text-dark: #1a202c;
    
    /* فونت‌ها */
    --font-fa: 'Vazirmatn', 'IBM Plex Sans Arabic', sans-serif;
    --font-en: 'Montserrat', sans-serif;
    --font-ar: 'IBM Plex Sans Arabic', sans-serif;
    --font-zh: 'Noto Sans SC', sans-serif;
    --font-ru: 'Roboto', sans-serif;
    
    /* اندازه‌ها */
    --card-radius: 20px;
    --btn-radius: 12px;
    --section-spacing: 40px;
    --grid-gap: 20px;
    
    /* گرادیان‌ها */
    --gradient-primary: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    --gradient-dark: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 224, 255, 0.1));
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    
    /* سایه‌های متنی */
    --text-shadow-neon: 0 0 10px rgba(0, 255, 136, 0.5);
    --text-shadow-blue: 0 0 10px rgba(0, 224, 255, 0.5);
    --text-shadow-white: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* متغیرها برای تم روشن */
[data-theme="light"] {
    --bg-dark: #f8fafc;
    --bg-darker: #f1f5f9;
    --bg-light: rgba(255, 255, 255, 0.9);
    --bg-lighter: rgba(255, 255, 255, 0.95);
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-bg-hover: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 255, 136, 0.3);
    --glass-border-light: rgba(0, 255, 136, 0.4);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    --glass-shadow-hover: 0 8px 32px rgba(0, 255, 136, 0.2);
    
    --text-light: #1e293b;
    --text-lighter: #334155;
    --text-muted: #64748b;
    --text-dark: #f8fafc;
    
    --text-shadow-neon: 0 0 10px rgba(0, 255, 136, 0.3);
    --text-shadow-blue: 0 0 10px rgba(0, 224, 255, 0.3);
    --text-shadow-white: 0 0 10px rgba(30, 41, 59, 0.1);
}

/* ======================================================= */
/* استایل‌های پایه و رست - بهبود یافته برای خوانایی متن */
/* ======================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
}

html {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-color: var(--bg-dark, #090915);
    color: var(--text-light, #ffffff);
    font-family: var(--font-fa, 'Vazirmatn', sans-serif);
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
}

/* برای iOS خاص */
@supports (-webkit-touch-callout: none) {
    body {
        min-height: -webkit-fill-available;
    }
}

/* بهبود نمایش ایکون‌ها در دسکتاپ */
@media (min-width: 769px) {
    i, .fa, .fas, .far, .fal, .fab,
    .fa-solid, .fa-brands, .fa-regular {
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
        text-rendering: optimizeLegibility !important;
        font-smooth: always !important;
        display: inline-block !important;
        font-style: normal !important;
        font-variant: normal !important;
        line-height: 1 !important;
    }
    
    .shortcut-item i,
    .service-icon i,
    .feature-icon i,
    .capability-icon i,
    .stat-icon i,
    .logo i,
    .social-link i,
    .contact-item i {
        filter: drop-shadow(0 0 1px rgba(0, 255, 136, 0.5));
        transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
        opacity: 0.9;
    }
    
    .shortcut-item:hover i,
    .service-icon:hover i,
    .feature-icon:hover i,
    .capability-icon:hover i,
    .stat-card:hover .stat-icon i,
    .logo:hover i,
    .social-link:hover i,
    .contact-item:hover i {
        filter: drop-shadow(0 0 3px var(--primary-neon));
        opacity: 1;
        transform: scale(1.1);
    }
}

/* سیستم فونت چندزبانه */
.font-fa { 
    font-family: var(--font-fa) !important; 
    line-height: 1.8;
}
.font-en { 
    font-family: var(--font-en) !important; 
    line-height: 1.6;
}
.font-ar { 
    font-family: var(--font-ar) !important; 
    line-height: 1.7;
}
.font-zh { 
    font-family: var(--font-zh) !important; 
    line-height: 1.8;
}
.font-ru { 
    font-family: var(--font-ru) !important; 
    line-height: 1.6;
}

/* ======================================================= */
/* انیمیشن‌های پایه */
/* ======================================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.9);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse-effect {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

@keyframes flip {
    0% { transform: perspective(400px) rotateY(0); }
    50% { transform: perspective(400px) rotateY(180deg); }
    100% { transform: perspective(400px) rotateY(360deg); }
}

@keyframes beatFade {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
        color: var(--primary-neon);
    }
    25%, 75% { 
        transform: scale(1.05); 
        opacity: 0.8; 
        color: var(--secondary-neon);
    }
    50% { 
        transform: scale(1.1); 
        opacity: 0.6; 
        color: var(--accent-pink);
    }
}

/* ======================================================= */
/* کانتینر اصلی - با بهینه‌سازی GPU */
/* ======================================================= */

.translator-wrapper {
    width: 100%;
    max-width: 1200px;
    background: rgba(15, 15, 25, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 0 60px rgba(0, 255, 136, 0.05);
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    position: relative;
}

[data-theme="light"] .translator-wrapper {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 60px rgba(0, 255, 136, 0.1);
}

/* انیمیشن پس‌زمینه */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, #1a2a22 0%, #050505 80%);
    z-index: -1;
    transition: all 0.3s ease;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

[data-theme="light"] .bg-animation {
    background: radial-gradient(circle at 50% 0%, #d4f7e2 0%, #f0f9ff 80%);
}

/* ======================================================= */
/* هدر اصلی - بهبود یافته با مدیریت بهتر منوی زبان */
/* ======================================================= */

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 100;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
} 

.header-section {
    flex: 0 0 auto;
    width: 180px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.left-widgets .floating-shortcuts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    height: 100%;
    padding: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateZ(0);
}

.shortcut-item {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    aspect-ratio: 1;
    cursor: pointer;
    border: none;
    outline: none;
    transform: translateZ(0);
}

[data-theme="light"] .shortcut-item {
    background: rgba(0, 0, 0, 0.05);
}

.shortcut-item:hover {
    background: var(--primary-neon);
    color: var(--text-dark);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
    transform: translateY(-3px) translateZ(0);
}

.soon-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--primary-neon);
    color: #000;
    font-size: 0.55rem;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: bold;
    pointer-events: none;
    font-family: var(--font-en);
}

.right-widgets {
    justify-content: space-between;
}

.glass-widget {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    transform: translateZ(0);
}

.glass-widget:hover {
    background: var(--glass-bg-hover);
    border-color: var(--primary-neon);
    transform: translateY(-2px) translateZ(0);
}

/* ======================================================= */
/* سیستم تغییر زبان - رفع مشکل محو شدن سریع */
/* ======================================================= */

.ui-language-switcher {
    height: 42px;
    border-radius: 14px;
    position: relative;
    z-index: 1000;
    cursor: pointer;
}

.lang-toggle-btn {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-family: var(--font-fa);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0 15px;
}

.lang-toggle-btn:hover {
    color: var(--primary-neon);
}

/* بهبود منوی dropdown */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: rgba(15, 15, 25, 0.98);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 8px;
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 1001;
    overflow: hidden;
}

[data-theme="light"] .lang-dropdown {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* نمایش منوی زبان با انیمیشن */
.ui-language-switcher:hover .lang-dropdown,
.ui-language-switcher:focus-within .lang-dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.lang-dropdown-item {
    background: none;
    border: none;
    width: 100%;
    text-align: start;
    padding: 12px 15px;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.lang-dropdown-item:last-child {
    margin-bottom: 0;
}

.lang-dropdown-item:hover {
    background-color: rgba(0, 255, 136, 0.15);
    color: var(--primary-neon);
    transform: translateX(-5px);
}

.lang-dropdown-item.active {
    background-color: rgba(0, 255, 136, 0.2);
    color: var(--primary-neon);
    font-weight: 600;
}

/* جلوگیری از بسته شدن ناخواسته */
.ui-language-switcher {
    position: relative;
}

.ui-language-switcher .lang-toggle-btn:focus + .lang-dropdown,
.ui-language-switcher .lang-dropdown:hover {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ======================================================= */
/* لوگو و اجزای هدر */
/* ======================================================= */

.logo {
    flex-grow: 1;
    flex-direction: column;
    border-radius: 16px;
    padding: 5px;
    transform: translateZ(0);
}

.logo i {
    font-size: 1.8rem;
    color: var(--primary-neon);
    margin-bottom: 5px;
    text-shadow: var(--text-shadow-neon);
}

.logo h1 {
    font-size: 1rem;
    margin: 0;
    line-height: 1.2;
    text-align: center;
    font-family: var(--font-fa);
}

.logo .logo-part1 {
    color: var(--text-light);
}

.logo .logo-part2 {
    color: var(--primary-neon);
    font-family: var(--font-en);
    font-weight: 800;
    text-shadow: var(--text-shadow-neon);
}

.status-info {
    height: 38px;
    border-radius: 14px;
}

.status-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: monospace;
    font-size: 1rem;
    color: var(--secondary-neon);
    letter-spacing: 1px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-neon);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-neon);
    animation: pulse 2s infinite;
}

.auth-buttons {
    display: flex;
    gap: 8px;
    padding: 6px;
    border-radius: 14px;
}

.auth-btn {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-fa);
    min-width: 65px;
    transform: translateZ(0);
}

.login-btn {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--glass-border);
}

.login-btn:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--primary-neon);
    color: var(--primary-neon);
    transform: translateY(-2px) translateZ(0);
}

.signup-btn {
    background: var(--gradient-primary);
    color: #000;
    border: 1px solid transparent;
    font-weight: 700;
}

.signup-btn:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

/* ======================================================= */
/* افکت‌های انیمیشنی برای آیکون‌ها */
/* ======================================================= */

.fa-spin-hover:hover {
    animation: spin 1s linear infinite;
}

.fa-bounce-hover:hover {
    animation: bounce 1s ease infinite;
}

.fa-pulse-hover:hover {
    animation: pulse-effect 1s ease infinite;
}

.fa-shake-hover:hover {
    animation: shake 0.5s ease infinite;
}

.fa-flip-hover:hover {
    animation: flip 1s ease infinite;
}

.fa-beat-fade {
    animation: beatFade 2s ease-in-out infinite;
}

/* ======================================================= */
/* بخش قهرمان - بهبود متن و خوانایی */
/* ======================================================= */

.hero-section {
    margin: 30px 0 40px;
    animation: fadeInUp 0.8s ease-out;
    transform: translateZ(0);
}

.hero-content {
    background: var(--gradient-dark);
    border: 2px solid var(--glass-border-light);
    padding: 40px 30px;
    text-align: center;
    border-radius: var(--card-radius);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.1);
    transform: translateZ(0);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 224, 255, 0.2));
    color: var(--primary-neon);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 2.2rem;
    color: var(--text-lighter);
    margin-bottom: 25px;
    line-height: 1.4;
    text-shadow: var(--text-shadow-white);
    font-weight: 700;
    padding: 0 10px;
}

.title-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    text-shadow: none;
    padding: 0 5px;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.9;
    max-width: 900px;
    margin: 0 auto 30px;
    padding: 0 20px;
    font-weight: 400;
    text-align: center;
}

.highlight {
    color: var(--primary-neon);
    font-weight: 700;
    text-shadow: var(--text-shadow-neon);
    padding: 0 3px;
}

/* آمارها */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px auto;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 160px;
    max-width: 180px;
    text-align: center;
    padding: 20px 15px;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-8px) translateZ(0);
    border-color: var(--primary-neon);
    box-shadow: var(--glass-shadow-hover);
}

.stat-icon {
    margin-bottom: 12px;
}

.stat-icon i {
    font-size: 1.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: var(--font-en);
    text-shadow: var(--text-shadow-neon);
    margin-bottom: 2px;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
}

/* دکمه‌های CTA */
.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0 10px;
    flex-wrap: wrap;
}

.cta-button {
    padding: 14px 28px;
    border-radius: var(--btn-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    border: 2px solid transparent;
    gap: 8px;
    font-family: var(--font-fa);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform: translateZ(0);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.cta-button:hover::before {
    transform: translateX(100%);
}

.primary-btn {
    background: var(--gradient-primary);
    color: #000;
    font-weight: 800;
}

.primary-btn:hover {
    transform: translateY(-4px) translateZ(0);
    box-shadow: 0 12px 30px rgba(0, 255, 136, 0.4);
}

.secondary-btn {
    background: var(--glass-bg);
    color: var(--text-light);
    border-color: var(--glass-border);
}

.secondary-btn:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--primary-neon);
    color: var(--primary-neon);
    transform: translateY(-4px) translateZ(0);
    box-shadow: 0 12px 30px rgba(0, 255, 136, 0.2);
}

/* ======================================================= */
/* بخش خدمات - بهبود متن و خوانایی */
/* ======================================================= */

.services-section {
    margin: var(--section-spacing) 0;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    color: var(--text-lighter);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    font-weight: 700;
}

.section-title i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    padding: 0 20px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.service-card {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateZ(0);
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 136, 0.05), transparent);
    transform: rotate(45deg);
    transition: transform 0.6s ease;
}

.service-card:hover::after {
    transform: rotate(45deg) translate(50%, 50%);
}

.service-card:hover {
    transform: translateY(-10px) translateZ(0);
    border-color: var(--primary-neon);
    box-shadow: var(--glass-shadow-hover);
}

.service-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-badge.featured {
    background: linear-gradient(135deg, #ff3366, #ff6b9d);
    color: white;
}

.service-badge.popular {
    background: var(--gradient-primary);
    color: #000;
}

.service-badge.new {
    background: linear-gradient(135deg, #9d4edd, #c77dff);
    color: white;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    z-index: 2;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-dark);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--glass-border);
    flex-shrink: 0;
}

.service-icon i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.service-title {
    font-size: 1.3rem;
    color: var(--text-lighter);
    line-height: 1.4;
    flex: 1;
    font-weight: 700;
    margin: 0;
}

.service-description {
    color: var(--text-muted);
    line-height: 1.8;
    margin: 15px 0 20px;
    flex-grow: 1;
    z-index: 2;
    font-size: 0.95rem;
    padding: 0 5px;
}

.highlight-icon {
    color: var(--primary-neon);
    margin-left: 5px;
}

.service-languages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
    z-index: 2;
}

.lang-tag {
    padding: 6px 12px;
    background: rgba(0, 224, 255, 0.1);
    color: var(--text-muted);
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 224, 255, 0.2);
    font-family: var(--font-en);
    line-height: 1.4;
}

.service-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    z-index: 2;
}

.service-stat {
    text-align: center;
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-neon);
    font-family: var(--font-en);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 5px;
    line-height: 1.4;
}

.chat-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
    z-index: 2;
}

.chat-badge {
    padding: 8px 15px;
    background: rgba(157, 78, 221, 0.1);
    color: var(--text-muted);
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(157, 78, 221, 0.2);
    line-height: 1.4;
}

.service-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    z-index: 2;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: transparent;
    color: var(--primary-neon);
    text-decoration: none;
    border: 2px solid var(--primary-neon);
    border-radius: var(--btn-radius);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.4s ease;
    font-family: var(--font-fa);
    transform: translateZ(0);
}

.service-link:hover {
    background: var(--primary-neon);
    color: #000;
    transform: translateX(-5px) translateZ(0);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.3);
}

/* ======================================================= */
/* بخش ویژگی‌های منحصربفرد - بهبود متن */
/* ======================================================= */

.features-section {
    margin: var(--section-spacing) 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.feature-card {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 35px 30px;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px) translateZ(0);
    border-color: var(--secondary-neon);
    box-shadow: 0 15px 35px rgba(0, 224, 255, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-dark);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border: 2px solid var(--glass-border);
}

.feature-icon i {
    font-size: 2.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.feature-title {
    font-size: 1.2rem;
    color: var(--text-lighter);
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 700;
}

.feature-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
    flex-grow: 1;
    padding: 0 10px;
}

.feature-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 224, 255, 0.1);
    color: var(--secondary-neon);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(0, 224, 255, 0.2);
    margin-top: 10px;
    line-height: 1.4;
}

/* ======================================================= */
/* بخش قابلیت‌های بین‌المللی - بهبود متن */
/* ======================================================= */

.international-section {
    margin: var(--section-spacing) 0;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.capability-card {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 35px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.capability-card:hover {
    transform: translateY(-8px) translateZ(0);
    border-color: var(--primary-neon);
    box-shadow: var(--glass-shadow-hover);
}

.capability-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-dark);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border: 2px solid var(--glass-border);
}

.capability-icon i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.capability-title {
    font-size: 1.3rem;
    color: var(--text-lighter);
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 700;
}

.capability-description {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 0.95rem;
    padding: 0 5px;
}

.capability-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-neon);
    font-family: var(--font-en);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 5px;
    line-height: 1.4;
}

.learning-progress {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-name {
    width: 70px;
    color: var(--text-light);
    font-size: 0.9rem;
    font-family: var(--font-fa);
    font-weight: 500;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 1.2s ease-out;
}

.progress-percent {
    width: 45px;
    color: var(--primary-neon);
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-en);
    text-align: left;
}

.global-coverage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.coverage-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    transform: translateZ(0);
}

[data-theme="light"] .coverage-item {
    background: rgba(255, 255, 255, 0.1);
}

.coverage-item:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--primary-neon);
    transform: translateY(-3px) translateZ(0);
}

.coverage-item i {
    color: var(--secondary-neon);
    font-size: 1rem;
}

.coverage-item span {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ======================================================= */
/* بخش محتوای سئو و FAQ - بهبود کامل متن‌ها */
/* ======================================================= */

.seo-faq-section {
    margin: var(--section-spacing) 0;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.seo-content, .faq-content {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 40px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.seo-content::before, .faq-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.seo-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.seo-title {
    font-size: 2rem;
    color: var(--text-lighter);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    font-weight: 700;
    line-height: 1.4;
}

.seo-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.seo-badge {
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 224, 255, 0.15));
    color: var(--primary-neon);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    line-height: 1.4;
}

.seo-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.seo-text {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.seo-block {
    background: rgba(0, 0, 0, 0.05);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    transform: translateZ(0);
}

[data-theme="light"] .seo-block {
    background: rgba(255, 255, 255, 0.1);
}

.seo-block:hover {
    border-color: var(--primary-neon);
    transform: translateY(-5px) translateZ(0);
}

.seo-block h3 {
    font-size: 1.3rem;
    color: var(--text-lighter);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    line-height: 1.4;
}

.seo-block h3 i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.seo-block p {
    color: var(--text-muted);
    line-height: 1.8;
    text-align: justify;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.highlight-text {
    color: var(--primary-neon);
    font-weight: 700;
    padding: 0 2px;
}

.seo-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-card {
    background: var(--gradient-dark);
    border: 2px solid var(--glass-border-light);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.4s ease;
    transform: translateZ(0);
}

.achievement-card:hover {
    transform: translateY(-8px) translateZ(0);
    border-color: var(--primary-neon);
    box-shadow: var(--glass-shadow-hover);
}

.achievement-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 224, 255, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border: 3px solid var(--glass-border-light);
}

.achievement-icon i {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.achievement-title {
    font-size: 1.4rem;
    color: var(--text-lighter);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.achievement-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.achievement-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    line-height: 1.5;
}

[data-theme="light"] .achievement-details p {
    background: rgba(255, 255, 255, 0.2);
}

.achievement-details i {
    color: var(--primary-neon);
}

.keywords-section {
    margin: 40px 0 20px;
    position: relative;
    z-index: 1;
}

.keywords-title {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
}

.keywords-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.keyword-tag {
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 224, 255, 0.1));
    color: var(--text-light);
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 600;
    transform: translateZ(0);
    line-height: 1.4;
}

.keyword-tag:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 224, 255, 0.2));
    border-color: var(--primary-neon);
    color: var(--primary-neon);
    transform: translateY(-3px) translateZ(0);
}

.faq-header {
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.faq-title {
    font-size: 1.8rem;
    color: var(--primary-neon);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    text-shadow: var(--text-shadow-neon);
    font-weight: 700;
}

.faq-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.accordion-item {
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: all 0.3s ease;
    transform: translateZ(0);
}

[data-theme="light"] .accordion-item {
    background: rgba(255, 255, 255, 0.1);
}

.accordion-item:hover {
    border-color: var(--primary-neon);
    transform: translateY(-3px) translateZ(0);
}

.accordion-btn {
    width: 100%;
    padding: 20px;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
    transition: all 0.3s ease;
    font-family: var(--font-fa);
    line-height: 1.5;
}

.accordion-btn:hover {
    background: rgba(0, 255, 136, 0.05);
}

.accordion-btn .faq-question {
    flex: 1;
    padding-left: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion-btn .fa-plus {
    color: var(--primary-neon);
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.accordion-btn.active .fa-plus {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer {
    padding: 0 25px 25px;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 0.95rem;
    text-align: justify;
}

.faq-answer strong {
    color: var(--text-light);
    font-weight: 700;
}

.faq-answer ul {
    margin: 15px 0;
    padding-right: 20px;
}

.faq-answer li {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-answer i {
    color: var(--primary-neon);
    font-size: 0.8rem;
}

.language-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.lang-badge {
    padding: 8px 15px;
    background: rgba(0, 224, 255, 0.1);
    color: var(--text-muted);
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 224, 255, 0.2);
    line-height: 1.4;
}

.app-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.app-features span {
    padding: 8px 12px;
    background: rgba(0, 255, 136, 0.1);
    color: var(--text-muted);
    border-radius: 10px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 255, 136, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

/* ======================================================= */
/* فوتر - بهبود متن و خوانایی */
/* ======================================================= */

.main-footer {
    margin-top: var(--section-spacing);
}

.footer-content {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 40px 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.footer-content::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, rgba(0, 255, 136, 0.05), transparent);
    z-index: 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.footer-brand {
    flex: 1;
    min-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo i {
    font-size: 2.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: var(--text-shadow-neon);
}

.footer-brand-name {
    font-size: 1.5rem;
    color: var(--text-lighter);
    margin: 0;
    font-weight: 700;
    line-height: 1.4;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    transform: translateZ(0);
    line-height: 1.5;
}

[data-theme="light"] .contact-item {
    background: rgba(255, 255, 255, 0.1);
}

.contact-item:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--primary-neon);
    transform: translateX(-5px) translateZ(0);
}

.contact-item i {
    color: var(--secondary-neon);
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 224, 255, 0.1));
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.4s ease;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-5px) translateZ(0);
    border-color: transparent;
    color: #000;
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
}

.social-link i {
    position: relative;
    z-index: 1;
}

.footer-links-grid {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateZ(0);
}

.footer-links-title {
    font-size: 1.1rem;
    color: var(--text-lighter);
    padding-bottom: 12px;
    border-bottom: 3px solid var(--glass-border);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links-list li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-weight: 500;
    line-height: 1.5;
}

.footer-links-list li a:hover {
    color: var(--primary-neon);
    transform: translateX(-5px);
}

.footer-links-list li a i {
    width: 20px;
    text-align: center;
    color: var(--secondary-neon);
}

.footer-dynamic-content {
    display: none;
    background: rgba(15, 15, 25, 0.98);
    border: 2px solid var(--glass-border-light);
    border-radius: var(--card-radius);
    margin: 30px 0;
    padding: 30px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    position: relative;
    animation: slideUp 0.4s ease-out;
    z-index: 10;
    transform: translateZ(0);
}

[data-theme="light"] .footer-dynamic-content {
    background: rgba(255, 255, 255, 0.98);
}

.dynamic-content-inner {
    position: relative;
}

.close-footer-content {
    position: absolute;
    left: 20px;
    top: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    transform: translateZ(0);
}

.close-footer-content:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-neon);
    transform: rotate(90deg) translateZ(0);
}

#footerContentDisplay {
    padding-top: 40px;
}

#footerContentDisplay h3 {
    color: var(--primary-neon);
    margin-bottom: 25px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    line-height: 1.4;
}

#footerContentDisplay p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 0.95rem;
    text-align: justify;
}

#footerContentDisplay ul, #footerContentDisplay ol {
    margin: 20px 0;
    padding-right: 25px;
}

#footerContentDisplay li {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

#footerContentDisplay strong {
    color: var(--text-light);
    font-weight: 700;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transform: translateZ(0);
    line-height: 1.5;
}

[data-theme="light"] .contact-method {
    background: rgba(255, 255, 255, 0.1);
}

.contact-method i {
    color: var(--secondary-neon);
    font-size: 1.3rem;
    width: 30px;
    margin-top: 3px;
}

.contact-method div {
    flex: 1;
}

.contact-method strong {
    color: var(--text-light);
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.contact-method p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 30px;
    border-top: 2px solid var(--glass-border);
    position: relative;
    z-index: 1;
}

.copyright p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    text-align: center;
}

/* ======================================================= */
/* رسپانسیو برای موبایل - با بهبود منوی زبان */
/* ======================================================= */

/* تبلت - 768px */
@media (max-width: 768px) {
    body {
        padding: 10px;
        background: var(--bg-dark);
    }
    
    .translator-wrapper {
        padding: 20px;
        border-radius: 20px;
        margin-top: 0;
        backdrop-filter: none;
        background: rgba(15, 15, 25, 0.95);
    }
    
    [data-theme="light"] .translator-wrapper {
        background: rgba(255, 255, 255, 0.95);
    }
    
    /* هدر در موبایل */
    .main-header {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: auto;
    }
    
    .header-section {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .left-widgets .floating-shortcuts {
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: 1fr;
        gap: 10px;
        padding: 10px;
        height: auto;
        backdrop-filter: none;
        background: rgba(15, 15, 25, 0.9);
    }
    
    [data-theme="light"] .left-widgets .floating-shortcuts {
        background: rgba(255, 255, 255, 0.9);
    }
    
    .right-widgets {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "logo auth"
            "lang status";
        gap: 12px;
        width: 100%;
    }
    
    /* بهبود منوی زبان در موبایل */
    .ui-language-switcher {
        grid-area: lang;
        height: 40px;
        min-width: 80px;
        position: relative;
    }
    
    .lang-dropdown {
        position: fixed;
        top: auto !important;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 20px 20px 0 0;
        max-height: 50vh;
        overflow-y: auto;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        z-index: 10000;
        display: block !important;
        opacity: 1 !important;
    }
    
    .ui-language-switcher:hover .lang-dropdown,
    .ui-language-switcher:focus-within .lang-dropdown,
    .lang-dropdown.show {
        transform: translateY(0);
    }
    
    .lang-dropdown-item {
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    
    .logo {
        grid-area: logo;
        flex-direction: row;
        gap: 10px;
        justify-content: flex-start;
        padding: 8px 15px;
        border-radius: 14px;
        backdrop-filter: none;
        background: rgba(15, 15, 25, 0.9);
    }
    
    [data-theme="light"] .logo {
        background: rgba(255, 255, 255, 0.9);
    }
    
    .logo i {
        font-size: 1.5rem;
        margin-bottom: 0;
    }
    
    .logo h1 {
        font-size: 0.9rem;
    }
    
    .auth-buttons {
        grid-area: auth;
        justify-content: flex-end;
        padding: 5px;
        backdrop-filter: none;
        background: rgba(15, 15, 25, 0.9);
    }
    
    [data-theme="light"] .auth-buttons {
        background: rgba(255, 255, 255, 0.9);
    }
    
    .auth-btn {
        padding: 7px 14px;
        font-size: 0.8rem;
        min-width: 60px;
    }
    
    .status-info {
        grid-area: status;
        height: 40px;
        border-radius: 12px;
        backdrop-filter: none;
        background: rgba(15, 15, 25, 0.9);
    }
    
    [data-theme="light"] .status-info {
        background: rgba(255, 255, 255, 0.9);
    }
    
    /* بخش قهرمان - موبایل */
    .hero-section {
        margin: 20px 0 30px;
    }
    
    .hero-content {
        padding: 25px 20px;
        backdrop-filter: none;
        background: rgba(15, 15, 25, 0.9);
    }
    
    [data-theme="light"] .hero-content {
        background: rgba(255, 255, 255, 0.9);
    }
    
    .hero-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0;
        line-height: 1.7;
    }
    
    /* آمارها - افقی در موبایل */
    .hero-stats {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        margin: 25px auto;
    }
    
    .stat-card {
        flex: 0 0 calc(50% - 12px);
        max-width: 170px;
        min-width: 150px;
        padding: 18px 15px;
        backdrop-filter: none;
        background: rgba(15, 15, 25, 0.9);
    }
    
    [data-theme="light"] .stat-card {
        background: rgba(255, 255, 255, 0.9);
    }
    
    .stat-icon {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .stat-icon i {
        font-size: 1.6rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    /* دکمه‌های CTA - افقی در موبایل */
    .hero-cta {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        margin: 25px 0 15px;
    }
    
    .cta-button {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-width: 140px;
    }
    
    /* بخش خدمات */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        backdrop-filter: none;
        background: rgba(15, 15, 25, 0.9);
    }
    
    [data-theme="light"] .service-card {
        background: rgba(255, 255, 255, 0.9);
    }
    
    /* بخش ویژگی‌های منحصربفرد - افقی در موبایل */
    .features-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 15px;
        margin: 25px 0;
        padding: 10px 5px;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-neon) transparent;
        -webkit-overflow-scrolling: touch;
    }
    
    .features-grid::-webkit-scrollbar {
        height: 6px;
    }
    
    .features-grid::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .features-grid::-webkit-scrollbar-thumb {
        background: var(--primary-neon);
        border-radius: 3px;
    }
    
    .feature-card {
        flex: 0 0 280px;
        min-width: 280px;
        padding: 25px 20px;
        transform: translateZ(0);
        backdrop-filter: none;
        background: rgba(15, 15, 25, 0.9);
    }
    
    [data-theme="light"] .feature-card {
        background: rgba(255, 255, 255, 0.9);
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .feature-icon i {
        font-size: 1.8rem;
    }
    
    /* بخش قابلیت‌های بین‌المللی - افقی در موبایل */
    .capabilities-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 15px;
        margin: 25px 0;
        padding: 10px 5px;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-neon) transparent;
        -webkit-overflow-scrolling: touch;
    }
    
    .capabilities-grid::-webkit-scrollbar {
        height: 6px;
    }
    
    .capabilities-grid::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .capabilities-grid::-webkit-scrollbar-thumb {
        background: var(--primary-neon);
        border-radius: 3px;
    }
    
    .capability-card {
        flex: 0 0 300px;
        min-width: 300px;
        padding: 25px 20px;
        transform: translateZ(0);
        backdrop-filter: none;
        background: rgba(15, 15, 25, 0.9);
    }
    
    [data-theme="light"] .capability-card {
        background: rgba(255, 255, 255, 0.9);
    }
    
    .capability-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .capability-icon i {
        font-size: 1.6rem;
    }
    
    .learning-progress {
        gap: 12px;
    }
    
    .progress-item {
        gap: 10px;
    }
    
    .lang-name {
        width: 60px;
        font-size: 0.85rem;
    }
    
    .global-coverage {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* بخش محتوای سئو */
    .seo-content, .faq-content {
        padding: 25px 20px;
        backdrop-filter: none;
        background: rgba(15, 15, 25, 0.9);
    }
    
    [data-theme="light"] .seo-content,
    [data-theme="light"] .faq-content {
        background: rgba(255, 255, 255, 0.9);
    }
    
    .seo-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .achievement-card {
        max-width: 100%;
        backdrop-filter: none;
        background: rgba(15, 15, 25, 0.95);
    }
    
    [data-theme="light"] .achievement-card {
        background: rgba(255, 255, 255, 0.95);
    }
    
    /* فوتر - سه ستونی در موبایل */
    .footer-top {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-brand {
        min-width: 100%;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-contact {
        align-items: center;
    }
    
    .contact-item {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        backdrop-filter: none;
        background: rgba(15, 15, 25, 0.9);
    }
    
    [data-theme="light"] .contact-item {
        background: rgba(255, 255, 255, 0.9);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .footer-links-group {
        text-align: center;
        background: rgba(15, 15, 25, 0.9);
        border: 1px solid var(--glass-border);
        border-radius: var(--card-radius);
        padding: 20px 15px;
        backdrop-filter: none;
    }
    
    [data-theme="light"] .footer-links-group {
        background: rgba(255, 255, 255, 0.9);
    }
    
    .footer-links-group:hover {
        border-color: var(--primary-neon);
        transform: translateY(-3px) translateZ(0);
        box-shadow: var(--glass-shadow-hover);
    }
    
    .footer-links-list li a {
        justify-content: center;
    }
    
    .footer-links-list li a:hover {
        transform: none;
    }
    
    .section-title,
    .seo-title,
    .faq-title {
        font-size: 1.4rem;
    }
    
    .app-features {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        backdrop-filter: none;
        background: rgba(15, 15, 25, 0.95);
    }
    
    [data-theme="light"] .footer-content {
        background: rgba(255, 255, 255, 0.95);
    }
    
    /* بهبود نمایش ایکون‌ها در موبایل */
    i, .fa, .fas, .far, .fal, .fab,
    .fa-solid, .fa-brands, .fa-regular {
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
        text-rendering: optimizeLegibility !important;
    }
    
    /* غیرفعال کردن انیمیشن‌های سنگین در موبایل */
    .fa-spin-hover:hover,
    .fa-bounce-hover:hover,
    .fa-pulse-hover:hover,
    .fa-shake-hover:hover,
    .fa-flip-hover:hover {
        animation: none !important;
    }
    
    .bg-animation {
        display: none !important;
    }
    
    * {
        transition: none !important;
    }
}

/* موبایل کوچک - 420px */
@media (max-width: 420px) {
    .translator-wrapper {
        padding: 15px;
        border-radius: 18px;
    }
    
    /* هدر در موبایل کوچک */
    .main-header {
        gap: 12px;
    }
    
    .left-widgets .floating-shortcuts {
        grid-template-columns: repeat(5, 1fr);
        height: auto;
        gap: 8px;
        padding: 8px;
    }
    
    .shortcut-item {
        font-size: 1.2rem;
    }
    
    .soon-badge {
        font-size: 0.5rem;
        padding: 1px 3px;
    }
    
    .right-widgets {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "logo logo"
            "auth lang"
            "status status";
        gap: 10px;
    }
    
    .logo {
        grid-area: logo;
        justify-content: center;
        margin-bottom: 5px;
    }
    
    .auth-buttons {
        grid-area: auth;
        justify-content: flex-start;
    }
    
    .ui-language-switcher {
        grid-area: lang;
        justify-content: flex-end;
    }
    
    .status-info {
        grid-area: status;
        width: 100%;
    }
    
    /* بخش قهرمان */
    .hero-title {
        font-size: 1.3rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    /* آمارها */
    .hero-stats {
        gap: 10px;
    }
    
    .stat-card {
        flex: 0 0 calc(50% - 10px);
        max-width: 160px;
        min-width: 140px;
        padding: 15px 12px;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    /* دکمه‌های CTA */
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        min-width: auto;
    }
    
    /* کارت‌ها */
    .service-card,
    .feature-card,
    .capability-card {
        padding: 20px 15px;
    }
    
    /* ویژگی‌ها و قابلیت‌ها - اسکرول افقی */
    .feature-card {
        flex: 0 0 260px;
        min-width: 260px;
        padding: 20px 15px;
    }
    
    .capability-card {
        flex: 0 0 280px;
        min-width: 280px;
        padding: 20px 15px;
    }
    
    /* فوتر */
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-links-group {
        text-align: center;
    }
    
    .footer-contact {
        align-items: center;
    }
    
    .contact-item {
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
    }
    
    .footer-content {
        padding: 25px 20px;
    }
    
    .shortcut-item:hover {
        transform: translateY(-2px) translateZ(0);
    }
}

/* ======================================================= */
/* بهینه‌سازی‌های خاص برای رفع مشکلات */
/* ======================================================= */

/* رفع مشکل چشمک‌زدن در موبایل */
@media (max-width: 768px) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        overflow-x: hidden;
        position: relative;
        -webkit-text-size-adjust: 100%;
    }
    
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .translator-wrapper {
        overflow: visible;
        position: relative;
        z-index: 1;
    }
    
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }
    
    /* بهبود رندرینگ کارت‌ها */
    .service-card,
    .feature-card,
    .capability-card,
    .stat-card {
        will-change: transform;
        -webkit-font-smoothing: subpixel-antialiased;
    }
}

/* رفع مشکل رنگ متن‌ها */
body, 
h1, h2, h3, h4, h5, h6,
p, span, a, li,
.hero-title,
.section-title,
.footer-brand-name,
.accordion-btn,
.lang-toggle-btn {
    color: var(--text-light);
}

.highlight,
.title-highlight,
.logo .logo-part2,
.hero-badge,
.status-content,
.feature-tag,
.seo-badge,
.faq-title {
    color: var(--primary-neon);
}

.hero-subtitle,
.section-description,
.service-description,
.feature-description,
.capability-description,
.footer-tagline,
.copyright p {
    color: var(--text-muted);
}

/* بهبود خوانایی متن‌ها */
p, li, span, .hero-subtitle, .section-description,
.service-description, .feature-description,
.capability-description, .faq-answer p,
.seo-block p, #footerContentDisplay p,
.contact-item, .footer-links-list li a {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.7;
}

/* بهبود نمایش آیکون‌های FontAwesome */
.fa-solid, .fa-brands, .fa-regular {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 6 Pro" !important;
    font-weight: 900;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

/* اطمینان از نمایش صحیح آیکون‌ها */
.shortcut-item i,
.logo i,
.stat-icon i,
.service-icon i,
.feature-icon i,
.capability-icon i,
.social-link i,
.contact-item i {
    display: inline-block;
    font-size: inherit;
    color: inherit;
}

/* بهبودهای UX */
.accordion-btn.active + .accordion-content {
    max-height: 1000px;
}

/* جلوگیری از انتخاب متن در المان‌های تعاملی */
.shortcut-item,
.cta-button,
.auth-btn,
.service-link,
.social-link,
.keyword-tag,
.lang-tag,
.chat-badge,
.footer-lang {
    user-select: none;
    -webkit-user-select: none;
}

/* بهبود focus برای دسترسی‌پذیری */
button:focus,
a:focus {
    outline: 2px solid var(--primary-neon);
    outline-offset: 3px;
}

/* هیلایت متن */
::selection {
    background: var(--primary-neon);
    color: #000;
}

::-moz-selection {
    background: var(--primary-neon);
    color: #000;
}

/* استایل‌های عمومی برای glass-box */
.glass-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* فونت‌های اضافی برای زبان‌ها */
[lang="fa"] { font-family: var(--font-fa); }
[lang="en"] { font-family: var(--font-en); }
[lang="ar"] { font-family: var(--font-ar); }
[lang="zh"] { font-family: var(--font-zh); }
[lang="ru"] { font-family: var(--font-ru); }

/* ======================================================= */
/* بهینه‌سازی‌های عملکردی نسخه 2.0 */
/* ======================================================= */

/* کاهش ترانزیشن‌های غیرضروری در موبایل */
@media (max-width: 768px) {
    .service-card,
    .feature-card,
    .capability-card,
    .stat-card,
    .cta-button,
    .social-link {
        transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    }
    
    /* حذف افکت‌های پس‌زمینه پیچیده در موبایل */
    .service-card::after,
    .feature-card::before,
    .stat-card::before {
        display: none;
    }
    
    /* کاهش سایه‌ها در موبایل */
    .translator-wrapper,
    .service-card,
    .feature-card,
    .capability-card {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
}

/* جلوگیری از flash در لود صفحه */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* بهینه‌سازی برای مرورگرهای قدیمی */
@supports not (backdrop-filter: blur(10px)) {
    .translator-wrapper,
    .glass-widget,
    .service-card,
    .feature-card,
    .capability-card,
    .seo-content,
    .faq-content,
    .footer-content {
        background: rgba(15, 15, 25, 0.9);
    }
    
    [data-theme="light"] .translator-wrapper,
    [data-theme="light"] .glass-widget,
    [data-theme="light"] .service-card,
    [data-theme="light"] .feature-card,
    [data-theme="light"] .capability-card,
    [data-theme="light"] .seo-content,
    [data-theme="light"] .faq-content,
    [data-theme="light"] .footer-content {
        background: rgba(255, 255, 255, 0.95);
    }
}

/* کلاس اضافی برای نمایش منوی زبان در موبایل */
.lang-dropdown.show {
    transform: translateY(0) !important;
}

/* بهبود زاویه caret در دکمه زبان */
.lang-toggle-btn .fa-caret-down {
    transition: transform 0.3s ease;
}

.ui-language-switcher:hover .lang-toggle-btn .fa-caret-down,
.ui-language-switcher:focus-within .lang-toggle-btn .fa-caret-down {
    transform: rotate(180deg);
}

/* رفع مشکل محو شدن ایکون‌ها در دسکتاپ */
@media (min-width: 769px) {
    .shortcut-item i,
    .service-icon i,
    .feature-icon i,
    .capability-icon i {
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
        text-rendering: optimizeLegibility !important;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    /* اضافه کردن glow effect برای ایکون‌ها */
    .shortcut-item:hover i,
    .service-icon:hover i,
    .feature-icon:hover i,
    .capability-icon:hover i,
    .stat-card:hover .stat-icon i {
        text-shadow: 0 0 10px var(--primary-neon),
                     0 0 20px var(--primary-neon),
                     0 0 30px var(--primary-neon);
    }
}

/* ======================================================= */
/* رفع مشکلات گزارش شده */
/* ======================================================= */

/* 1. رفع مشکل ایکون‌های محو شده در دسکتاپ */
@media (min-width: 769px) {
    i, .fa, .fas, .far, .fal, .fab,
    .fa-solid, .fa-brands, .fa-regular {
        font-smoothing: antialiased !important;
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
        text-rendering: optimizeLegibility !important;
    }
    
    .glass-widget i,
    .shortcut-item i,
    .logo i,
    .service-icon i,
    .feature-icon i,
    .capability-icon i {
        opacity: 1 !important;
        filter: none !important;
    }
}

/* 2. بهبود کامل متن‌های ناقص */
.hero-subtitle,
.section-description,
.service-description,
.feature-description,
.capability-description,
.faq-answer p,
.seo-block p,
#footerContentDisplay p,
.copyright p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* 3. رفع مشکل منوی زبان */
.ui-language-switcher {
    position: relative;
}

.ui-language-switcher .lang-dropdown {
    pointer-events: none;
    visibility: hidden;
}

.ui-language-switcher:hover .lang-dropdown,
.ui-language-switcher:focus-within .lang-dropdown {
    pointer-events: auto;
    visibility: visible;
}

/* 4. حفظ کامل بقیه بخش‌ها بدون تغییر */
/* همه استایل‌های قبلی حفظ شده‌اند، فقط بهبود یافته‌اند */

/* ======================================================= */
/* نسخه 2.0 - اضافه‌های جدید */
/* ======================================================= */

.version {
    color: var(--secondary-neon);
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(0, 224, 255, 0.1);
    padding: 3px 10px;
    border-radius: 10px;
    margin-top: 5px;
}

/* بهبود خطوط و جداکننده‌ها */
.service-footer,
.capability-stats,
.footer-bottom {
    border-color: var(--glass-border);
}

/* بهبود hover effects */
.shortcut-item:hover,
.cta-button:hover,
.service-link:hover,
.social-link:hover,
.keyword-tag:hover,
.lang-dropdown-item:hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* بهبود responsiveness برای متن‌های طولانی */
@media (max-width: 768px) {
    .hero-title,
    .section-title,
    .seo-title,
    .faq-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .hero-subtitle,
    .section-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .service-description,
    .feature-description,
    .capability-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* بهبود دسترسی‌پذیری */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* بهبود چاپ */
@media print {
    .translator-wrapper {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .bg-animation,
    .shortcut-item,
    .social-link,
    .cta-button,
    .service-link {
        display: none !important;
    }
}



@media (max-width: 768px) {

  /* ===== هدر اصلی ===== */
  .main-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 12px;
    align-items: start;
    flex-wrap: unset;
  }

  /* ===== بخش‌های چپ و راست ===== */
  .header-section {
    width: 100% !important;
    flex: unset !important;
  }

  /* ستون چپ: زبان، لوگو، ساعت */
  .left-widgets {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* ستون راست: آیکن‌ها */
  .right-widgets {
    display: flex;
    justify-content: center;
  }

  /* ===== آیکن‌ها (GRID واقعی) ===== */
  .left-widgets .floating-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    padding: 10px;
  }

  /* جلوگیری از بیرون‌زدگی */
  .shortcut-item {
    aspect-ratio: 1;
    width: 100%;
    font-size: 1.4rem;
  }

  /* ===== ویجت‌ها ===== */
  .glass-widget {
    width: 100%;
  }

  .ui-language-switcher,
  .status-info {
    width: 100%;
  }
    /* هدر به صورت ستون یا ردیف؟ */
    .main-header {
        flex-wrap: nowrap; /* اگه میخوای لوگو و آیکون ها کنار هم باشند */
        align-items: stretch; /* کشش ارتفاع همه عناصر */
        gap: 12px;
    }

    /* سمت چپ - آیکون‌ها */
    .left-widgets .floating-shortcuts {
        flex-direction: row; /* یا column اگر میخوای عمودی باشه */
        flex-wrap: wrap; /* اگر تعداد بیشتر شد */
        gap: 8px;
        align-items: stretch; /* کشش ارتفاع داخل ردیف */
    }

    /* سمت راست - لوگو */
    .right-widgets .logo {
        flex-grow: 1;           /* فضای باقی مانده را بگیرد */
        display: flex;
        flex-direction: column;
        justify-content: center; /* محتوا وسط باکس */
        align-items: center;
        height: auto;           /* ارتفاع خودکار */
        padding: 0 5px;         /* فاصله داخلی کم */
    }
}







/* پایه برای دکمه و پنل زبان */
.ui-language-switcher {
  position: relative;
  display: inline-block;
  font-family: var(--font-ru);
}

.lang-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: var(--btn-radius);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-hover);
}

.lang-dropdown {
  position: absolute;
  top: 100%; /* زیر دکمه */
  left: 0;
  min-width: 100%; /* هم‌اندازه دکمه */
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--btn-radius);
  box-shadow: var(--glass-shadow);
  display: none; /* به صورت JS باز/بسته می‌شود */
  flex-direction: column;
  z-index: 2000;
  padding: 5px 0;
}

.lang-dropdown-item {
  padding: 8px 12px;
  text-align: left;
  font-size: 0.9rem;
  background: transparent;
  border: none;
  width: 100%;
  cursor: pointer;
  white-space: nowrap;
}

.lang-dropdown-item:hover {
  background: rgba(0, 255, 136, 0.1);
  color: var(--primary-neon);
}

/* ===================== ریسپانسیو موبایل ===================== */
@media screen and (max-width: 768px) {
  .lang-toggle-btn {
    font-size: 0.95rem; /* کمی کوچکتر */
    padding: 6px 10px;
  }

  .lang-dropdown {
    top: 100%; /* همیشه زیر دکمه */
    left: 0;
    min-width: 100%;
    font-size: 0.9rem;
  }

  .lang-dropdown-item {
    font-size: 0.85rem; /* کوچکتر و مناسب موبایل */
    padding: 6px 10px;
  }
}

@media screen and (max-width: 420px) {
  .lang-toggle-btn {
    font-size: 0.9rem;
    padding: 5px 8px;
  }

  .lang-dropdown-item {
    font-size: 0.8rem;
    padding: 5px 8px;
  }
}
.lang-dropdown {
  top: 100% !important;  /* همیشه زیر دکمه */
  bottom: auto !important; /* اگر قبلا JS bottom تنظیم کرده */
  left: 0 !important;
}
@media screen and (max-width: 768px) {
  .lang-dropdown {
    top: 100% !important; 
    left: 0 !important;
    min-width: 100% !important;
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 420px) {
  .lang-dropdown {
    top: 100% !important;
    left: 0 !important;
    min-width: 100% !important;
    font-size: 0.8rem;
  }
}
