/* ==================================================
   TEAM SECTION
================================================== */

.team-section {

    position: relative;

    overflow: hidden;

    padding: 100px 8%;

    background:
        linear-gradient(
            135deg,
            #f8fbff 0%,
            #eef5ff 52%,
            #ffffff 100%
        );
}


/* ==========================
   BACKGROUND GLOW
========================== */

.team-section::before {

    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    top: -220px;
    right: -180px;

    border-radius: 50%;

    background:
        rgba(59, 130, 246, 0.08);

    filter: blur(80px);

    pointer-events: none;
}


.team-section::after {

    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    bottom: -220px;
    left: -180px;

    border-radius: 50%;

    background:
        rgba(96, 165, 250, 0.07);

    filter: blur(80px);

    pointer-events: none;
}


/* ==========================
   CONTAINER
========================== */

.team-container {

    position: relative;

    z-index: 2;

    max-width: 1200px;

    margin: 0 auto;
}


/* ==========================
   HEADER
========================== */

.team-heading {

    max-width: 750px;

    margin: 0 auto 55px;

    text-align: center;
}


.team-label {

    display: inline-block;

    margin-bottom: 12px;

    color: #2563eb;

    font-size: 0.85rem;

    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.team-heading h1 {

    margin: 0 0 17px;

    color: #0f172a;

    font-size: clamp(
        2.2rem,
        4vw,
        3.2rem
    );

    font-weight: 800;

    line-height: 1.2;

    letter-spacing: -1px;
}


.team-heading h1 span {

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #3b82f6
        );

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;
}


.team-heading p {

    max-width: 650px;

    margin: 0 auto;

    color: #64748b;

    font-size: 1rem;

    line-height: 1.8;
}


/* ==========================
   TEAM GRID
========================== */

.team-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(250px, 1fr)
        );

    gap: 28px;

    align-items: stretch;
}


/* ==========================
   TEAM CARD
========================== */

.team-card {

    overflow: hidden;

    background:
        rgba(255, 255, 255, 0.90);

    border:
        1px solid
        rgba(59, 130, 246, 0.10);

    border-radius: 20px;

    box-shadow:
        0 10px 30px
        rgba(15, 23, 42, 0.07);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);
}


.team-card:hover {

    transform:
        translateY(-9px);

    border-color:
        rgba(37, 99, 235, 0.25);

    box-shadow:
        0 22px 45px
        rgba(15, 23, 42, 0.13);
}


/* ==========================
   PHOTO
========================== */

.team-photo-wrap {

    position: relative;

    height: 300px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #dbeafe,
            #eff6ff
        );
}


.team-photo {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform 0.7s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}


.team-card:hover .team-photo {

    transform:
        scale(1.06);
}


/* ==========================
   SOCIAL
========================== */

.team-social {

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    display: flex;

    justify-content: center;

    gap: 9px;

    padding: 18px;

    background:
        linear-gradient(
            to top,
            rgba(15, 23, 42, 0.70),
            transparent
        );

    transform:
        translateY(10px);

    opacity: 0;

    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}


.team-card:hover .team-social {

    opacity: 1;

    transform:
        translateY(0);
}


.team-social a {

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    color: #ffffff;

    background:
        rgba(37, 99, 235, 0.90);

    border:
        1px solid
        rgba(255, 255, 255, 0.25);

    text-decoration: none;

    font-size: 0.72rem;

    font-weight: 700;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}


.team-social a:hover {

    transform:
        translateY(-4px);

    background:
        #1d4ed8;
}


/* ==========================
   TEAM INFORMATION
========================== */

.team-info {

    padding: 24px 22px 26px;

    text-align: center;
}


.team-info h3 {

    margin: 0 0 7px;

    color: #0f172a;

    font-size: 1.25rem;

    font-weight: 750;
}


.team-role {

    display: inline-block;

    margin-bottom: 12px;

    color: #2563eb;

    font-size: 0.82rem;

    font-weight: 700;

    letter-spacing: 0.4px;
}


.team-info p {

    max-width: 290px;

    margin: 0 auto;

    color: #64748b;

    font-size: 0.88rem;

    line-height: 1.7;
}


/* ==========================
   EMPTY STATE
========================== */

.team-grid .empty {

    grid-column: 1 / -1;

    padding: 60px 30px;

    text-align: center;

    border:
        2px dashed
        #bfdbfe;

    border-radius: 20px;

    background:
        rgba(255, 255, 255, 0.65);
}


.team-grid .empty h3 {

    margin: 0 0 8px;

    color: #0f172a;

    font-size: 1.4rem;
}


.team-grid .empty p {

    margin: 0;

    color: #64748b;
}


/* ==========================
   TABLET
========================== */

@media (max-width: 768px) {

    .team-section {

        padding:
            75px 1.5rem;
    }


    .team-heading {

        margin-bottom: 40px;
    }


    .team-heading h1 {

        font-size: 2.1rem;
    }


    .team-grid {

        grid-template-columns:
            repeat(
                auto-fit,
                minmax(230px, 1fr)
            );

        gap: 20px;
    }


    .team-photo-wrap {

        height: 280px;
    }

}


/* ==========================
   MOBILE
========================== */

@media (max-width: 500px) {

    .team-section {

        padding:
            60px 1.2rem;
    }


    .team-grid {

        grid-template-columns: 1fr;
    }


    .team-photo-wrap {

        height: 320px;
    }


    .team-social {

        opacity: 1;

        transform: translateY(0);
    }

}
