/* ============================================================
   about-style.css - استایل اختصاصی درباره ما (ساده‌شده)
   ============================================================ */

/* ============================================================
   HERO - ساده، تک‌ستونی، با انیمیشن زیبا
   ============================================================ */
.about-hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    overflow: hidden;
    background: var(--bg-primary);
}

/* ---- پس‌زمینه گرادیانی با پالس ---- */
.about-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse at 60% 30%, rgba(124, 77, 255, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 10% 70%, rgba(83, 109, 254, 0.12) 0%, transparent 50%),
        var(--bg-primary);
    animation: heroPulse 8s ease-in-out infinite alternate;
}

@keyframes heroPulse {
    0%   { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1;   transform: scale(1.05); }
}

/* ---- گرید متحرک ---- */
.about-hero-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(124, 77, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 77, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 40% 50%, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 40% 50%, black 20%, transparent 75%);
    animation: gridMove 25s linear infinite;
}

@keyframes gridMove {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* ---- اشکال تزئینی شناور ---- */
.about-hero-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    background: var(--accent);
    filter: blur(50px);
}

.shape-1 {
    width: 360px; height: 360px;
    top: -120px; right: -100px;
    animation: floatShape 10s ease-in-out infinite;
}
.shape-2 {
    width: 240px; height: 240px;
    bottom: -80px; left: -60px;
    animation: floatShape 8s ease-in-out infinite reverse;
}
.shape-3 {
    width: 160px; height: 160px;
    top: 50%; left: 45%;
    animation: floatShape 12s ease-in-out infinite;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(30px, -35px) scale(1.15); }
}

/* ---- محتوای هیرو (تک‌ستونی، وسط‌چین) ---- */
.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-hero-content .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-glow);
    color: var(--accent);
    padding: 6px 20px;
    border-radius: 40px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid rgba(124, 77, 255, 0.2);
    margin-bottom: 20px;
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
    50%      { box-shadow: 0 0 0 12px transparent; }
}

.about-hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 18px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    max-width: 780px;
}

.about-hero-content h1 .highlight {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.about-hero-content h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
    opacity: 0.3;
    border-radius: 10px;
    animation: highlightExpand 1.2s ease-out 0.6s both;
}

@keyframes highlightExpand {
    from { transform: scaleX(0); transform-origin: right; }
    to   { transform: scaleX(1); transform-origin: right; }
}

.about-hero-content > p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 620px;
    margin-bottom: 32px;
    line-height: 1.85;
}

.about-hero-content .btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.about-hero-content .btn {
    padding: 12px 30px;
    font-size: 0.88rem;
    border-radius: 60px;
    font-weight: 700;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
}

.about-hero-content .btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff;
    box-shadow: 0 8px 25px var(--accent-glow);
}

.about-hero-content .btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px var(--accent-glow);
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
}

.about-hero-content .btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--accent);
}

.about-hero-content .btn-outline:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px var(--accent-glow);
}

/* ---- نشانگر اسکرول ---- */
.scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.7rem;
    animation: bounceDown 2.5s ease-in-out infinite;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator i {
    font-size: 1.1rem;
    color: var(--accent);
}

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   داستان - Story
   ============================================================ */
.about-story {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.story-card {
    padding: 32px 24px;
    border-radius: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-glass);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.story-card .icon {
    width: 66px;
    height: 66px;
    border-radius: 18px;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.75rem;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.story-card:hover .icon {
    background: var(--accent);
    color: #fff;
    transform: scale(1.1) rotate(-6deg);
}

.story-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.story-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
    flex: 1;
    margin: 0;
}

/* ============================================================
   مأموریت - Mission
   ============================================================ */
.about-mission {
    padding: 80px 0;
    background: var(--bg-primary);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mission-card {
    padding: 32px 24px;
    border-radius: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.mission-card .icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.7rem;
    margin-bottom: 14px;
    transition: all 0.3s ease;
}

.mission-card:hover .icon {
    background: var(--accent);
    color: #fff;
    transform: scale(1.1) rotate(-6deg);
}

.mission-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.mission-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
    flex: 1;
    margin: 0;
}

.mission-card ul {
    text-align: right;
    padding-right: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 2.4;
    margin: 0;
    width: 100%;
}

.mission-card ul li {
    list-style: disc;
}

/* ============================================================
   تیم مدیریت - Team
   ============================================================ */
.about-team {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.team-card {
    padding: 28px 20px;
    border-radius: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-glass);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.team-card .avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
    border: 3px solid var(--accent);
    padding: 3px;
    background: var(--bg-primary);
    position: relative;
    transition: all 0.3s ease;
}

.team-card:hover .avatar {
    border-color: var(--accent-light);
    box-shadow: 0 0 30px var(--accent-glow);
}

.team-card .avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .avatar img {
    transform: scale(1.05);
}

.team-card .avatar .avatar-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(124, 77, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .avatar .avatar-overlay {
    opacity: 1;
}

.team-card .avatar .avatar-overlay i {
    color: #fff;
    font-size: 1.6rem;
}

.team-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.team-card .role {
    display: inline-block;
    background: var(--accent-glow);
    color: var(--accent);
    padding: 2px 14px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.team-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 12px;
}

.team-card .social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.team-card .social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
    text-decoration: none;
}

.team-card .social-links a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: scale(1.15) rotate(-4deg);
    box-shadow: 0 8px 20px var(--accent-glow);
}

/* ============================================================
   تیم فنی - Technical
   ============================================================ */
.about-technical {
    padding: 80px 0;
    background: var(--bg-primary);
}

.tech-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tech-member {
    text-align: center;
    padding: 24px 16px;
    border-radius: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    transition: all 0.3s ease;
}

.tech-member .tech-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
    border: 3px solid var(--border-glass);
    transition: all 0.3s ease;
}

.tech-member:hover .tech-avatar {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

.tech-member .tech-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tech-member:hover .tech-avatar img {
    transform: scale(1.08);
}

.tech-member span {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-top: 4px;
}

.tech-member small {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ============================================================
   CTA
   ============================================================ */
.about-cta {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.about-cta .cta-banner {
    position: relative;
    padding: 56px 36px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border: none;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 24px 70px var(--accent-glow);
    transition: all 0.4s ease;
}

.about-cta .cta-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 90px var(--accent-glow);
}

.cta-bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}
.cta-bg-circle.c1 { top: -35%; right: -8%; width: 320px; height: 320px; }
.cta-bg-circle.c2 { bottom: -45%; left: -5%; width: 400px; height: 400px; }

.about-cta .cta-banner h2 {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900;
    margin-bottom: 12px;
    line-height: 1.35;
}

.about-cta .cta-banner p {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    max-width: 540px;
    margin: 0 auto 28px;
    line-height: 1.75;
}

.about-cta .cta-banner .btn-group {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.about-cta .btn {
    padding: 12px 30px;
    font-size: 0.88rem;
    border-radius: 60px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
}

.about-cta .btn-primary {
    background: #fff;
    color: var(--accent);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.about-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.about-cta .btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.about-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-3px);
}

/* ============================================================
   کلاس کمکی hover-lift
   ============================================================ */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border-color: var(--accent);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* تبلت */
@media (max-width: 992px) {
    .about-hero {
        min-height: auto;
        padding: 120px 0 70px;
    }
    .about-hero-content h1 {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }
    .about-hero-content > p {
        font-size: 0.98rem;
    }

    .story-grid,
    .mission-grid,
    .team-grid,
    .tech-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* موبایل بزرگ */
@media (max-width: 768px) {
    .about-hero {
        padding: 100px 0 60px;
    }
    .about-hero-content h1 {
        font-size: clamp(1.4rem, 5vw, 1.9rem);
        line-height: 1.35;
    }
    .about-hero-content > p {
        font-size: 0.92rem;
        margin-bottom: 26px;
    }

    .story-grid,
    .mission-grid,
    .team-grid,
    .tech-gallery {
        grid-template-columns: 1fr;
    }

    .about-cta .cta-banner {
        padding: 44px 26px;
    }
    .about-cta .cta-banner h2 {
        font-size: 1.35rem;
    }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    .about-hero {
        padding: 90px 0 50px;
    }
    .about-hero-content h1 {
        font-size: 1.3rem;
    }
    .about-hero-content .btn-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .about-hero-content .btn {
        justify-content: center;
        width: 100%;
    }
    .scroll-indicator {
        bottom: 12px;
        font-size: 0.6rem;
    }

    .about-cta .cta-banner {
        padding: 36px 20px;
    }
    .about-cta .cta-banner h2 {
        font-size: 1.15rem;
    }
    .about-cta .btn-group {
        flex-direction: column;
    }
    .about-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .team-card .avatar {
        width: 90px;
        height: 90px;
    }
    .tech-member .tech-avatar {
        width: 80px;
        height: 80px;
    }
}

/* کاهش انیمیشن برای کاربران حساس */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}