@use "../abstracts/variables"as vars;

/* ===========================
   Team 3
   =========================== */
.team3 {
    position: relative;
    background-color: vars.$color-white;
    overflow: hidden;

    &__header {
        text-align: center;
        margin-bottom: vars.rem(50);

        @media (max-width: 991.98px) {
            margin-bottom: vars.rem(30);
        }
    }

    &__subtitle {
        display: block;
        color: #0073E6;
        font-weight: 700;
        font-size: vars.rem(15);
        margin-bottom: vars.rem(12);
        letter-spacing: 0.15em;
        text-transform: uppercase;
    }

    &__title {
        font-size: vars.rem(45);
        font-weight: 800;
        color: vars.$color-heading;
        line-height: 1.2;
        margin-bottom: 0;

        @media (max-width: 767px) {
            font-size: vars.rem(32);
        }
    }

    /* ── Card Component ── */
    &__card {
        position: relative;
        margin-bottom: vars.rem(30);
        overflow: visible;
        transition: all 0.4s ease;

        &:hover {
            .team3__social-box {
                opacity: 1;
                transform: translateY(0);
                visibility: visible;
                background: #302F3B;
            }

            .team3__more-btn {
                background: #45444F;
                color: vars.$color-white;
            }

            .team3__info {
                background: #191825;

                .team3__role {
                    color: rgba(255, 255, 255, 0.6);
                }

                .team3__name {
                    color: vars.$color-white;
                }
            }
        }
    }

    &__thumb {
        position: relative;
        border-radius: vars.rem(15);
        overflow: hidden;
        z-index: 1;

        img {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.6s ease;
        }
    }

    /* ── Slanted Accents ── */
    &__accent {
        position: absolute;
        width: vars.rem(120);
        height: vars.rem(36);
        background-color: #0073E6;
        z-index: 2;
        clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);

        &--top {
            top: vars.rem(20);
            right: vars.rem(-20);
        }

        &--bottom {
            bottom: vars.rem(20);
            left: vars.rem(-20);
        }
    }

    /* ── Social Overlay ── */
    &__social-box {
        position: absolute;
        right: vars.rem(23);
        bottom: vars.rem(25);
        background-color: #31303E;
        padding: vars.rem(15) vars.rem(21);
        border-radius: vars.rem(10);
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        z-index: 10;
        display: flex;
        flex-direction: column;
        gap: vars.rem(15);
        opacity: 0;
        visibility: hidden;
        transform: translateY(vars.rem(20));
        transition: all 0.4s ease;

        @media (max-width: 1399px) {
            right: 0;
            bottom: 7px;
            border-radius: 0.9375rem 0.9375rem 0 0;
            padding: 18px 15px;
        }

        a {
            color: vars.$color-white;
            font-size: vars.rem(16);
            transition: all 0.3s ease;

            &:hover {
                color: #0073E6;
            }
        }
    }

    /* ── Info Box ── */
    &__info {
        position: absolute;
        left: vars.rem(124);
        right: 0;
        bottom: vars.rem(-50);
        background-color: #EFF3FA;
        padding: vars.rem(20) vars.rem(25);
        border-radius: vars.rem(50) vars.rem(15) vars.rem(15) vars.rem(50);
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        transition: all 0.4s ease;

        // Slanted edge on the left

        @media (max-width: 1399px) {
            left: 0;
            right: 0;
            bottom: -49px;
            border-radius: 0.9375rem 0.9375rem 0 0;
            padding: 15px 5px;
        }


    }

    &__text {
        flex: 1;
        text-align: end;
    }

    &__role {
        display: block;
        font-size: vars.rem(12);
        font-weight: 700;
        color: vars.$color-text2;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-bottom: vars.rem(4);

        @media (max-width: 1399px) {
            font-size: vars.rem(8);
        }
    }

    &__name {
        display: block;
        font-size: vars.rem(22);
        font-weight: 800;
        color: vars.$color-heading;
        line-height: 1.2;

        @media (max-width: 1399px) {
            font-size: vars.rem(18);
        }
    }

    &__more-btn {
        width: vars.rem(55);
        height: vars.rem(55);
        background-color: vars.$color-white;
        color: #0073E6;
        border-bottom-left-radius: vars.rem(150);
        border-bottom-right-radius: vars.rem(150);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: vars.rem(20);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
        margin-left: 18px;

        @media (max-width: 1399px) {
            width: vars.rem(40);
            height: vars.rem(40);
            font-size: vars.rem(16);
        }

        &:hover {
            background-color: #0073E6;
            color: vars.$color-white;
        }
    }
}