/* ============================================================
   1. تنظیمات پایه و متغیرها (Light Theme - Shared)
   ============================================================ */
@font-face { font-family: 'IRANSansX'; src: url('Font/IRANSansX-Regular.woff') format('woff'); font-weight: 400; }
@font-face { font-family: 'IRANSansX'; src: url('Font/IRANSansX-Bold.woff') format('woff'); font-weight: 700; }
@font-face { font-family: 'IRANSansX'; src: url('Font/IRANSansX-Black.woff') format('woff'); font-weight: 900; }

:root {
    /* پالت رنگی */
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary: #64748b;
    --accent: #f59e0b;
    
    /* پس‌زمینه و کارت */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    
    /* متن */
    --text-main: #0f172a;
    --text-body: #334155;
    --text-muted: #94a3b8;
    
    /* سایه‌ها و شیشه */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    --bg-glass: rgba(255, 255, 255, 0.95);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'IRANSansX', sans-serif; text-decoration: none; list-style: none; -webkit-tap-highlight-color: transparent; }

body { 
    background-color: var(--bg-body); 
    color: var(--text-body); 
    overflow-x: hidden; 
    line-height: 1.6;
}

/* ============================================================
   2. نوبار دسکتاپ (فیکس شده)
   ============================================================ */
/* FIX: نقطه قبل از کلاس اضافه شد */
.desktop-header {
    position: fixed;
    top: 25px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center; /* وسط‌چین کردن کپسول */
    z-index: 1000;
    padding: 0 20px;
    transition: top 0.3s;
    pointer-events: none; /* کلیک از فضای خالی رد شود */
}

.nav-container {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
    max-width: 1100px; /* عرض کپسول */
    height: 75px;
    border-radius: 50px;
    box-shadow: 0 8px 30px -5px rgba(14, 165, 233, 0.15); /* سایه نرم */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 35px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    pointer-events: auto; /* کلیک روی خود نوبار فعال شود */
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.logo svg {
    stroke-width: 2px;
    filter: drop-shadow(0 2px 4px rgba(14, 165, 233, 0.3));
}

.desktop-menu { display: flex; gap: 35px; }

.desktop-menu a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

.desktop-menu a:hover, .desktop-menu a.active { color: var(--primary); }

.desktop-menu a.active::after {
    content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
    width: 6px; height: 6px; background: var(--primary); border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.desktop-actions { display: flex; align-items: center; gap: 15px; }

.btn-icon {
    color: var(--text-main);
    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    transition: 0.3s;
}
.btn-icon:hover { background-color: #f1f5f9; color: var(--primary); transform: translateY(-2px); }

.badge-count {
    position: absolute; top: 6px; right: 6px;
    background: #ef4444; color: white; font-size: 0.7rem;
    width: 16px; height: 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid white;
}

.btn-login {
    background-color: var(--primary);
    color: white; padding: 10px 24px; border-radius: 30px;
    font-size: 0.9rem; font-weight: 700; transition: 0.3s;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}
.btn-login:hover { background-color: var(--primary-dark); transform: translateY(-2px); }

.mobile-bottom-nav { display: none; }

/* ===========================
   استایل جستجوی کشویی (Drop-down)
   =========================== */
.search-wrapper { position: relative; }

.search-dropdown {
    position: absolute; top: 140%; left: -10px; width: 260px;
    background: white; padding: 10px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); opacity: 0; visibility: hidden;
    transform: translateY(-10px); transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1001; border: 1px solid #f1f5f9;
}
.search-dropdown::before {
    content: ''; position: absolute; top: -6px; left: 20px;
    width: 12px; height: 12px; background: white; transform: rotate(45deg);
    border-top: 1px solid #f1f5f9; border-left: 1px solid #f1f5f9;
}
.search-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }

.search-form {
    display: flex; align-items: center; background: #f8fafc;
    border-radius: 8px; padding: 5px 10px; border: 1px solid #e2e8f0; transition: 0.3s;
}
.search-form:focus-within { border-color: var(--primary); background: white; }

.search-input-small {
    border: none; background: transparent; width: 100%; padding: 8px 5px;
    font-size: 0.85rem; color: var(--text-main); outline: none;
}

.search-submit {
    background: var(--primary); border: none; color: white;
    width: 28px; height: 28px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.2s;
}
.search-submit:hover { background: var(--primary-dark); }

/* ============================================================
   4. استایل لیست خدمات (Services Grid - Modern & Clean)
   ============================================================ */
.services-list-section {
    padding: 60px 0 100px 0;
    position: relative;
    z-index: 1;
}

/* هدر وسط‌چین بخش */
.section-header-center {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

/* خط تزئینی زیر تیتر */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 10px;
    margin: 10px auto 0 auto;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--secondary);
}

/* شبکه کارت‌ها */
.services-grid {
    display: grid;
    /* این خط باعث می‌شود در دسکتاپ ۴ ستون و در موبایل ۱ ستون شود */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* --- استایل کارت اصلی --- */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px; /* گوشه‌های گرد و مدرن */
    padding: 35px 25px;
    position: relative;
    overflow: hidden; /* برای مخفی کردن نورهای اضافی */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* انیمیشن نرم */
    z-index: 1;
}

/* افکت هاور کارت */
.service-card:hover {
    transform: translateY(-10px); /* بالا آمدن */
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.1); /* سایه آبی ملایم */
    border-color: transparent;
}

/* --- افکت نورانی (Glow) --- */
.card-glow {
    position: absolute;
    top: -50px;
    left: -50px; /* نور در گوشه بالا چپ */
    width: 150px;
    height: 150px;
    border-radius: 50%;
    filter: blur(70px); /* محو کردن برای ایجاد هاله */
    opacity: 0.4;
    z-index: -1;
    transition: 0.5s;
}
.service-card:hover .card-glow { opacity: 0.7; transform: scale(1.2); }

/* رنگ‌های نور */
.blue-glow { background: #3b82f6; }
.orange-glow { background: #f97316; }
.green-glow { background: #10b981; }
.purple-glow { background: #a855f7; }

/* --- باکس آیکون --- */
.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
    transition: 0.3s;
}
/* انیمیشن آیکون هنگام هاور */
.service-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* تم‌های رنگی آیکون (پس‌زمینه کمرنگ + آیکون پررنگ) */
.blue-theme { background: #eff6ff; color: #3b82f6; }
.orange-theme { background: #fff7ed; color: #f97316; }
.green-theme { background: #ecfdf5; color: #10b981; }
.purple-theme { background: #faf5ff; color: #a855f7; }

/* محتوای متنی */
.service-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--secondary);
    margin-bottom: 20px;
}

/* خط جداکننده */
.divider {
    width: 100%;
    height: 1px;
    background: #f1f5f9; /* خیلی کمرنگ */
    margin: 20px 0;
}

/* لیست ویژگی‌ها */
.card-features {
    list-style: none;
    padding: 0;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-body);
    margin-bottom: 12px;
    font-weight: 500;
}

.card-features i {
    font-size: 1rem;
}

/* ===========================
   استایل دکمه‌های درخواست همکاری (داخل کارت)
   =========================== */
.btn-service-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    margin-top: 25px; /* فاصله از لیست بالا */
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid; /* رنگ بوردر متغیر است */
    background: transparent;
    cursor: pointer;
    text-decoration: none; /* حذف زیرخط لینک */
}

/* افکت هاور عمومی */
.btn-service-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-service-action:hover i {
    transform: translateX(-5px); /* حرکت فلش به چپ */
}

.btn-service-action i {
    transition: transform 0.3s;
}

/* --- رنگ‌بندی اختصاصی دکمه‌ها --- */

/* تم آبی */
.btn-blue {
    color: #3b82f6;
    border-color: #3b82f6;
    background: #eff6ff; /* پس‌زمینه خیلی کمرنگ */
}
.btn-blue:hover {
    background: #3b82f6;
    color: white;
}

/* تم نارنجی */
.btn-orange {
    color: #f97316;
    border-color: #f97316;
    background: #fff7ed;
}
.btn-orange:hover {
    background: #f97316;
    color: white;
}

/* تم سبز */
.btn-green {
    color: #10b981;
    border-color: #10b981;
    background: #ecfdf5;
}
.btn-green:hover {
    background: #10b981;
    color: white;
}

/* تم بنفش */
.btn-purple {
    color: #a855f7;
    border-color: #a855f7;
    background: #faf5ff;
}
.btn-purple:hover {
    background: #a855f7;
    color: white;
}

/* رنگ تیک‌ها بر اساس تم کارت */
.blue-theme ~ .card-content .card-features i { color: #3b82f6; }
.orange-theme ~ .card-content .card-features i { color: #f97316; }
.green-theme ~ .card-content .card-features i { color: #10b981; }
.purple-theme ~ .card-content .card-features i { color: #a855f7; }



/* ============================================================
   3. استایل بخش Hero (سربرگ خدمات)
   ============================================================ */

.services-wrapper {
    /* حیاتی: فاصله از بالا برای اینکه زیر نوبار نرود */
    padding-top: 0; 
}

.hero-section {
    position: relative;
    padding: 140px 0 80px 0; /* فاصله زیاد از بالا */
    background-color: #f8fafc;
    overflow: hidden; /* برای اینکه اشکال از کادر بیرون نزنند */
    text-align: center;
}

/* محتوای مرکزی */
.hero-content {
    position: relative;
    z-index: 2; /* روی اشکال قرار بگیرد */
    max-width: 800px;
    margin: 0 auto;
}

/* بج بالای تیتر */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

/* تیتر اصلی */
.hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 20px;
}

.highlight-text {
    color: var(--primary);
    position: relative;
    display: inline-block;
}
/* خط گرافیکی زیر متن رنگی */
.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 0;
    width: 100%;
    height: 12px;
    background: rgba(14, 165, 233, 0.15);
    z-index: -1;
    border-radius: 4px;
    transform: rotate(-2deg);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 35px;
    line-height: 1.8;
    padding: 0 20px;
}

/* دکمه‌ها */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.btn-hero-primary {
    background: var(--primary);
    color: white;
    padding: 14px 30px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
    transition: 0.3s;
    display: flex; align-items: center; gap: 8px;
}
.btn-hero-primary:hover {
    transform: translateY(-3px);
    background: var(--primary-dark);
}

.btn-hero-outline {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 14px 30px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    transition: 0.3s;
    display: flex; align-items: center; gap: 8px;
}
.btn-hero-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f0f9ff;
}

/* آمار پایین هدر */
.hero-stats {
    display: inline-flex;
    align-items: center;
    background: white;
    padding: 15px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stat-num { font-weight: 900; font-size: 1.2rem; color: var(--text-main); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

.stat-divider {
    width: 1px;
    height: 30px;
    background: var(--border);
}

/* --- اشکال متحرک پس‌زمینه (Animations) --- */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    filter: blur(60px);
    opacity: 0.6;
    animation: floatShape 8s infinite ease-in-out;
}

.shape-1 {
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(14, 165, 233, 0.2); /* آبی */
}

.shape-2 {
    bottom: 50px;
    left: -50px;
    width: 250px;
    height: 250px;
    background: rgba(245, 158, 11, 0.15); /* زرد/نارنجی */
    animation-delay: 4s;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 40px); }
}





/* ============================================================
   5. استایل مراحل انجام پروژه (Timeline Section)
   ============================================================ */
.work-steps-section {
    padding: 80px 0 100px 0;
    background-color: #f8fafc; /* رنگ پس‌زمینه متفاوت از بخش قبلی */
    position: relative;
    overflow: hidden;
}

/* هدر بخش (اگر قبلاً تعریف نشده) */
.section-header-center {
    text-align: center;
    margin-bottom: 60px;
}

/* کانتینر اصلی مراحل */
.steps-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* کارت‌ها از بالا تراز شوند */
    position: relative;
    gap: 30px;
    margin-top: 20px;
}

/* خط اتصال (Connector Line) - فقط در دسکتاپ */
.steps-connector {
    position: absolute;
    top: 50px; /* تنظیم دقیق ارتفاع خط پشت آیکون‌ها */
    left: 60px;
    right: 60px;
    height: 2px;
    /* ایجاد خط‌چین با گرادینت */
    background-image: linear-gradient(to right, #cbd5e1 50%, transparent 50%);
    background-size: 20px 100%; /* اندازه خط‌چین */
    z-index: 0; /* زیر کارت‌ها باشد */
    opacity: 0.6;
}

/* --- استایل کارت مرحله --- */
.step-card {
    flex: 1; /* تقسیم مساوی فضا */
    background: white;
    padding: 40px 25px 30px 25px;
    border-radius: 24px;
    text-align: center;
    position: relative;
    z-index: 1; /* روی خط باشد */
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

/* هاور کارت */
.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
    border-color: transparent;
}

/* دایره شماره (Badge) */
.step-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    color: var(--text-muted);
    font-weight: 800;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    transition: 0.3s;
}

/* تغییر رنگ شماره در هاور */
.step-card:hover .step-badge {
    background: var(--primary);
    color: white;
}

/* آیکون اصلی */
.step-icon {
    width: 100px;
    height: 100px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 25px auto; /* وسط‌چین */
    font-size: 2.5rem;
    color: var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.03); /* سایه نرم */
    position: relative;
    z-index: 2;
    transition: 0.5s; /* انیمیشن چرخش */
}

/* افکت چرخش آیکون در هاور */
.step-card:hover .step-icon {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg); /* چرخش سه‌بعدی */
    border-color: var(--primary);
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 15px;
}

.step-card p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--secondary);
}





/* ============================================================
   6. استایل جداول قیمت‌گذاری (Chic & Compact)
   ============================================================ */
.pricing-section {
    padding: 80px 0 120px 0;
    background-color: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px; /* فاصله بین کارت‌ها کمتر شد */
    align-items: stretch; /* هم‌ارتفاع شدن کارت‌ها */
    max-width: 1000px; /* عرض کل گرید محدودتر شد */
    margin: 0 auto;
}

/* --- کارت قیمت پایه --- */
.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 30px 25px; /* پدینگ کمتر شده */
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #f1f5f9;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02); /* سایه خیلی خیلی محو */
    display: flex;
    flex-direction: column;
}

/* هاور کارت */
.pricing-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: transparent;
}

/* --- کارت ویژه (Featured) --- */
.pricing-card.featured {
    background: #ffffff;
    border: none; /* حذف بوردر ساده */
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.12); /* سایه رنگی نرم */
    transform: scale(1.05); /* بزرگنمایی خیلی ملایم‌تر */
    z-index: 2;
    overflow: hidden; /* برای نوار رنگی */
    padding-top: 45px; /* فضا برای بج */
}

/* نوار گرادینت بالای کارت ویژه */
.featured-top-bar {
    position: absolute; top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

/* بج "محبوب‌ترین" (شیک‌تر) */
.badge-popular {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--accent);
    color: white;
    padding: 5px 30px;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(45deg); /* بج گوشه‌ای */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --- هدر کارت --- */
.plan-header { margin-bottom: 25px; flex-grow: 1; }

.plan-name {
    font-size: 0.95rem;
    color: var(--secondary);
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-box {
    margin-bottom: 15px;
    color: var(--text-main);
}
.price-box .amount {
    font-size: 2.2rem; /* قیمت خیلی بزرگ */
    font-weight: 900;
    line-height: 1;
}
.price-box .unit {
    display: block; /* واحد در خط زیر */
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 5px;
}
.primary-color { color: var(--primary) !important; }

.plan-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
    padding: 0 10px;
}

/* --- لیست ویژگی‌ها (فشرده) --- */
.plan-features.compact {
    text-align: right;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8fafc; /* پس‌زمینه طوسی خیلی کمرنگ برای لیست */
    border-radius: 15px;
}

.plan-features.compact li {
    margin-bottom: 10px; /* فاصله کمتر */
    font-size: 0.85rem;
    color: var(--text-body);
    display: flex;
    align-items: center;
    gap: 8px;
}
.plan-features.compact li:last-child { margin-bottom: 0; }

.plan-features i { color: #cbd5e1; font-size: 0.9rem; } /* رنگ پیشفرض آیکون */
.plan-features i.primary-color { color: var(--primary); } /* آیکون‌های کارت ویژه */

.plan-features li.disabled {
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.6;
}
/* حذف آیکون برای آیتم‌های غیرفعال در طرح جدید */
.plan-features li.disabled i { display: none; }
.plan-features li.disabled::before {
    content: '•'; color: #cbd5e1; margin-left: 8px; font-size: 1.2rem; line-height: 0.8;
}

/* --- دکمه‌ها (باریک‌تر) --- */
.btn-plan-select {
    width: 100%;
    padding: 12px; /* ارتفاع کمتر */
    border-radius: 12px;
    background: white;
    border: 2px solid #e2e8f0; /* بوردر ضخیم‌تر */
    color: var(--text-main);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
}
.btn-plan-select:hover {
    border-color: var(--text-main);
    background: var(--text-main);
    color: white;
}

.btn-primary-plan {
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.2);
}
.btn-primary-plan:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
    color: white;
}

/* ===========================
   RESPONSIVE (موبایل)
   =========================== */




/* ============================================================
   7. استایل چرا ما و شروع همکاری (Why Us & CTA)
   ============================================================ */
.why-us-section {
    background: #f8fafc;
}

/* --- شبکه ویژگی‌ها (4 ستونه) --- */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 80px;
}

.feature-box {
    background: white;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: transparent;
}

.f-icon {
    width: 60px; height: 60px;
    background: #e0f2fe; /* آبی خیلی روشن */
    color: var(--primary);
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px auto;
    transition: 0.3s;
}

.feature-box:hover .f-icon {
    background: var(--primary);
    color: white;
    transform: rotate(10deg);
}

.feature-box h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
}

.feature-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- بنر بزرگ CTA (Call to Action) --- */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 30px;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(14, 165, 233, 0.3); /* سایه رنگی */
    color: white;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.cta-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: white;
}

.cta-text {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.8;
}

.cta-actions {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 15px;
}

/* دکمه‌های بنر */
.btn-cta-primary {
    background: white;
    color: var(--primary);
    padding: 15px 30px;
    border-radius: 15px;
    font-weight: 800;
    font-size: 1rem;
    display: flex; align-items: center; gap: 10px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background: #f0f9ff;
}

.btn-cta-outline {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 15px 30px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    display: flex; align-items: center; gap: 10px;
    transition: 0.3s;
}

.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
}

/* پترن پس‌زمینه بنر (دایره‌های تزئینی) */
.cta-pattern {
    position: absolute;
    top: -50px; right: -50px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}
.cta-pattern::after {
    content: ''; position: absolute;
    bottom: -200px; left: -200px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* ===========================
   RESPONSIVE (موبایل)
   =========================== */







/* ============================================================
   8. استایل نمونه‌کارها (Portfolio)
   ============================================================ */
.portfolio-section {
    padding: 80px 0 100px 0;
    background: white;
}

/* دکمه‌های فیلتر */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    padding: 10px 25px;
    border-radius: 50px;
    color: var(--text-muted);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

/* شبکه پروژه‌ها */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.portfolio-item {
    transition: all 0.4s ease;
}
/* کلاس برای مخفی کردن آیتم‌ها در فیلتر */
.portfolio-item.hide {
    display: none;
}
/* انیمیشن ظاهر شدن */
.portfolio-item.show {
    animation: fadeInScale 0.5s ease forwards;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* کارت پروژه */
.portfolio-card {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: 0.3s;
    background: white;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* بخش تصویر (Placeholder) */
.portfolio-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; color: white;
}
.bg-blue { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.bg-orange { background: linear-gradient(135deg, #fbbf24, #d97706); }
.bg-purple { background: linear-gradient(135deg, #c084fc, #7c3aed); }
.bg-green { background: linear-gradient(135deg, #4ade80, #16a34a); }

/* لایه تاریک روی عکس (Overlay) */
.portfolio-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: 0.3s;
    backdrop-filter: blur(3px);
}

.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.btn-view-project {
    background: white;
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: 0.3s;
}

.portfolio-card:hover .btn-view-project {
    transform: translateY(0);
}

/* اطلاعات پایین کارت */
.portfolio-info {
    padding: 20px;
    text-align: right;
}

.category-tag {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

.portfolio-info h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.portfolio-info p {
    font-size: 0.85rem;
    color: var(--secondary);
    line-height: 1.6;
}

/* فوتر بخش */
.portfolio-footer { text-align: center; }

/* ریسپانسیو */




/* ============================================================
   9. استایل فوتر (Site Footer)
   ============================================================ */
.site-footer {
    background-color: #ffffff;
    border-top: 1px solid var(--border);
    padding-top: 60px;
    padding-bottom: 30px;
    margin-top: auto;
}

/* شبکه ۴ ستونه بالا */
.footer-top-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* ستون درباره ما */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 20px;
}
.footer-logo svg { color: var(--primary); }

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--secondary);
    margin-bottom: 25px;
    text-align: justify;
}

.social-links { display: flex; gap: 10px; }
.social-btn {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: #f1f5f9;
    color: var(--secondary);
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
    font-size: 1.1rem;
}
.social-btn:hover { background: var(--primary); color: white; transform: translateY(-3px); }
/* رنگ‌های برند */
.instagram:hover { background: #E1306C; }
.telegram:hover { background: #229ED9; }
.whatsapp:hover { background: #25D366; }
.linkedin:hover { background: #0077b5; }

/* تیتر ستون‌ها */
.footer-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 25px;
    position: relative;
}
.footer-title::after {
    content: ''; position: absolute; bottom: -8px; right: 0;
    width: 25px; height: 3px; background: var(--primary); border-radius: 10px;
}

/* لینک‌ها */
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: var(--secondary);
    font-size: 0.9rem;
    transition: 0.3s;
    display: inline-block;
}
.footer-links a:hover {
    color: var(--primary);
    transform: translateX(-5px); /* حرکت به چپ */
}

/* اطلاعات تماس */
.contact-list li {
    display: flex; align-items: center; gap: 10px;
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}
.contact-list i { color: var(--primary); font-size: 1rem; }

/* نمادها */
.trust-badges { display: flex; gap: 10px; margin-top: 20px; }
.badge-box {
    width: 70px; height: 70px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 15px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: var(--text-muted);
    cursor: pointer; transition: 0.3s;
}
.badge-box:hover {
    background: white; border-color: var(--primary); color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.badge-box i { font-size: 1.5rem; margin-bottom: 5px; }
.badge-box span { font-size: 0.6rem; font-weight: 700; }

/* فوتر پایین */
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-text { font-size: 0.85rem; color: var(--text-muted); }
.copyright-text a { color: var(--text-main); font-weight: 700; }

.payment-icons { display: flex; gap: 15px; color: #cbd5e1; font-size: 1.5rem; }

/* ===========================
   RESPONSIVE (موبایل - 2 ستونه)
   =========================== */




   /* ============================================================
   10. مدیا کوئری‌ها (Mobile Responsive)
   ============================================================ */

@media (max-width: 900px) {
    
    /* --- تنظیمات کلی صفحه --- */
    body {
        padding-bottom: 90px; /* فضای خالی برای نوبار پایین */
    }
    
    .container {
        padding: 0 20px;
    }

    /* --- 1. هدر و نوبار --- */
    .desktop-header {
        display: none; /* مخفی کردن هدر دسکتاپ */
    }

    .services-wrapper {
        padding-top: 0; /* حذف فاصله بالای صفحه */
    }

    /* فعال‌سازی نوبار اپلیکیشنی پایین */
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: white;
        z-index: 9999;
        padding: 0 15px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
        box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
        border-radius: 20px 20px 0 0;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #94a3b8;
        font-size: 0.65rem;
        font-weight: 700;
        flex: 1;
        height: 50px;
        margin-bottom: 5px;
        text-decoration: none;
        transition: 0.3s;
    }

    .nav-item svg {
        width: 24px;
        height: 24px;
        margin-bottom: 4px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2px;
    }

    .nav-item.active {
        color: var(--primary);
    }
    .nav-item.active svg {
        transform: translateY(-5px);
        stroke: var(--primary);
    }

    /* دکمه وسط (سبد خرید) */
    .cart-item-mobile {
        position: relative;
        top: -25px;
        height: auto;
        overflow: visible;
        z-index: 10;
    }

    .floating-circle {
        width: 55px;
        height: 55px;
        background: var(--primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
        border: 5px solid #f8fafc;
    }

    .mobile-badge {
        position: absolute;
        top: -3px;
        right: -3px;
        background: #ef4444;
        color: white;
        font-size: 10px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid white;
    }

    .cart-item-mobile span:not(.mobile-badge) {
        position: absolute;
        bottom: -20px;
        width: 100%;
        text-align: center;
        color: #94a3b8;
        font-size: 0.7rem;
    }

    /* --- 2. بخش Hero --- */
    .hero-section {
        padding: 50px 0 60px 0;
        text-align: center;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.5;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn-hero-primary, .btn-hero-outline {
        width: 100%;
        justify-content: center;
    }

    /* آمار در موبایل */
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        padding: 20px;
        width: 100%;
    }
    .stat-divider { display: none; }
    .stat-item { flex: 1 1 40%; /* دو ستونه شدن آمار */ }

    /* --- 3. لیست خدمات (Services Grid) --- */
    .services-grid {
        grid-template-columns: 1fr; /* تک ستون */
        gap: 20px;
    }

    /* --- 4. مراحل کار (Timeline) - تبدیل به عمودی --- */
    .steps-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .steps-connector { display: none; } /* حذف خط افقی */

    .step-card {
        display: flex;
        flex-direction: row; /* آیکون کنار متن */
        align-items: center;
        text-align: right;
        padding: 20px;
        gap: 20px;
        width: 100%;
    }

    .step-icon {
        margin: 0;
        width: 60px; height: 60px;
        font-size: 1.5rem;
        flex-shrink: 0;
    }

    .step-badge {
        top: 10px; left: 10px; right: auto;
        width: 25px; height: 25px; font-size: 0.75rem;
    }

    .step-card h3 { margin-bottom: 5px; font-size: 1rem; }
    .step-card p { margin: 0; font-size: 0.85rem; padding: 0; }

    /* --- 5. جداول قیمت (Pricing) --- */
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
        gap: 40px;
    }

    /* اصلاح کارت ویژه در موبایل */
    .pricing-card.featured {
        transform: scale(1); /* حذف بزرگنمایی */
        order: -1; /* آوردن به اول لیست */
        margin-top: 10px;
    }
    
    .featured-top-bar { border-radius: 20px 20px 0 0; }

    /* --- 6. چرا ما (Why Us) --- */
    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .feature-box {
        display: flex;
        align-items: center;
        text-align: right;
        padding: 20px;
        gap: 20px;
    }

    .f-icon {
        margin: 0;
        width: 50px; height: 50px;
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .feature-box h4 { margin-bottom: 5px; }
    .feature-box p { margin: 0; font-size: 0.85rem; }

    /* بنر CTA */
    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        gap: 30px;
    }
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn-cta-primary, .btn-cta-outline { width: 100%; justify-content: center; }

    /* --- 7. نمونه‌کارها (Portfolio) --- */
    .portfolio-filters {
        gap: 10px;
    }
    .filter-btn {
        flex: 1 1 40%; /* دکمه‌ها نصف عرض صفحه */
        font-size: 0.85rem;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    /* --- 8. فوتر (Footer) --- */
    .footer-top-grid {
        grid-template-columns: 1fr; /* تک ستون */
        text-align: center;
        gap: 40px;
    }

    .footer-logo { justify-content: center; }
    .social-links { justify-content: center; }
    .contact-list li { justify-content: center; }
    .trust-badges { justify-content: center; }
    
    .footer-title::after {
        right: 50%;
        transform: translateX(50%); /* وسط‌چین کردن خط زیر تیتر */
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}



/* ============================================================
   11. استایل پنجره مودال (Modal Form)
   ============================================================ */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); /* پس‌زمینه تاریک */
    backdrop-filter: blur(5px); /* افکت شیشه‌ای مات */
    z-index: 10000; /* بالاتر از همه چیز */
    display: none; /* پیش‌فرض مخفی */
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* کلاس فعال برای نمایش مودال */
.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* دکمه بستن (ضربدر) */
.modal-close-btn {
    position: absolute;
    top: 15px; left: 15px;
    background: #f1f5f9;
    border: none;
    width: 30px; height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: 0.2s;
}
.modal-close-btn:hover { background: #ef4444; color: white; }

.modal-header { text-align: center; margin-bottom: 25px; }
.modal-header h3 { font-size: 1.3rem; color: var(--text-main); margin-bottom: 5px; }
.modal-header p { font-size: 0.85rem; color: var(--text-muted); }

/* استایل فرم */
.form-group { margin-bottom: 20px; text-align: right; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text-body); margin-bottom: 8px; }

.input-wrapper {
    position: relative;
    display: flex; align-items: center;
}
.input-wrapper i {
    position: absolute; right: 15px; color: var(--text-muted);
}
.input-wrapper input {
    width: 100%;
    padding: 12px 40px 12px 15px; /* فضای خالی برای آیکون */
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
    font-family: 'IRANSansX';
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
}
.input-wrapper input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* فیلد فقط خواندنی (نام سرویس) */
.readonly-input {
    width: 100%; padding: 12px; border: 1px solid var(--border);
    border-radius: 12px; background: #e2e8f0; color: var(--text-muted);
    font-weight: 700; pointer-events: none;
}

.btn-submit-request {
    width: 100%; padding: 14px;
    background: var(--primary); color: white;
    border: none; border-radius: 12px;
    font-weight: 700; font-size: 1rem;
    cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-submit-request:hover {
    background: var(--primary-dark);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
}