﻿:root {
    --primary: #6a4a9c;
    --primary-dark: #4e3571;
    --primary-light: #8d6fc0;
    --accent: #ff9d5c;
    --accent-alt: #ff6b6b;
    --light: #f8f9fa;
    --dark: #343a40;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.2);
}

body {
    font-family: Shabnam, Tahoma, sans-serif;
    background-color: #f8f9fa;
    color: #444;
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: var(--primary-dark);
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    position: relative;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 70px;
    text-align: center;
    color: var(--primary-dark);
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -15px;
        right: 50%;
        transform: translateX(50%);
        width: 100px;
        height: 4px;
        background: linear-gradient(90deg, var(--accent), var(--accent-alt));
        border-radius: 10px;
    }

/* هیرو صفحه درباره ما */
.about-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    animation: heroGradient 15s infinite alternate;
}

@keyframes heroGradient {
    0% {
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    }

    50% {
        background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    }

    100% {
        background: linear-gradient(135deg, var(--primary), #5a3f8f);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    background: linear-gradient(90deg, #FFD700, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 3s infinite alternate;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.6rem;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.8;
    opacity: 0.9;
    font-weight: 300;
}

/* بخش تاریخچه */
.history-section {
    position: relative;
    overflow: hidden;
}

.history-container {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.history-content {
    flex: 1;
    min-width: 300px;
}

.history-image {
    flex: 1;
    min-width: 300px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: floatImage 8s infinite ease-in-out;
}

    .history-image img {
        width: 100%;
        height: auto;
        display: block;
    }

/* بخش ارزش‌ها */
.values-section {
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.value-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(245,243,252,0.95));
    border-radius: 25px;
    padding: 45px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .value-card:hover {
        transform: translateY(-15px);
        box-shadow: 0 20px 60px rgba(106, 74, 156, 0.3);
    }

.value-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    color: var(--accent-alt);
    transform: scale(1.2);
}

.value-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
    transition: var(--transition);
}

.value-card:hover .value-title {
    color: var(--primary);
}

/* بخش تیم */
.team-section {
    position: relative;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.team-member {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.member-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* ایجاد مربع با نسبت 1:1 */
    background-color: #f8f9fa; /* رنگ پس‌زمینه برای قسمت‌های خالی */
    border-radius: 25px 25px 0 0;
    overflow: hidden;
}

.member-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* نمایش کامل عکس بدون برش */
    padding: 0; /* فضای اطراف عکس */
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}



.team-member:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(106, 74, 156, 0.3);
}



.member-info {
    padding: 25px;
}

.member-name {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.member-role {
    color: var(--accent-alt);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

    .social-link:hover {
        background: var(--accent);
        transform: translateY(-5px);
    }

/* بخش آمار */
.stats-section {
    background: linear-gradient(135deg, #7852A9, var(--primary-dark));
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

    .stat-item:hover {
        transform: translateY(-10px);
        background: rgba(255, 255, 255, 0.2);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    transition: var(--transition);
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

.stat-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: lightgoldenrodyellow;
}

/* بخش مشتریان */
.clients-section {
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
    justify-items: center;
    align-items: center;
}

.client-logo {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    width: 100%;
}

    .client-logo:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }

    .client-logo img {
        max-width: 100%;
        max-height: 70px;
        object-fit: contain;
    }

/* بخش جدول زمانی */
.timeline-section {
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

.timeline {
    position: relative;
    padding-left: 30px;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(to bottom, var(--primary), var(--accent-alt));
        border-radius: 10px;
    }

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

    .timeline-item::before {
        content: '';
        position: absolute;
        left: -36px;
        top: 8px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: var(--primary);
        border: 3px solid white;
        box-shadow: 0 0 0 4px var(--primary);
    }

.timeline-date {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.timeline-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

    .timeline-content h3 {
        margin-top: 0;
        color: var(--primary);
    }

/* بخش ماموریت و چشم انداز */
.mission-section {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
}

.mission-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    height: 100%;
}

    .mission-card:hover {
        transform: translateY(-10px);
        background: rgba(255, 255, 255, 0.2);
    }

.mission-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: #FFD700;
}

/* بخش گواهی‌ها */
.certificates-section {
    background: #f8f9fa;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cert-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

    .cert-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-lg);
    }

.cert-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* انیمیشن‌ها */
@keyframes titleGlow {
    0% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    }

    100% {
        text-shadow: 0 0 30px rgba(255, 215, 0, 0.9), 0 0 50px rgba(255, 215, 0, 0.6);
    }
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* رسپانسیو */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .history-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 150px 0 80px;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.8rem;
    }
}
