﻿
/* تعریف فونت ایران‌سنس معمولی (Normal/Regular) */
@font-face {
    font-family: 'Vazir';
    src: url('fonts/Vazir-Light.woff2') format('woff2'), /* فرمت مدرن و بسیار سبک */
    url('fonts/Vazir-Light.woff') format('woff'), /* فرمت استاندارد وب */
    url('fonts/Vazir-Light.ttf') format('truetype'); /* فرمت بک‌آپ قدیمی */
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* کمک به سرعت رندر صفحه و سئو */
}



@font-face {
    font-family: 'Vazir';
    src: url('fonts/Vazir-Bold.woff2') format('woff2'), url('fonts/Vazir-Bold.woff') format('woff'), url('fonts/Vazir-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}



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

body {
    font-family: 'Vazir', Tahoma, Arial, sans-serif;
    background: #f8f9fc;
    color: #1e1e2f;
    line-height: 1.7;
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* ===== HEADER ===== */
header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    border-bottom: 1px solid rgba(106, 13, 173, 0.1);
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .logo-area img {
        height: 45px;
        width: auto;
    }

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6a0dad, #9b4dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

    .logo-text small {
        font-weight: 400;
        font-size: 0.8rem;
        -webkit-text-fill-color: #555;
        display: block;
        margin-top: -4px;
    }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

    .nav-menu a {
        font-weight: 500;
        color: #2d2d44;
        transition: 0.2s;
        font-size: 0.95rem;
        border-bottom: 2px solid transparent;
        padding-bottom: 4px;
    }

        .nav-menu a:hover {
            color: #6a0dad;
            border-bottom-color: #6a0dad;
        }

.btn-demo {
    background: linear-gradient(135deg, #6a0dad, #9b4dff);
    color: #fff !important;
    padding: 8px 22px;
    border-radius: 40px;
    font-weight: 600;
    border-bottom: none !important;
    transition: 0.3s;
    box-shadow: 0 4px 12px rgba(106, 13, 173, 0.25);
}

    .btn-demo:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(106, 13, 173, 0.35);
        color: #fff !important;
        border-bottom: none !important;
    }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
}

    .hamburger span {
        display: block;
        width: 28px;
        height: 3px;
        background: #2d2d44;
        border-radius: 4px;
        transition: 0.3s;
    }

/* ===== HERO ===== */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(145deg, #f0ebff 0%, #ffffff 100%);
    text-align: center;
    border-bottom: 1px solid #e9e0f5;
}

    .hero h1 {
        font-size: 2.8rem;
        font-weight: 900;
        color: #1e1e2f;
        margin-bottom: 16px;
    }

        .hero h1 span {
            background: linear-gradient(135deg, #6a0dad, #9b4dff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

    .hero p {
        font-size: 1.25rem;
        color: #3d3d5c;
        max-width: 700px;
        margin: 0 auto 32px;
    }

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 14px 40px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #6a0dad, #9b4dff);
    color: #fff;
    box-shadow: 0 6px 18px rgba(106, 13, 173, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 28px rgba(106, 13, 173, 0.4);
    }

.btn-secondary {
    background: #fff;
    color: #6a0dad;
    border: 2px solid #6a0dad;
}

    .btn-secondary:hover {
        background: #f5f0ff;
        transform: translateY(-3px);
    }

.hero-stats {
    margin-top: 40px;
    font-size: 1.1rem;
    color: #4a4a6a;
}

    .hero-stats strong {
        font-size: 1.6rem;
        color: #6a0dad;
    }

/* ===== SECTIONS ===== */
section {
    padding: 70px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    color: #1e1e2f;
}

.section-sub {
    text-align: center;
    color: #5a5a7a;
    max-width: 600px;
    margin: 0 auto 48px;
    font-size: 1.05rem;
}

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 28px 22px;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    transition: 0.3s;
    border: 1px solid #f0ecf9;
}

    .feature-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 40px rgba(106, 13, 173, 0.08);
        border-color: #d5c4f0;
    }

    .feature-card .icon {
        font-size: 2.6rem;
        margin-bottom: 12px;
        display: block;
    }

    .feature-card h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
        color: #1e1e2f;
    }

    .feature-card p {
        color: #5a5a7a;
        font-size: 0.95rem;
    }

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.04);
    border-right: 6px solid #6a0dad;
}

    .testimonial-card p {
        font-size: 1.05rem;
        color: #2d2d44;
        margin-bottom: 16px;
    }

    .testimonial-card .author {
        font-weight: 700;
        color: #1e1e2f;
    }

    .testimonial-card .role {
        color: #6a6a8a;
        font-size: 0.9rem;
    }

/* ===== PRICING ===== */
.pricing-box {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    padding: 40px 30px;
    border-radius: 32px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
    text-align: center;
    border: 1px solid #e9e0f5;
}

    .pricing-box h3 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .pricing-box .price-label {
        font-size: 2.2rem;
        font-weight: 800;
        color: #6a0dad;
        margin: 16px 0;
    }

    .pricing-box p {
        color: #5a5a7a;
        margin-bottom: 24px;
    }

.btn-contact {
    background: #1e1e2f;
    color: #fff;
    padding: 14px 48px;
    border-radius: 60px;
    font-weight: 700;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
}

    .btn-contact:hover {
        background: #6a0dad;
        transform: scale(1.03);
    }

/* ===== FOOTER ===== */
footer {
    background: #1a1a2e;
    color: #cccce0;
    padding: 50px 0 30px;
    border-top: 4px solid #6a0dad;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 32px;
}

    .footer-grid h4 {
        color: #fff;
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .footer-grid a {
        display: block;
        margin-bottom: 8px;
        color: #aaaac0;
        transition: 0.2s;
    }

        .footer-grid a:hover {
            color: #9b4dff;
        }

.footer-bottom {
    border-top: 1px solid #33334a;
    padding-top: 24px;
    text-align: center;
    font-size: 0.9rem;
    color: #8888a8;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 36px 40px;
    border-radius: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid #ede8f7;
    font-size: 1rem;
    color: #2d2d44;
    line-height: 2;
}

    .about-text strong {
        color: #6a0dad;
    }


/* ===== SLIDER ===== */

/* ===== SLIDER (نسخه نهایی، بزرگ در دسکتاپ، کوچک در موبایل) ===== */
.slider-wrapper {
    position: relative;
    max-width: 1000px; /* در دسکتاپ پهن‌تر شد */
    margin: 0 auto;
    height: 450px; /* در دسکتاپ بلندتر شد */
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain; /* کل عکس بدون برش دیده می‌شود */
    background-position: center center; /* وسط‌چین شدن عکس */
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
    background-color: #f8f9fa; /* رنگ پس‌زمینه (اگر عکس کامل در کادر جا نشد) */
}

    .slide.active {
        opacity: 1;
        pointer-events: auto;
        z-index: 2;
    }

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(6px);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: 0.3s;
    color: #1e1e2f;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

    .slider-btn:hover {
        background: #fff;
        color: #6a0dad;
        box-shadow: 0 8px 24px rgba(106, 13, 173, 0.2);
    }

    .slider-btn.prev {
        left: 16px;
    }

    .slider-btn.next {
        right: 16px;
    }

.dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    cursor: pointer;
    transition: 0.3s;
    padding: 0;
}

    .dot.active {
        background: #fff;
        transform: scale(1.2);
    }

/* تغییر سایز در موبایل */
@media (max-width: 600px) {
    .slider-wrapper {
        max-width: 100%;
        height: 200px; /* در موبایل جمع‌وجورتر شد */
    }

    .slider-btn {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

        .slider-btn.prev {
            left: 8px;
        }

        .slider-btn.next {
            right: 8px;
        }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fff;
        padding: 20px 0;
        gap: 16px;
        border-top: 1px solid #eee;
        margin-top: 12px;
    }

        .nav-menu.open {
            display: flex;
        }

        .nav-menu a {
            font-size: 1rem;
            width: 100%;
            text-align: center;
            padding: 6px 0;
        }

    .btn-demo {
        width: 80%;
        text-align: center;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        text-align: center;
    }
}


