﻿/* ================== پایه ================== */
:root {
    --primary: #7852A9;
    --secondary: #6f42c1;
    --accent: #7852A9;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --shadow: rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Shabnam', sans-serif;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ================== هدر ================== */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    margin-top: 0 !important
}


.navbar-nav .nav-link {
    padding: 10px 15px;
    color: #7852A9;
    font-weight: 500;
    transition: all 0.3s;
}

    .navbar-nav .nav-link:hover {
        color: var(--primary);
    }

.nav-link.active {
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
}

/* فلش پیش‌فرض bootstrap را مخفی کن چون ما فلش خودمون را داریم */
.nav-link.dropdown-toggle::after {
    display: none;
}

/* منوی کشویی فقط وقتی که موس روی لی یا منو باشه نمایش داده شود */
.nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
    animation: fadeInDropdown 0.3s ease forwards;
}

/* فلش پایین همیشه دیده می‌شود و چرخش ندارد */
.nav-link.dropdown-toggle .fa-chevron-down {
    /* اگر نمی‌خوای بچرخه، اینجا دستکاری نکن */
    /* اگر خواستی کمی فاصله بدی می‌تونی اضافه کنی */
}

.navbar-sticky-container {
    position: fixed;
    top: 40px; /* برابر با ارتفاع Pre-header */
    left: 0;
    right: 0;
    z-index: 1030;
}

.navbar-custom {
    position: sticky;
    top: 0;
    z-index: 1020; /* مقدار بالا برای نمایش روی سایر عناصر */
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: white;
        z-index: 1050;
        overflow-y: auto;
        padding: 1rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

        .navbar-collapse.show {
            transform: translateX(0);
        }
}
/* برای RTL، منو سمت راست نمایش داده شود */
.dropdown-menu {
    right: 0;
    left: auto;
    box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 0.15);
    border-radius: 0.5rem;
}

/* انیمیشن ظاهر شدن منو */
@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================== هیرو ================== */
.hero-section {
    margin-top: 0 !important;
    padding: 180px 0 150px !important; /* تنظیم مجدد پدینگ */
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* ================== سامانه‌ها ================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    padding: 25px 20px;
    box-shadow: 0 8px 24px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    color: #333;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 40px rgba(0, 123, 255, 0.25);
    }

    .service-card .icon-circle {
        width: 70px;
        height: 70px;
        background: linear-gradient(to top left, var(--primary), var(--secondary));
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto 15px;
        color: white;
        font-size: 2rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }

    .service-card:hover .icon-circle {
        transform: rotate(10deg) scale(1.05);
    }

    .service-card .card-title {
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 8px;
    }

.btn-view-details {
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 12px;
    color: var(--secondary);
    transition: color 0.3s;
    display: inline-block;
}

.service-card:hover .btn-view-details {
    color: var(--primary);
}

/* ================== مشتریان ================== */
/* استایل‌های جدید برای نمایش بزرگتر */
.clients-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.client-item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    padding: 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .client-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(120, 82, 169, 0.2);
    }

.client-logo {
    max-height: 130px;
    max-width: 100%;
    height: auto;
    width: auto;
    margin: 0 auto;
    display: block;
    transition: transform 0.4s ease;
    object-fit: contain;
}

    .client-logo:hover {
        transform: scale(1.15);
    }

.client-name {
    font-size: 1.05rem;
    color: #444;
    font-weight: 700;
    margin-top: 15px;
    line-height: 1.4;
}

.client-logos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 1fr;
    gap: 25px;
}

/* استایل‌های سوایپر */
.clients-swiper {
    padding: 40px 0;
    overflow: hidden;
}

.swiper-slide {
    height: auto;
    padding-bottom: 10px;
}

.swiper-button-next,
.swiper-button-prev {
    color: #7852A9;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 22px;
        font-weight: bold;
    }

    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        background: #7852A9;
        color: white;
        transform: scale(1.1);
    }

.swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    background: #7852A9;
}

/* واکنش‌گرا */
@media (max-width: 1200px) {
    .client-logos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .client-logos-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .client-logo {
        max-height: 110px;
    }
}

@media (max-width: 768px) {
    .client-logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .client-item {
        padding: 20px;
        min-height: 180px;
    }
}

@media (max-width: 576px) {
    .client-logos-grid {
        grid-template-columns: repeat(1, 1fr);
        max-width: 400px;
        margin: 0 auto;
    }

    .client-logo {
        max-height: 100px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}
/* ================== ویژگی‌ها ================== */
.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    height: 100%;
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 123, 255, 0.3);
    }

.feature-icon {
    font-size: 48px;
    color: white;
    margin-bottom: 15px;
    text-align: center;
}

.feature-content h3 {
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    color: #222;
}

.feature-content p {
    color: #555;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.4;
}

/* ================== انیمیشن Fade-in ================== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ================== دکمه‌ها ================== */
.btn-outline-primary {
    font-weight: 600;
    padding: 10px 30px;
    border-radius: 40px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .btn-outline-primary:hover {
        background-color: var(--primary);
        color: #fff;
    }

/* ================== نظرات مشتریان ================== */
/* ================== Vertical Testimonials ================== */
.vertical-testimonials {
    display: flex;
    flex-direction: column;
    gap: 30px; /* فاصله بین کارت‌ها */
    max-width: 800px; /* حداکثر عرض برای زیبایی */
    margin: 0 auto; 
}

.testimonial-card {
    background: white;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    padding: 30px;
    border-radius: 15px;
    transition: transform 0.3s ease;
    text-align: center;
    width: 100%; /* پر کردن عرض موجود */
}

    .testimonial-card:hover {
        transform: scale(1.03); /* کاهش اثر برای حالت عمودی */
        box-shadow: 0 10px 40px rgba(0, 123, 255, 0.25);
    }

/* بقیه استایل‌ها بدون تغییر */
.testimonials-section {
    background: var(--light);
    padding: 50px 0;
    border-radius: 12px;
    margin-top: 60px;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 20px;
    min-height: auto; /* حذف ارتفاع ثابت */
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary);
}

/* ================== فوتر ================== */
.footer {
   
    color: white;
    padding: 80px 0 30px;
    text-align: center;
    background-image: radial-gradient(circle at 20% 80%, rgba(255,215,0,0.1) 0%, transparent 30%);
}

.footer-logo {
    height: 80px;
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

    .footer-links a {
        color: rgba(255,255,255,0.8);
        text-decoration: none;
        font-size: 1.1rem;
        position: relative;
        padding-bottom: 5px;
        transition: all 0.3s;
    }

        .footer-links a:hover {
            color: var(--accent);
        }

        .footer-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 0;
            height: 2px;
            background: var(--accent);
            transition: width 0.3s ease;
        }

        .footer-links a:hover::after {
            width: 100%;
        }

.copyright {
    color: #999;
    font-size: 0.9rem;
    margin-top: 50px;
}

/* ================== عمومی ================== */
.pre-header {
    position: relative;
    z-index: 1000; /* z-index پایین‌تر از منو */
    background: #f8f9fa;
}
    .pre-header a {
        color: #555;
        transition: color 0.3s;
    }

        .pre-header a:hover {
            color: var(--primary);
        }

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 9999;
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        background-color: #0056b3;
    }
.service-card-enhanced {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

    .service-card-enhanced:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        background: #fdfdfd;
    }

.service-icon-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}


.stats-section {
    background: linear-gradient(135deg, #7852A9, var(--primary-dark));
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #ffd700;
}

.stat-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: lightgoldenrodyellow
}
