/* ------------------- */
/* تنظیمات کلی (Dark Tech Theme) */
/* ------------------- */
:root {
    --bg-color: #121212;
    --card-bg-color: #1E1E1E;
    --primary-color: #00BCD4; /* فیروزه‌ای */
    --accent-color: #FF5722;  /* نارنجی */
    --text-primary: #E0E0E0;
    --text-secondary: #BDBDBD;
    --border-radius: 12px;
    --shadow: 0 8px 20px rgba(0,0,0,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: hidden;
    direction: rtl;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }

.section-title {
    text-align: center; font-size: 2.2rem; font-weight: 800;
    margin-bottom: 15px; color: var(--text-primary);
}
.section-subtitle {
    text-align: center; font-size: 1.1rem; color: var(--text-secondary);
    max-width: 700px; margin: 0 auto 60px;
}

/* دکمه‌ها */
.btn {
    display: inline-block; padding: 12px 28px; border-radius: 50px;
    text-decoration: none; font-weight: 500; transition: 0.3s;
    border: 2px solid transparent; cursor: pointer;
}
.btn-primary {
    background-color: var(--primary-color); color: #121212; font-weight: 700;
}
.btn-primary:hover {
    background-color: #00acc1; transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
}
.btn-light { background: #fff; color: #121212; }
.btn-light:hover { background: #f0f0f0; }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: #121212; }
.btn-large { padding: 15px 35px; font-size: 1.1rem; }

/* هدر */
.main-header {
    background: rgba(18, 18, 18, 0.95); backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid #333;
}
.main-header .container {
    display: flex; justify-content: space-between; align-items: center; padding: 15px 20px;
}
.logo-container { display: flex; align-items: center; gap: 10px; }
.site-name { font-size: 1.8rem; font-weight: 900; color: var(--primary-color); }
.desktop-nav { display: flex; align-items: center; gap: 20px; }
.contact-link { color: var(--text-secondary); text-decoration: none; transition: 0.3s; }
.contact-link:hover { color: var(--primary-color); }

/* منوی موبایل */
.mobile-menu-btn {
    display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px;
}
.mobile-menu-btn span {
    width: 25px; height: 3px; background: var(--text-primary); transition: 0.3s;
}
.mobile-nav {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100%;
    background: var(--card-bg-color); z-index: 1001; transition: 0.4s;
    padding-top: 60px; box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}
.mobile-nav.active { right: 0; }
.mobile-nav ul { list-style: none; }
.mobile-nav li:hover { background-color: #00a5ba; color: #1E1E1E; }
.mobile-nav a {
    display: block; padding: 15px 25px; color: var(--text-primary);
    text-decoration: none; border-bottom: 1px solid #333;
}

/* Hero Section */
.hero-section {
    /* عکس پس‌زمینه با کیفیت‌تر */
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.9)), 
                url('img/mopro-baner-index.webp');
    background-size: cover; background-position: center;
    height: 90vh; display: flex; align-items: center; justify-content: center;
    text-align: center; color: white;
}
.hero-logo-circle {
    width: 100px; height: 100px; background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 3rem; font-weight: 900; margin: 0 auto 20px;
    box-shadow: 0 0 30px rgba(0, 188, 212, 0.6);
}
.hero-title { font-size: 4rem; font-weight: 900; margin-bottom: 10px; }
.hero-slogan { font-size: 1.5rem; margin-bottom: 40px; font-weight: 300; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* Benefits */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.benefit-card {
    background: var(--card-bg-color); padding: 40px 30px; border-radius: var(--border-radius);
    text-align: center; transition: 0.3s; border: 1px solid #333;
}
.benefit-card:hover {
    transform: translateY(-10px); border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.15);
}
.benefit-card i { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; }
.benefit-card h4 { color: var(--text-primary); margin-bottom: 15px; font-size: 1.3rem; }

/* Slider */
/* کانتینر اصلی اسلایدر */
.slider-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    background: var(--bg-color);
    padding: 30px 0;
    /* ایجاد سایه در طرفین برای محو شدن (اختیاری و جذاب) */
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

/* ریلی که گروه‌ها در آن قرار دارند */
.slider-track {
    display: flex;
    width: 100%;
    overflow: hidden;
    /* جهت چپ‌چین برای محاسبات راحت‌تر انیمیشن */
    direction: ltr; 
}

/* گروه‌های کارت‌ها (هر گروه شامل کل لیست است) */
.slide-group {
    display: flex;
    gap: 30px; /* فاصله بین آیتم‌ها */
    
    /* نکته مهم: فاصله بعد از آخرین آیتم گروه اول تا اولین آیتم گروه دوم */
    padding-right: 30px; 
    
    min-width: 100%; /* حداقل به اندازه عرض صفحه */
    flex-shrink: 0;  /* جلوگیری از فشرده شدن */
    
    /* انیمیشن حرکت */
    animation: scroll 40s linear infinite;
    
    /* آیتم‌ها را وسط چین کن */
    align-items: center;
    justify-content: flex-start;
}

/* استایل کارت‌ها */
.bankdar-card {
    width: 220px;
    background: var(--card-bg-color);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid #333;
    flex-shrink: 0;
    transition: transform 0.3s;
    /* جهت متن را راست‌چین می‌کنیم چون والد LTR شده بود */
    direction: rtl; 
}

.bankdar-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.bankdar-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 50%;
    background: #fff; /* پس زمینه سفید برای لوگوها */
    padding: 5px;
}

/* انیمیشن حرکت بی‌نهایت */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* حرکت به اندازه منفی ۱۰۰ درصد (یعنی کل طول یک گروه) */
        transform: translateX(-100%);
    }
}

/* توقف حرکت وقتی موس روی آن است */
.slider-track:hover .slide-group {
    animation-play-state: paused;
}

/* Statistics Chart */
.statistics-section { padding: 100px 0; background: linear-gradient(rgba(18, 18, 18, 0.85), rgba(18, 18, 18, 0.85)), url('img/mopro-baner-index-2.webp') no-repeat center center/cover; }
.statistics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.chart-box {
    background: var(--card-bg-color); padding: 30px; border-radius: var(--border-radius);
    box-shadow: var(--shadow); border: 1px solid #333; position: relative;
}
.chart-box h4 { text-align: center; color: var(--text-primary); margin-bottom: 20px; }
.canvas-container {
    position: relative; height: 300px; width: 100%; display: flex; justify-content: center;
}
.explanation-box h4 { font-size: 1.8rem; color: var(--text-primary); margin-bottom: 20px; }
.explanation-box ul { list-style: none; margin-top: 20px; }
.explanation-box li { padding: 10px 0; border-bottom: 1px solid #333; display: flex; align-items: center; gap: 10px; }
.explanation-box li:before { content: '✓'; color: var(--accent-color); font-weight: bold; }

/* Footer */
.main-footer { background: #0a0a0a; padding: 60px 0 20px; border-top: 1px solid #333; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--primary-color); margin-bottom: 20px; font-size: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col a { color: var(--text-secondary); text-decoration: none; display: block; padding: 5px 0; transition: 0.3s; }
.footer-col a:hover { color: var(--primary-color); padding-right: 5px; }
.social-links a { display: inline-block; font-size: 1.2rem; margin-left: 15px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #222; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 992px) {
    .statistics-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 3rem; }
}
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero-title { font-size: 2.5rem; }
    .benefits-grid { grid-template-columns: 1fr; }
    .footer-grid {
        text-align: center; /* وسط‌چین کردن متون فوتر */
    }
    .footer-col a:hover {
        padding-right: 0; /* غیرفعال کردن افکت حرکت به راست در موبایل */
    }
    .main-footer .social-links {
        justify-content: center; /* وسط‌چین کردن آیکون‌ها */
    }
}