/* ================================
   🌙 About Page — Cinematic Edition
   ================================ */

/* 🎞️ Fade Animation */
.fade-up {
    opacity: 0;
    transform: translateY(25px);
    animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================
   ✨ About-Hero Section — Cinematic, Accessible
   Applies to:
   <section class="about-hero fade-up">...</section>
   Uses existing CSS variables from base.css
============================= */

.about-hero {
    position: relative;
    overflow: hidden;
    padding: 5.2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48vh;
    color: var(--accent-foreground, #fff);
    direction: rtl;
    /* subtle fallback bg in case variables missing */
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent, #2c6e49) 8%, #07140c), rgba(8, 10, 12, 0.6));
}

/* decorative overlay for depth + blur (keeps text readable) */
.about-hero .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /* dark glass + soft vignette */
    background: radial-gradient(1200px 400px at 50% 10%, rgba(255, 215, 0, 0.03), transparent 20%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55));
    backdrop-filter: blur(6px) saturate(120%);
    mix-blend-mode: multiply;
}

/* subtle animated particles / grain (very light) */
.about-hero .hero-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.04;
    pointer-events: none;
    mix-blend-mode: overlay;
    transform: translateZ(0);
}

/* main content container (keeps text above overlay) */
.about-hero .hero-content {
    position: relative;
    z-index: 2;
    width: min(1100px, 94%);
    padding: 1.2rem;
    text-align: center;
}

/* headline */
.about-hero .hero-content h1 {
    margin: 0 0 0.6rem;
    font-weight: 800;
    color: var(--accent, #2c6e49);
    /* elegant gradient text */
    background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 60%, var(--gold, #d4af37)), color-mix(in srgb, var(--accent) 35%, #000 10%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(1.6rem, 3.2vw, 2.6rem); /* responsive */
    line-height: 1.08;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

/* subtitle / kicker */
.about-hero .hero-content p {
    margin: 0 auto;
    max-width: 78ch;
    color: color-mix(in srgb, var(--accent, #fff) 88%, transparent);
    font-size: clamp(0.95rem, 1.6vw, 1.15rem); /* responsive */
    line-height: 1.8;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

/* decorative underline (for visual rhythm) */
.about-hero .hero-content p::after {
    content: "";
    display: block;
    width: 84px;
    height: 4px;
    border-radius: 4px;
    margin: 1.1rem auto 0;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    box-shadow: 0 6px 22px color-mix(in srgb, var(--accent) 20%, transparent);
}

/* fade-up animation (respects reduced motion) */
.fade-up {
    opacity: 0;
    transform: translateY(16px);
    animation: aboutFadeUp 0.8s ease forwards;
}

@keyframes aboutFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fade-up {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* =============================
   Responsive tweaks
============================= */

/* tablet */
@media (max-width: 900px) {
    .about-hero {
        padding: 3.6rem 0;
        min-height: 42vh;
    }

    .about-hero .hero-content h1 {
        font-size: clamp(1.5rem, 4.5vw, 2.2rem);
    }

    .about-hero .hero-content p {
        font-size: 0.98rem;
        max-width: 60ch;
    }
}

/* mobile */
@media (max-width: 520px) {
    .about-hero {
        padding: 2.8rem 0;
        min-height: 36vh;
    }

    .about-hero .hero-content {
        padding: 0.6rem;
    }

    .about-hero .hero-content h1 {
        font-size: clamp(1.3rem, 6.5vw, 1.8rem);
        letter-spacing: -0.3px;
    }

    .about-hero .hero-content p {
        font-size: 0.9rem;
        line-height: 1.6;
        max-width: 44ch;
    }

    .about-hero .hero-overlay::after {
        opacity: 0.02;
        background-size: 40px 40px;
    }
}

/* ensure contrast for dark theme explicitly */
[data-theme="dark"] .about-hero .hero-overlay {
    background: radial-gradient(1000px 300px at 50% 8%, rgba(255, 215, 0, 0.02), transparent 20%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.7));
}

/* ===== About Section ===== */
.about-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 4rem 1.5rem;
    align-items: center;
}

.about-image {
    flex: 1 1 38%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: transform 1s ease;
}

.about-image:hover {
    transform: scale(1.03);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    flex: 1 1 55%;
}

.about-text h2 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.about-text p {
    line-height: 1.9;
    color: var(--text);
    opacity: 0.9;
}

/* ===== Mission Section ===== */
.mission-section {
    text-align: center;
    padding: 4rem 1rem;
    background: var(--card-bg);
}

.section-title {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 2.5rem;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.mission-card {
    background: color-mix(in srgb, var(--accent) 4%, var(--card-bg));
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.icon-circle {
    width: 65px;
    height: 65px;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.6rem;
    margin: 0 auto 1rem;
}

/* ===== Team Section ===== */
.team-section {
    padding: 4rem 1rem;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
}

.team-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.team-card h3 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 1rem;
}

.team-card p {
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 1rem;
}

/* ===== 🎇 CTA Section – نسخه خاص و طلایی تیره ===== */
.cta-section {
    position: relative;
    text-align: center;
    padding: 5rem 1rem;
    background: radial-gradient(circle at center,
    color-mix(in srgb, var(--accent) 25%, #000) 0%,
    color-mix(in srgb, var(--accent) 10%, #000) 45%,
    #050505 100%);
    color: #fff;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* افکت خطوط نور ظریف روی پس‌زمینه */
.cta-section::before,
.cta-section::after {
    content: "";
    position: absolute;
    background: repeating-linear-gradient(
            45deg,
            rgba(255, 215, 0, 0.08) 0px,
            rgba(255, 215, 0, 0.08) 1px,
            transparent 2px,
            transparent 5px
    );
    mix-blend-mode: overlay;
    opacity: 0.2;
    animation: moveLines 12s linear infinite;
}

.cta-section::after {
    background: repeating-linear-gradient(
            -45deg,
            rgba(255, 215, 0, 0.08) 0px,
            rgba(255, 215, 0, 0.08) 1px,
            transparent 2px,
            transparent 5px
    );
    animation-direction: reverse;
}

@keyframes moveLines {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 200px 200px;
    }
}

/* متن‌ها و دکمه */
.cta-section h2 {
    font-size: 1.9rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--gold), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.cta-section p {
    margin: 1rem auto 2rem;
    max-width: 600px;
    font-size: 1rem;
    opacity: 0.9;
}

.btn-cta {
    position: relative;
    background: transparent;
    color: var(--gold);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    border: 2px solid var(--gold);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
}

.btn-cta:hover {
    background: var(--gold);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

/* موبایل */
@media (max-width: 768px) {
    .cta-section {
        padding: 3.5rem 1rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 0.9rem;
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .about-text h2 {
        font-size: 1.5rem;
    }

    .about-text p {
        font-size: 0.9rem;
    }

    .mission-card h3 {
        font-size: 1rem;
    }

    .team-card h3 {
        font-size: 1rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 0.9rem;
    }
}