﻿:root {
    --primary-color: #4e73df;
    --primary-dark: #224abe;
    --secondary-color: #f8f9fc;
    --dark-color: #2e2e2e;
    --light-color: #ffffff;
    --accent-color: #ff6b6b;
    --text-color: #444;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: var(--text-color);
    direction: rtl;
    text-align: right;
    line-height: 1.8;
}

/* هدر صفحه */
.service-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 100px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
}

    .service-header::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: url('https://images.unsplash.com/photo-1499750310107-5fef28a66643?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
        opacity: 0.1;
    }

    .service-header h1 {
        font-size: 2.8rem;
        margin-bottom: 20px;
        position: relative;
    }

    .service-header p {
        font-size: 1.2rem;
        max-width: 800px;
        margin: 0 auto;
        position: relative;
    }

/* ناوبری داخلی */
.page-nav {
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

    .page-nav ul {
        display: flex;
        justify-content: center;
        list-style: none;
        max-width: 1200px;
        margin: 0 auto;
        padding: 15px 20px;
        overflow-x: auto;
    }

    .page-nav li {
        margin: 0 10px;
    }

    .page-nav a {
        color: var(--dark-color);
        text-decoration: none;
        font-weight: 600;
        padding: 8px 15px;
        border-radius: 50px;
        transition: all 0.3s;
        white-space: nowrap;
    }

        .page-nav a:hover, .page-nav a:focus {
            background-color: var(--secondary-color);
            color: var(--primary-color);
        }

/* محتوای اصلی */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    margin-bottom: 80px;
    scroll-margin-top: 80px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

    .section-title h2 {
        font-size: 2rem;
        color: var(--dark-color);
        display: inline-block;
        margin-bottom: 15px;
    }

        .section-title h2::after {
            content: "";
            display: block;
            width: 60px;
            height: 4px;
            background: var(--primary-color);
            margin: 15px auto;
            border-radius: 2px;
        }

/* کارت‌های خدمت */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    }

.service-card-img {
    height: 200px;
    overflow: hidden;
}

    .service-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }

.service-card:hover .service-card-img img {
    transform: scale(1.05);
}

.service-card-content {
    padding: 25px;
}

.service-card h3 {
    margin-top: 0;
    color: var(--dark-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
}

.service-features {
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

    .service-features li {
        padding: 8px 0;
        position: relative;
        padding-right: 25px;
    }

        .service-features li::before {
            content: "\f00c";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            position: absolute;
            right: 0;
            color: var(--primary-color);
        }

/* فرآیند کار */
.process-steps {
    counter-reset: step-counter;
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    position: relative;
    padding-right: 80px;
    margin-bottom: 40px;
}

    .process-step::before {
        counter-increment: step-counter;
        content: counter(step-counter);
        position: absolute;
        right: 0;
        top: 0;
        width: 60px;
        height: 60px;
        background: var(--primary-color);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        font-weight: bold;
    }

    .process-step h3 {
        font-size: 1.3rem;
        color: var(--primary-dark);
        margin-bottom: 15px;
        padding-top: 10px;
    }

/* نمونه کارها */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.portfolio-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 250px;
    box-shadow: var(--box-shadow);
}

    .portfolio-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }

    .portfolio-item:hover img {
        transform: scale(1.1);
    }

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

/* فرم تماس */
.contact-form {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: var(--dark-color);
    }

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary-color);
    }

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

    .submit-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }
@media (max-width: 768px) {
    .service-header h1 {
        font-size: 2rem;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }

    .page-nav ul {
        justify-content: flex-start;
        padding: 15px 10px;
    }

    .page-nav li {
        margin: 0 5px;
    }

    .page-nav a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }

    .process-step {
        padding-right: 70px;
    }

        .process-step::before {
            width: 50px;
            height: 50px;
            font-size: 1.3rem;
        }

    .contact-form {
        padding: 25px;
    }
}
