/* فایل: css/style.css */
/* استایل‌های پایه و عمومی */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3498db;
    --secondary: #2c3e50;
    --accent: #f39c12;
    --light: #ecf0f1;
    --dark: #34495e;
    --success: #2ecc71;
    --danger: #e74c3c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f9f9f9;
    direction: rtl;
    text-align: right;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* استایل هدر و نویگیشن */
header {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    padding: 1.2rem 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
}

.nav-links a:hover, 
.nav-links a.active {
    background-color: rgba(255,255,255,0.15);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

/* استایل اسلایدر صفحه اصلی */
.slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin: 2.5rem 0;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2.5rem 2rem;
}

.slide-content h2 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.slide-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* استایل بخش خدمات */
.section-title {
    text-align: center;
    font-size: 2.3rem;
    color: var(--secondary);
    margin: 3rem 0 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-card i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-card p {
    color: #666;
    font-size: 1.1rem;
}

/* استایل گالری نمونه کارها */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.8rem;
    margin: 3rem 0;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background: white;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-info {
    padding: 1.5rem;
}

.gallery-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--secondary);
}

.gallery-info ul {
    list-style: none;
    margin-top: 1rem;
}

.gallery-info li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    color: #555;
}

.gallery-info li strong {
    color: var(--dark);
    margin-left: 0.5rem;
}

/* استایل صفحات درباره ما و تماس با ما */
.about-content, .contact-content {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 3px 20px rgba(0,0,0,0.07);
    margin: 3rem 0;
    line-height: 1.9;
}

.about-content h2, .contact-content h2 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.about-content p, .contact-content p {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    color: #444;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.team-member {
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.2rem;
    border: 4px solid var(--accent);
}

/* استایل فرم تماس */
.contact-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-block {
    display: block;
    width: 100%;
}

/* استایل فوتر */
footer {
    background-color: var(--secondary);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.7rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
    padding-right: 0.5rem;
}

.social-icons {
    display: flex;
    margin-top: 1.5rem;
    gap: 1rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 1.05rem;
    color: #bbb;
}

/* استایل ریسپانسیو برای موبایل */
@media (max-width: 992px) {
    .slider {
        height: 400px;
    }
    
    .slide-content {
        padding: 1.8rem 1.5rem;
    }
    
    .slide-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        font-size: 1.8rem;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background-color: var(--secondary);
        width: 80%;
        height: calc(100vh - 80px);
        padding: 2rem;
        transition: all 0.4s ease;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 1.5rem 0;
    }
    
    .slider {
        height: 350px;
    }
    
    .slide-content h2 {
        font-size: 1.6rem;
    }
    
    .slide-content p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content, .contact-content {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .slider {
        height: 300px;
    }
    
    .slide-content {
        padding: 1.5rem 1.2rem;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .services, .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}