/* Reset و تنظیمات پایه */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    direction: rtl;
}

/* کانتینر */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ناوبری */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    margin: 0;
}

.logo h2 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.8em;
    font-weight: bold;
}

.logo span {
    font-size: 0.8em;
    color: var(--secondary-color);
    display: block;
    margin-top: -5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 10px 15px;
    border-radius: 5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
    background: var(--light-bg);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* بخش هیرو */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 150px 0 100px;
    text-align: center;
    margin-top: 80px;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 2em;
    margin-bottom: 20px;
    font-weight: normal;
}

.hero-content span {
    color: #ffd700;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* دکمه‌ها */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    font-size: 1em;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* بخش معرفی */
.intro-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.section-title span {
    color: var(--secondary-color);
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.intro-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.intro-item:hover {
    transform: translateY(-5px);
}

.intro-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.intro-item h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* بخش خدمات */
.services-section {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.3em;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--primary-color);
}

/* CTA */
.cta-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* هدر صفحات */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 140px 0 60px;
    text-align: center;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 3em;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* خدمات جزئیات */
.services-detail {
    padding: 80px 0;
}

.service-detail-card {
    display: flex;
    align-items: flex-start;
    background: var(--white);
    margin-bottom: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-detail-icon {
    font-size: 4em;
    padding: 40px;
    background: var(--light-bg);
    min-width: 150px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-detail-content {
    padding: 40px;
    flex: 1;
}

.service-detail-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8em;
}

.service-detail-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.1em;
}

.service-detail-content ul {
    list-style: none;
    margin: 25px 0;
}

.service-detail-content li {
    padding: 8px 0;
    position: relative;
    padding-right: 25px;
    color: #555;
}

.service-detail-content li:before {
    content: "✓";
    position: absolute;
    right: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.1em;
}

/* پاورقی */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: var(--white);
}

.footer-desc {
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.website-link {
    color: var(--secondary-color) !important;
    font-weight: bold;
}

.website-link:hover {
    color: #ffd700 !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #ccc;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--white);
        width: 100%;
        box-shadow: var(--shadow);
        padding: 20px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2em;
    }
    
    .hero-content h2 {
        font-size: 1.5em;
    }
    
    .section-title {
        font-size: 2em;
    }
    
    .service-detail-card {
        flex-direction: column;
    }
    
    .service-detail-icon {
        min-width: 100%;
        padding: 20px;
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 250px;
        max-width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .page-header {
        padding: 120px 0 40px;
    }
    
    .services-section,
    .intro-section,
    .services-detail {
        padding: 60px 0;
    }
}