﻿/* ============================= */
/* فونت فارسی جذاب فقط برای بخش تیم */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700;900&display=swap');

/* ============================= */
/* کانتینر کل سکشن */
.team-section {
    width: 100%;
    padding: 50px 10%;
    box-sizing: border-box;
    direction: rtl;
    /* بک‌گراند شیشه‌ای روشن */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* کانتینر داخلی */
.team-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* ============================= */
/* اسلایدر */
.team-slider {
    width: 450px; /* بزرگ‌تر برای دسکتاپ */
    max-width: 100%;
    position: relative;
}

    .team-slider .swiper {
        width: 100%;
        height: 450px;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 8px 30px rgba(0,0,0,0.1);
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .team-slider .swiper-slide {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 15px;
        overflow: hidden;
        transition: all 0.4s ease;
        background: rgba(255,255,255,0.05);
        backdrop-filter: blur(8px);
    }

        /* تصاویر */
        .team-slider .swiper-slide img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: contain;
            border-radius: 15px;
            background: rgba(255,255,255,0.05);
            transition: transform 0.3s ease;
        }

        /* پس‌زمینه آبی که از پایین بالا میاد */
        .team-slider .swiper-slide::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 0;
            background: linear-gradient(to top, rgba(0,191,223,0.5), rgba(0,191,223,0));
            transition: height 0.5s ease;
            z-index: 2;
            pointer-events: none;
            border-radius: 15px;
        }

        /* شبکه‌های اجتماعی */
        .team-slider .swiper-slide .socials {
            position: absolute;
            bottom: -50px;
            left: 0;
            width: 100%;
            display: flex;
            justify-content: center;
            gap: 10px;
            transition: all 0.5s ease;
            z-index: 3;
        }

        /* وقتی هاور می‌کنیم روی کارت */
        .team-slider .swiper-slide:hover::after {
            height: 100%; /* آبی از پایین تا بالا میاد */
        }

        .team-slider .swiper-slide:hover .socials {
            bottom: 20px; /* شبکه اجتماعی بالا میان */
        }

        .team-slider .swiper-slide:hover img {
            transform: scale(1.05); /* تصویر کمی زوم */
        }

    /* افکت شبکه‌ها */
    .team-slider .socials a {
        display: inline-flex;
        width: 40px;
        height: 40px;
        background: #00bfdf;
        color: #fff;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        transition: all 0.4s ease;
    }

        .team-slider .socials a:hover {
            transform: scale(1.3);
            background: #ff4d6d;
        }

    /* Autoplay Progress */
    .team-slider .autoplay-progress {
        position: absolute;
        bottom: 16px;
        left: 16px;
        width: 48px;
        height: 48px;
        z-index: 10;
        background: rgba(0,0,0,0.3);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .team-slider .autoplay-progress svg {
            width: 40px;
            height: 40px;
            fill: none;
            stroke: #fff;
            stroke-width: 4;
            stroke-dasharray: 125.6;
            stroke-dashoffset: 125.6;
            transform: rotate(-90deg);
            transition: stroke-dashoffset 0.1s linear;
        }

        .team-slider .autoplay-progress span {
            position: absolute;
            color: #fff;
            font-size: 12px;
            font-weight: bold;
        }

/* ============================= */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;600;700;900&display=swap');

/* متن سمت راست */
.team-text {
    width: 45%;
    max-width: 500px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    font-family: 'Vazirmatn', sans-serif; /* فونت فارسی جذاب */
}

    /* شعار ثابت */
    .team-text .team-slogan {
        font-family: 'Shabnam', 'Vazirmatn', sans-serif; /* فونت ضخیم و جذاب */
        font-weight: 900; /* خیلی بولد */
        font-size: 30px; /* بزرگ‌تر از بقیه متن */
        color: #00bfdf; /* رنگ آبی */
        text-align: right; /* راست‌چین در دسکتاپ */
        margin-bottom: 20px;
        line-height: 1.2;
    }


    .team-text h2,
    .team-text h4 {
        font-size: 22px;
        font-weight: 700;
        color: #333; /* رنگ مشکی */
        margin-bottom: 5px;
        text-transform: capitalize; /* شروع کلمات بزرگ */
        transition: all 0.4s ease;
    }

    /* بیوگرافی */
    .team-text p {
        font-size: 22px;
        line-height: 1.6;
        color: #000; /* مشکی */
        transition: all 0.4s ease;
        margin: 5px 0; /* فاصله از عناصر بالایی و پایینی */
    }

        /* فقط برای حروف اول هر پاراگراف */
        .team-text p::first-letter {
            text-transform: uppercase;
        }

/* برای بیوگرافی جداگانه */
#member-bio {
    display: block; /* خط پایین */
    margin-top: 5px; /* فاصله از "بیوگرافی:" */
}


/* ============================= */
/* ریسپانسیو موبایل */
@media (max-width: 768px) {
    .team-text .team-slogan {
        text-align: center; /* وسط‌چین در موبایل */
        font-size: 28px; /* کمی کوچک‌تر در موبایل */
    }
    .team-container {
        flex-direction: column-reverse;
        align-items: center;
        gap: 20px;
    }

    .team-slider {
        width: 100%;
        max-width: none;
    }

        .team-slider .swiper {
            height: 500px;
        }

        .team-slider .swiper-slide img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 15px;
            background: rgba(255,255,255,0.1);
        }

    .team-text {
        text-align: center;
        width: 95%;
    }

        .team-text .team-slogan {
            font-size: 28px;
        }

        .team-text h2 {
            font-size: 20px;
        }

        .team-text h4 {
            font-size: 20px;
        }

        .team-text p {
            font-size: 16px;
        }
}
/* بخش تصویر تکی - فقط دسکتاپ */
.team-extra {
    width: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .team-extra img {
        width: 100%;
        height: auto;
        border-radius: 15px;
        object-fit: cover;
        /* حذف خط دور */
        border: none;
        /* افکت حکاکی کم‌رنگ */
        opacity: 0.2;
        filter: grayscale(100%);
        transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
    }

        .team-extra img:hover {
            transform: scale(1.05);
            opacity: 0.3; /* کمی پررنگ‌تر هنگام هاور */
        }

/* ریسپانسیو موبایل - پنهان کردن بخش سوم */
@media (max-width: 768px) {
    .team-extra {
        display: none;
    }
}
