﻿/* ===== متغیرهای رنگی ===== */
:root {
    --green-1: #10b981;
    --green-2: #34d399;
    --green-3: #6ee7b7;
    --blue-1: #06b6d4;
    --blue-2: #0ea5e9;
    --blue-3: #38bdf8;
    --cyan: #22d3ee;
    --purple: #8b5cf6;
    --dark-bg: #0a0e27;
    --dark-card: rgba(255, 255, 255, 0.05);
    --glass: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --gradient-main: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #8b5cf6 100%);
    --gradient-accent: linear-gradient(135deg, #34d399 0%, #22d3ee 100%);
    --gradient-soft: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
}

/* ===== هدر صفحه ===== */
.page-header {
    margin-top: 100px;
    padding: 80px 20px;
    text-align: center;
}

    .page-header h1 {
        font-size: 3rem;
        font-weight: 800;
        margin-bottom: 20px;
        background: var(--gradient-main);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

    .breadcrumb a {
        color: var(--green-2);
        text-decoration: none;
        transition: all 0.3s;
    }

        .breadcrumb a:hover {
            color: var(--cyan);
        }

/* ===== بخش درباره شرکت ===== */
.about-section {
    padding: 100px 0;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.about-image {
    position: relative;
}

    .about-image img {
        width: 100%;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(16, 185, 129, 0.2);
    }

    .about-image::before {
        content: '';
        position: absolute;
        top: -20px;
        right: -20px;
        width: 100%;
        height: 100%;
        border: 3px solid var(--green-1);
        border-radius: 20px;
        z-index: -1;
        opacity: 0.5;
    }

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--text-primary);
}

    .about-content h2 span {
        color: var(--green-2);
    }

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 2;
    text-align: justify;
}

.about-cta {
    margin-top: 30px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 35px;
    background: var(--gradient-main);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    }

/* ===== عنوان بخش‌ها ===== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

    .section-title h2 {
        font-size: 2.5rem;
        margin-bottom: 15px;
        background: var(--gradient-main);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .section-title p {
        color: var(--text-secondary);
        font-size: 1.1rem;
    }

/* ===== بخش تاریخچه - TIMELINE ===== */
.timeline-section {
    padding: 100px 0;
    background: var(--gradient-soft);
}

.timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 60px;
    padding: 20px 0;
}

    /* خط وسط تایم‌لاین */
    .timeline::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 3px;
        background: var(--gradient-main);
        transform: translateX(-50%);
        border-radius: 3px;
    }

/* آیتم‌های فرد - سمت راست */
.timeline-item:nth-child(odd) {
    grid-column: 1;
    text-align: right;
    position: relative;
}

/* آیتم‌های زوج - سمت چپ */
.timeline-item:nth-child(even) {
    grid-column: 2;
    text-align: left;
    position: relative;
    margin-top: 80px; /* offset برای زیبایی زیگزاگ */
}

.timeline-content {
    background: var(--dark-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s;
    position: relative;
}

    .timeline-content:hover {
        transform: translateY(-5px);
        border-color: var(--green-1);
        box-shadow: 0 10px 40px rgba(16, 185, 129, 0.2);
    }

/* دات روی خط - برای آیتم‌های فرد (سمت راست) */
.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--gradient-main);
    border-radius: 50%;
    border: 4px solid var(--dark-bg);
    top: 30px;
    left: -42px; /* سمت چپ باکس = نزدیک به خط وسط */
}

/* دات روی خط - برای آیتم‌های زوج (سمت چپ) */
.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--gradient-main);
    border-radius: 50%;
    border: 4px solid var(--dark-bg);
    top: 30px;
    right: -42px; /* سمت راست باکس = نزدیک به خط وسط */
}

/* خط اتصال باکس به دات - آیتم‌های فرد */
.timeline-item:nth-child(odd) .timeline-content::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: var(--gradient-main);
    top: 39px;
    left: -30px;
    opacity: 0.5;
}

/* خط اتصال باکس به دات - آیتم‌های زوج */
.timeline-item:nth-child(even) .timeline-content::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: var(--gradient-main);
    top: 39px;
    right: -30px;
    opacity: 0.5;
}

.timeline-year {
    display: inline-block;
    background: var(--gradient-main);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.timeline-content h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== بخش ارزش‌ها ===== */
.values-section {
    padding: 100px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.value-card {
    background: var(--dark-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

    .value-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: var(--gradient-main);
        transform: scaleX(0);
        transition: transform 0.3s;
    }

    .value-card:hover::before {
        transform: scaleX(1);
    }

    .value-card:hover {
        transform: translateY(-10px);
        border-color: var(--green-1);
        box-shadow: 0 20px 60px rgba(16, 185, 129, 0.15);
    }

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: white;
}

.value-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.value-card p {
    color: var(--text-secondary);
    line-height: 1.9;
}

/* ===== بخش آمار ===== */
.stats-section {
    padding: 100px 0;
    background: var(--gradient-soft);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.stat-item {
    text-align: center;
    padding: 40px;
    background: var(--dark-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.3s;
}

    .stat-item:hover {
        transform: translateY(-5px);
        border-color: var(--cyan);
        box-shadow: 0 15px 50px rgba(6, 182, 212, 0.2);
    }

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ===== بخش تیم ===== */
.team-section {
    padding: 100px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.team-card {
    background: var(--dark-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
}

    .team-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 60px rgba(139, 92, 246, 0.2);
        border-color: var(--purple);
    }

.team-image {
    width: 100%;
    height: 350px;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.3);
}

.team-info {
    padding: 30px;
    text-align: center;
}

    .team-info h3 {
        font-size: 1.5rem;
        margin-bottom: 8px;
        color: var(--text-primary);
    }

.team-role {
    color: var(--green-2);
    margin-bottom: 15px;
    font-weight: 500;
}

.team-desc {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

    .team-social a {
        width: 40px;
        height: 40px;
        background: var(--glass);
        border: 1px solid var(--glass-border);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-secondary);
        transition: all 0.3s;
        text-decoration: none;
    }

        .team-social a:hover {
            background: var(--gradient-main);
            color: white;
            border-color: transparent;
            transform: translateY(-3px);
        }

/* ===== CTA Section ===== */
.cta-section {
    padding: 100px 20px;
    text-align: center;
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
    background: var(--gradient-main);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

    .cta-box::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        animation: pulse 4s ease-in-out infinite;
    }

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    z-index: 1;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.btn-white {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: var(--green-1);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

    .btn-white:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

/* ===== ریسپانسیو ===== */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    /* Timeline در موبایل - تک ستونه */
    .timeline {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-right: 50px;
    }

        .timeline::before {
            left: 20px;
            transform: none;
        }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        grid-column: 1;
        text-align: right;
        margin-top: 0;
    }

        .timeline-item:nth-child(odd) .timeline-content::after,
        .timeline-item:nth-child(even) .timeline-content::after {
            left: -42px;
            right: auto;
        }

        .timeline-item:nth-child(odd) .timeline-content::before,
        .timeline-item:nth-child(even) .timeline-content::before {
            left: -30px;
            right: auto;
        }

    .stats-grid,
    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .page-header {
        margin-top: 80px;
        padding: 60px 20px;
    }

        .page-header h1 {
            font-size: 1.8rem;
        }
}
