:root {
    --primary: #182a74;       /* سورمه‌ای سازمانی */
    --secondary: #00aae7;     /* آبی روشن حرفه‌ای */
    --accent: #ff00ff;        /* هایلایت */
    --gold: #c5a059;          /* طلایی */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f3f4f6;
    --white: #ffffff;
    --container-width: 1280px;
    --radius: 12px;
}

/* --- Reset & Base --- */
* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f9fafb;
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- Layout Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.d-flex-align-center {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- Top Bar & Ticker (Fixed Final) --- */

.top-bar {
    background-color: var(--primary); /* رنگ پس زمینه هدر */
    height: 50px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden; /* جلوگیری از اسکرول افقی کل صفحه */
    direction: ltr; /* مهم: جهت حرکت را استاندارد می‌کند */
}

/* کانتینر اصلی */
.ticker-container {
    flex: 1; /* فضای خالی را پر کند */
    height: 100%;
    overflow: hidden; /* مخفی کردن بیرون زدگی ها */
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 20px, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20px, black 95%, transparent);
}

/* تسمه متحرک (Belt) */
#ticker-belt {
    display: flex;          /* چیدمان خطی */
    flex-wrap: nowrap;      /* جلوگیری از شکستن خط (حل مشکل دو خط شدن) */
    align-items: center;
    height: 100%;
    width: max-content;     /* عرض به اندازه محتوا باز شود (حل مشکل گیر کردن) */
    
    /* انیمیشن */
    animation: scroll-left linear infinite; 
    /* زمان انیمیشن (duration) توسط جاوااسکریپت تنظیم می‌شود */
}

/* آیتم‌های تکی */
.t-item {
    display: inline-flex;
    align-items: center;
    padding: 0 30px;        /* فاصله افقی آیتم ها */
    height: 100%;
    white-space: nowrap;    /* متن هرگز نشکند */
    flex-shrink: 0;         /* آیتم جمع نشود */
    color: #e0f2fe;
    font-size: 0.95rem;
    direction: rtl;         /* متن داخل آیتم‌ها فارسی و راست چین باشد */
    border-right: 1px solid rgba(255,255,255,0.1); /* خط جداکننده */
}

/* استایل قیمت و نام */
.t-item span { margin: 0 3px; }
.t-price { font-weight: 700; color: #fff; font-family: sans-serif; dir: ltr; }
.t-curr { font-size: 0.75em; color: #cbd5e1; }

/* انیمیشن حرکت */
@keyframes scroll-left {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); } /* حرکت دقیقاً به اندازه نصف طول */
}

/* رنگ آیکون‌ها */
.type-crypto { color: #f97316 !important; }
.type-gold { color: #fbbf24 !important; }
.type-stock { color: #34d399 !important; }
.c-curr { color: #60a5fa !important; }

/* --- اصلاح رنگ و فونت هدر --- */
.top-info, 
.top-social a {
    color: #ffffff !important; /* رنگ سفید اجباری */
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.top-social a:hover {
    color: var(--secondary) !important; /* تغییر رنگ هنگام موس */
}

.top-info i,
.top-social i {
    color: var(--secondary); /* رنگ آیکون‌ها */
}



/* --- Header --- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo img { height: 60px; width: auto; }

.nav-menu { display: flex; gap: 30px; }
.nav-menu a { font-weight: 500; position: relative; }
.nav-menu a:hover { color: var(--primary); }
.nav-menu a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; right: 0; background: var(--secondary); transition: 0.3s;
}
.nav-menu a:hover::after { width: 100%; }

.header-btn {
    background: var(--primary); color: white; padding: 10px 25px;
    border-radius: 50px; font-size: 0.9rem; border: 2px solid transparent;
}
.header-btn:hover {
    background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn-secondary { background: var(--secondary); border-color: var(--secondary); }
.btn-outline { background: transparent; border-color: white; }
.btn-outline:hover { background: white; color: var(--primary); }

/* --- Hero --- */
.hero {
    background: linear-gradient(120deg, var(--primary) 0%, #0f1c50 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    text-align: center;
}
.hero h1 { font-size: 2.5rem; font-weight: 900; margin-bottom: 20px; }
.hero-btns { display: flex; gap: 15px; justify-content: center; margin-top: 30px; }
.hero-stats {
    display: flex; justify-content: center; gap: 50px; margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.2); padding-top: 30px;
}
.stat-item h3 { font-size: 2rem; color: var(--secondary); }

/* --- Services & General --- */
.section-title { text-align: center; margin: 80px 0 50px; }
.section-title h2 {
    font-size: 2rem; color: var(--primary); font-weight: 800;
    display: inline-block; position: relative;
}
.section-title h2::after {
    content: ''; display: block; width: 60px; height: 4px;
    background: var(--secondary); margin: 15px auto 0;
}

.grid-3 {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px;
}

.service-card {
    background: white; padding: 40px 30px; border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: 0.4s;
    border-top: 5px solid transparent;
}
.service-card:hover { transform: translateY(-10px); border-top-color: var(--secondary); }

.icon-box {
    width: 60px; height: 60px; background: rgba(0, 170, 231, 0.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--primary); margin-bottom: 20px;
}
.service-card:hover .icon-box { background: var(--primary); color: white; }

/* --- Investment --- */
.invest-section { background-color: #f0f4f8; padding: 80px 0; margin-top: 80px; }
.invest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.invest-card {
    background: white; padding: 25px; border-radius: var(--radius);
    text-align: center; border: 1px solid #e5e7eb; transition: 0.3s;
}
.invest-card:hover { border-color: var(--gold); transform: scale(1.02); }
.invest-icon { font-size: 2.5rem; margin-bottom: 15px; }
.color-gold { color: var(--gold); }
.color-green { color: #26a17b; }
.color-orange { color: #f7931a; }
.color-red { color: #e74c3c; }

/* --- Expert Row --- */
.expert-row {
    display: flex; background: white; border-radius: var(--radius);
    overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.05); margin-bottom: 30px;
}
.expert-img {
    flex: 0 0 200px; background: #e0f2fe; color: var(--secondary);
    font-size: 4rem; display: flex; align-items: center; justify-content: center;
}
.expert-info { padding: 30px; flex: 1; }
.expert-tags { display: flex; gap: 10px; margin-top: 15px; flex-wrap: wrap; }
.expert-tags span {
    background: #f3f4f6; padding: 5px 15px; border-radius: 20px;
    font-size: 0.85rem; color: #555;
}

/* --- Footer --- */
footer { background-color: #111827; color: #d1d5db; padding: 60px 0 0; margin-top: 100px; }
.footer-top {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 40px;
    border-bottom: 1px solid #374151;
}
.footer-brand p { margin-top: 15px; font-size: 0.9rem; line-height: 1.6; }
.footer-logo { height: 80px; width: auto; filter: brightness(0) invert(1); opacity: 0.8; }
.footer-col h4 { color: white; margin-bottom: 20px; border-right: 3px solid var(--secondary); padding-right: 10px; }
.footer-col a { display: block; margin-bottom: 10px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--secondary); padding-right: 5px; }
.footer-contact li { display: flex; margin-bottom: 12px; }
.footer-contact i { color: var(--secondary); margin-left: 10px; margin-top: 5px; }

.footer-bottom { background: #0b111d; padding: 20px 0; text-align: center; font-size: 0.8rem; }
.developer-link { color: var(--secondary); font-weight: bold; margin-top: 5px; display: inline-block; }

/* --- Floating Button --- */
.floating-contact-wrapper { position: fixed; bottom: 30px; right: 30px; z-index: 9999; }
.main-fab {
    width: 60px; height: 60px; background: var(--accent); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: white;
    font-size: 24px; box-shadow: 0 4px 15px rgba(255, 0, 255, 0.4); cursor: pointer;
    transition: transform 0.3s; animation: pulse 2s infinite;
}
.main-fab:hover { transform: scale(1.1); }
.fab-options {
    position: absolute; bottom: 70px; right: 0; display: flex; flex-direction: column;
    gap: 10px; align-items: flex-end; opacity: 0; transform: translateY(20px);
    pointer-events: none; transition: 0.3s;
}
.fab-options.active { opacity: 1; transform: translateY(0); pointer-events: all; }
.fab-item {
    display: flex; align-items: center; gap: 10px; background: white;
    padding: 8px 15px; border-radius: 50px; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: var(--primary); font-size: 0.9rem; transition: 0.2s; white-space: nowrap;
}
.fab-item:hover { transform: translateX(-5px); }
.fab-icon {
    width: 32px; height: 32px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; color: white;
}
.instagram { background: linear-gradient(45deg, #f09433, #bc1888); }
.telegram { background: #0088cc; }
.whatsapp { background: #25D366; }
.phone { background: #333; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 0, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 255, 0); }
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .header-inner { flex-direction: column; height: auto; padding: 10px 0; gap: 10px; }
    .nav-menu { flex-wrap: wrap; justify-content: center; gap: 15px; font-size: 0.9rem; }
    .hero h1 { font-size: 1.8rem; }
    .footer-top { grid-template-columns: 1fr; }
    .expert-row { flex-direction: column; }
    .expert-img { padding: 30px; }
    /* در موبایل فقط تیکر و دکمه تماس بماند */
    .top-info, .top-social { display: none; } 
}

/* انیمیشن اسکرول */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
/* --- Ziraat Bank Section --- */
.ziraat-section {
    padding: 80px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

/* پترن پس‌زمینه */
.ziraat-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}

.process-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 60px;
    gap: 30px;
}

/* خط اتصال افقی (فقط در دسکتاپ) */
.process-line {
    position: absolute;
    top: 40px;
    left: 50px;
    right: 50px;
    height: 4px;
    background: #e5e7eb;
    z-index: 1;
    border-radius: 10px;
}

.process-step {
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
    padding: 0 10px;
}

/* دایره آیکون */
.step-icon {
    width: 80px;
    height: 80px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px; /* وسط چین کردن دقیق */
    font-size: 2rem;
    color: var(--primary);
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.process-step:hover .step-icon {
    transform: translateY(-5px);
    background: var(--primary);
    color: white;
    border-color: var(--secondary);
}

/* شماره کوچک */
.step-number {
    position: absolute;
    top: -5px;
    right: -5px; /* تنظیم دقیق گوشه */
    width: 28px;
    height: 28px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    font-weight: bold;
    z-index: 3;
}

/* متن‌ها */
.process-step h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    padding: 0 5px;
}

/* --- باکس دکمه (CTA) --- */
.ziraat-cta {
    margin-top: 70px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

.cta-box {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    padding: 25px 40px;
    border-radius: 15px; /* کمی گردتر */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* نکته مهم: جلوگیری از تداخل متن و دکمه */
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.cta-box span {
    font-weight: 600;
    color: #166534;
    font-size: 1rem;
    line-height: 1.6;
}

.cta-box .header-btn {
    white-space: nowrap; /* جلوگیری از شکستن متن دکمه */
}

/* --- Responsive (اصلاح اساسی موبایل) --- */
@media (max-width: 992px) {
    .process-wrapper {
        flex-direction: column;
        gap: 0;
        padding-right: 10px; /* فضا برای تایم لاین */
    }
    
    /* مخفی کردن خط افقی */
    .process-line { display: none; }

    .process-step {
        display: flex;
        text-align: right; /* راست چین برای فارسی */
        padding: 0 0 40px 0;
        align-items: flex-start;
        position: relative;
    }

    /* خط عمودی جدید برای موبایل */
    .process-step::before {
        content: '';
        position: absolute;
        right: 40px; /* دقیقاً وسط آیکون */
        top: 0;
        bottom: 0;
        width: 3px;
        background: #e5e7eb;
        z-index: 1;
    }

    /* حذف خط از آیتم آخر */
    .process-step:last-child::before { display: none; }

    .step-icon {
        margin: 0 0 0 20px; /* فاصله از متن */
        min-width: 80px; /* ثابت نگه داشتن سایز آیکون */
        z-index: 2; /* روی خط قرار بگیرد */
    }

    /* اصلاح متن در موبایل */
    .process-step div {
        padding-top: 10px; /* تراز شدن با آیکون */
    }

    /* اصلاح دکمه در موبایل */
    .cta-box {
        flex-direction: column;
        padding: 20px;
    }
    
    .cta-box .header-btn {
        width: 100%;
        text-align: center;
    }
}

