/* Team global ---------------------------------- */
.th-team {
    position: relative;

    .box-img {
        position: relative;
        overflow: hidden;

        img {
            width: 100%;
            transition: 0.4s ease-in-out;
        }
    }

    .team-desig {
        font-size: 16px;
        color: $title-color;
        display: block;
        text-align: left;
        margin-bottom: -0.5em;
        transition: 0.4s ease-in-out;
    }

    .th-social {
        a {
            --icon-size: 64px;
            font-size: 24px;
            color: $white-color;
            background-color: $white-color;
            box-shadow: 0px 4px 20px rgba(18, 27, 82, 0.1);

            &:hover {
                background-color: $theme-color;
                border-color: $theme-color;
                color: $white-color;
            }
        }
    }

    .box-title {
        margin-bottom: 3px;
    }

    &:hover {
        .team-img {
            img {
                transform: scale(1.08);
            }
        }

        .team-social {
            visibility: visible;
            opacity: 1;
        }
    }
}

.team-sec {
    background-color: #F8F8F8;
}

/* Team Card ---------------------------------- */
.team-card {
    position: relative;
    border-radius: 24px;
    transition: 0.4s ease-in-out;
    z-index: 2;


    .box-title {
        margin-bottom: -0.3rem;

        @include xs {
            font-size: 20px;
            margin-bottom: 0;
        }
    }

    .box-img {
        position: relative;
        background: #F2F3FC;
        border-radius: 24px 24px 0px 0px;
        z-index: 2;

        // &:before {
        //     content: "";
        //     position: absolute;
        //     inset: 0;
        //     background-image: url("../img/team/element.png");
        //     background-size: auto;
        //     background-position: center center;
        //     background-repeat: no-repeat;
        //     z-index: -1;
        // }
    }

    .box-content {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 40px 32px 32px 32px;
        border: 1px solid #DEDFE3;
        border-top-color: transparent;
        border-radius: 0 0 24px 24px;
        z-index: 3;
        transition: all 0.4s ease-in-out;

        @include xxl {
            padding: 30px 25px;
        }

        @include xl {
            padding: 30px 20px;
        }

        @include xs {
            padding: 25px 20px;
        }
    }

    .box-title {
        margin-bottom: 5px;

        @include xl {
            font-size: 22px;
        }
    }

    .team-social {
        .icon-btn {
            --btn-size: 40px;
            background-color: #F2F3FC;
            border: none;
            color: $title-color;
            border-radius: 50%;
            font-size: var(--btn-font-size, 18px);
            font-weight: 700;
            cursor: pointer;
        }

        .th-social {
            position: absolute;
            visibility: hidden;
            opacity: 0;
            bottom: 80px;
            right: 32px;
            width: 40px;
            min-height: 178px;
            padding: 0;
            color: var(--title-color);
            transform: scaleY(0);
            transform-origin: bottom;
            transition: 0.4s ease-in-out;
            z-index: 2;

            @include xxl {
                right: 25px;
            }

            @include xl {
                right: 20px;
            }

            @include xs {
                bottom: 70px;
                right: 20px;
            }

            a {
                border-radius: 50%;
                margin-right: 0;
                margin-bottom: 10px;
            }
        }
    }


    &:hover {
        .box-img {
            img {
                transform: scale(1.15);
                transition: all ease 0.4s;
            }
        }

        .box-content {
            background-color: #FFF2F2;
        }

        .icon-btn {
            background-color: $title-color;
            color: $white-color;
        }

        .th-social {
            transform: scaleY(1);
            opacity: 1;
            visibility: visible;
        }
    }

    &.style2 {
        background-color: $white-color;
        border-radius: 24px;

        .box-img {
            background-repeat: no-repeat;
            background-size: cover;

            &:before {
                content: "";
                position: absolute;
                inset: 0;
                background-image: url("../img/team/element2.png");
                background-size: auto;
                background-position: center center;
                background-repeat: no-repeat;
                z-index: -1;
            }
        }

        &:hover {
            .icon-btn {
                img {
                    filter: brightness(0) invert(1);
                }
            }
        }
    }
}

/* team-item ----------------*/
.team-item {
    position: relative;
    background-color: $white-color;
    box-shadow: 0px 10px 20px 7px rgba(161, 150, 130, 0.07);
    padding: 20px 20px 30px 20px;
    text-align: center;
    transition: all 0.4s ease-in-out;
    z-index: 2;

    &:before {
        content: "";
        position: absolute;
        inset: 0;
        bottom: 0;
        height: 0;
        background-color: $title-color;
        transition: all 0.4s ease-in-out;
        z-index: -1;

    }

    .box-img {
        background-color: #EDEDED;
        margin-bottom: 30px;

        img {
            transition: all 500ms ease;
        }
    }

    .box-title {
        margin-bottom: 0;
    }

    .team-desig {
        display: block;
        color: $body-color;
        text-align: center;
    }

    &:hover {
        &:before {
            height: 100%;
        }

        .box-title {
            color: $white-color;
        }

        .box-img {
            img {
                transform: scale(1.05);
            }
        }
    }
}

.team-box {
    position: relative;
    overflow: hidden;

    .box-img {
        overflow: hidden;
        position: relative;
        z-index: 2;
        background-color: $smoke-color3;
        margin-bottom: 32px;

        &:before {
            content: "";
            position: absolute;
            inset: 0;
            background: rgba(2, 0, 15, 0.5);
            z-index: 1;
            transition: all 0.4s ease-in-out;
            opacity: 0;
            visibility: hidden;

        }

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: 0.4s ease-in-out;
        }
    }

    .th-social {
        position: absolute;
        top: 40%;
        left: 50%;
        width: max-content;
        min-height: max-content;
        transform: translate(-50%, -50%);
        z-index: 3;

        a {
            opacity: 0;
            transform: translateY(20px);
            transition: 0.3s;
            background-color: transparent;
            border: 1px solid $white-color;


            &:nth-child(1) {
                transition-delay: 0s;
            }

            &:nth-child(2) {
                transition-delay: 0.1s;
            }

            &:nth-child(3) {
                transition-delay: 0.2s;
            }

            &:nth-child(4) {
                transition-delay: 0.3s;
            }

            &:nth-child(5) {
                transition-delay: 0.4s;
            }

            &:hover {
                color: $white-color;
            }
        }
    }

    .box-title {
        font-family: $title-font2;
        font-size: 40px;
        line-height: 40px;
        font-weight: 400;
        margin: 0 0 5px 0;

        @include md {
            font-size: 30px;
        }
    }

    .team-desig {
        font-weight: 400;
        font-size: 18px;
        letter-spacing: 0.02em;
        color: $title-color;
        margin-bottom: 0;
    }

    .box-content {
        padding: 30px;
        text-align: center;
        transition: all 0.4s ease-in-out;
    }

    &:hover {

        .box-img {
            &:before {
                opacity: 1;
                visibility: visible;
            }

            img {
                transform: scale(1.08);
            }
        }

        .th-social a {
            opacity: 1;
            transform: translateY(0px);
        }
    }

    &.style2 {
        .box-title {
            font-family: $title-font;
        }
    }

}

.team-area {
    position: relative;
    z-index: 2;
    background-attachment: fixed;

    &:before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(0deg, rgba(26, 33, 89, 0.7), rgba(26, 33, 89, 0.7));
        z-index: -1;
    }
}

.team-area2 {
    background-size: auto;
    background-repeat: repeat;
}

.team-grid {
    display: flex;
    gap: 24px;
    overflow: hidden;
    flex-direction: column;

    &_wrapp {

        &:nth-child(even) {
            .team-grid {
                flex-direction: column-reverse;

                @include md {
                    flex-direction: column;
                }
            }
        }

        &:hover {
            .icon-btn {
                opacity: 0;
                left: -40px;
            }

            .box-content {
                transform: translateY(0);
            }

            .box-number {

                .number {
                    color: $title-color;
                    -webkit-text-fill-color: $title-color;
                    -webkit-text-stroke-width: 1px;
                    -webkit-text-stroke-color: $title-color;

                }
            }

        }
    }

    .team-box-wrapp {
        position: relative;
        z-index: 2;
        overflow: hidden;
    }

    .box-img {
        position: relative;
        background-color: #F0F0F0;
        z-index: 2;

        &:before {
            display: none;
        }
    }

    .icon-btn {
        position: absolute;
        left: 0;
        bottom: 69px;
        --btn-size: 64px;
        background-color: $title-color;
        border-radius: 0;
        color: $white-color;
        font-size: 24px;
        border: none;
        cursor: pointer;

    }


    .box-content {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        z-index: 3;
        background: rgba(2, 0, 15, 0.5);
        backdrop-filter: blur(5px);
        padding: 42px 0;
        text-align: center;
        transition: all 0.4s ease-in-out;
        transform: translateY(100%);

    }

    .box-title {
        font-weight: 500;
        font-size: 40px;
        color: $white-color;

        @include ml {
            font-size: 30px;
        }

    }

    .team-desig {
        font-weight: 400;
        font-size: 16px;
        color: $white-color;
        text-align: center;
        display: block;
        margin-bottom: 25px;

    }

    .th-social {
        a {
            --icon-size: 32px;
            background-color: transparent;
            border: 1px solid #EDEDED;
            font-size: 16px;

        }
    }

    .box-number {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 162px 180px;

        @include vxs {
            padding: 100px 140px;
        }

        .number {
            font-family: $title-font;
            font-weight: 700;
            font-size: 60px;
            color: #6C6D71;
            -webkit-text-fill-color: transparent;
            -webkit-text-stroke-width: 1px;
            -webkit-text-stroke-color: #6C6D71;

        }
    }



}

/* Team Details ---------------------------------- */
.team-details {
    .team-card {
        @include md {
            margin-bottom: 24px;
        }

        .box-img {
            border-radius: 0;
            margin-bottom: 24px;
        }

        .box-content {
            justify-content: flex-end;
            gap: 50px;
            padding: 18px 32px;
            background-color: #FFF2F2;
            border: 1px solid #E4E4E5;
            border-top-color: transparent;
        }

        .team-social {
            .icon-btn {
                --btn-size: 40px;
                background-color: $title-color;
                color: $white-color;
            }

            .th-social {
                bottom: 80px;
            }
        }
    }
}

.team-about {
    margin-left: 30px;

    @include xl {
        margin: 0;
    }

    .team-wrapp {
        display: flex;
        justify-content: space-between;

        @include ml {
            display: block;
        }
    }

    &_title {
        font-size: 40px;
        font-weight: 600;
        margin-top: -0.7rem;
        margin-bottom: 0px;

        @include sm {
            font-size: 24px;
            line-height: 28px;
        }
    }

    &_desig {
        font-family: $title-font;
        font-size: 20px;
        font-weight: 500;
        margin-bottom: 20px;
    }

    &_text {
        font-size: 18px;
        letter-spacing: 0.02em;
        margin-bottom: 30px;
    }
}

.about-info {
    &-wrap {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        max-width: 610px;
        border: 1px solid #E0E0E0;
        border-radius: 20px;
        margin-bottom: 40px;

        @include sm {
            grid-template-columns: repeat(1, 1fr);
        }
    }

    display: flex;
    align-items: center;
    gap: 20px;
    padding: 27px 30px 27px 30px;

    @media(max-width: 1499px) {
        padding: 27px 20px 27px 20px;
    }

    @include xl {
        gap: 15px;
    }

    @include vxs {
        padding: 25px 15px;
    }

    &:not(:first-child) {
        border-left: 1px solid #E0E0E0;

        @include sm {
            border-left: none;
            border-top: 1px solid #E0E0E0;
        }
    }

    &:nth-child(3) {
        border-left: none;
        border-top: 1px solid #E0E0E0;
    }

    &:last-child {
        border-top: 1px solid #E0E0E0;
    }

    &_icon {
        i {
            @include equal-size-lineHeight(50px);
            background: #F8F8F8;
            border: 1px solid #E0E0E0;
            border-radius: 50%;
            text-align: center;
            transition: all 0.4s ease-in-out;

            &:hover {
                background-color: $theme-color;
                color: $white-color;
            }
        }
    }

    &_subtitle {
        margin-bottom: 0;
    }

    &_title {
        font-family: $body-font;
        font-weight: 600;
        font-size: 18px;
        margin-bottom: 0;

        @include ml {
            font-size: 16px;
        }

        a {
            color: inherit;

            &:hover {
                color: $theme-color;
            }
        }
    }
}

.about-card-img {
    position: relative;
    background-color: $white-color;
    padding: 40px;
    box-shadow: 0px 10px 50px rgba(0, 0, 0, 0.08);
    border-radius: 30px;

    img {
        border-radius: 20px;
        width: 100%;
    }

    @include xl {
        padding: 30px;
    }

    @include lg {
        margin-bottom: 40px;
    }

    @include sm {
        border-radius: 20px;

        img {
            border-radius: 15px;
        }
    }

    @include vxs {
        padding: 20px;
    }
}

@media (min-width: 1300px) {
    .about-card {
        margin-left: 50px;
    }
}

.about-card {
    &_title {
        margin-bottom: 15px;
    }

    &_desig {
        color: $theme-color;
        margin-bottom: 22px;
        margin-top: -0.5em;
    }

    &_text {
        margin-bottom: 26px;
        margin-top: 32px;
    }

    .th-social a {
        border-radius: 10px;
    }
}

.team-info {
    ul {
        margin: 0;
        padding: 0;
        list-style-type: none;

        li {
            margin-bottom: 15px;
            display: flex;
            align-items: center;

            &:last-child {
                margin-bottom: 0;
            }

            b {
                width: 100%;
                max-width: 200px;
                font-weight: 600;
                font-size: 18px;
                color: $title-color;
            }

            span,
            a {
                color: $body-color;
            }

            a:hover {
                color: $theme-color;
            }
        }
    }
}

@include xs {
    .team-info ul li b {
        max-width: 140px;
    }
}

.team-contact-form {
    padding: 50px;
    background-color: $smoke-color;

    textarea {
        height: 120px;
    }

    .form-title {
        margin-top: -0.3em;
        margin-bottom: 25px;
    }

    @include xs {
        padding: 40px 20px;
    }
}

.skill-card {

    &_wrapp {
        position: relative;
        z-index: 2;
        background-color: $smoke-color;
        padding: 30px;
        margin-left: -200px;

        @include lg {
            margin-left: 0;
        }
    }

    &_title {
        font-size: 30px;
        line-height: 40px;
        margin-top: -0.4rem;
        margin-bottom: 10px;
    }
}

.skill-card {
    max-width: 547px;
    display: block;
    margin-left: auto;

    @include ml {
        margin: 0;
        max-width: 100%;
    }
}

.skill-wrapp {
    display: grid;
    grid-template-columns: auto auto;
    gap: 40px;

    @include sm {
        display: flex;
        flex-direction: column;
    }

    .skill-feature {
        display: block;

        &_title {
            font-weight: 500;
            font-size: 24px;
            color: $title-color;
            min-width: 100%;
            margin-bottom: 10px;
            text-transform: capitalize;

            @include xs {
                font-size: 18px;
            }

        }

        .progress {
            width: 100%;
            height: 8px;
            background-color: #EDEDED;
            border-radius: 24px;

            @include xs {
                width: 90%;
            }
        }

        .progress-bar {
            height: 8px;
        }

        .progress-value {
            top: -30px;
            right: -14px;

            @include vxs {
                top: -50px;
            }
        }
    }
}

.skill-feature {
    display: flex;

    @include vxs {
        flex-direction: column;
    }

    &_title {
        min-width: 180px;

    }

    &_title,
    .progress-value {
        font-weight: 600;
        font-size: 14px;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        margin-bottom: 35px;
        font-family: $body-font;
        color: $title-color;
        display: inline-block;


        @include xl {
            font-size: 18px;
        }

        @include vxs {
            margin: 20px 0;
        }
    }

    .progress {
        position: relative;
        height: 3px;
        background-color: #EFEFEF;
        overflow: visible;
        border-radius: 3px;
        width: 341px;
        margin-right: 60px;
        margin-top: 5px;

        @include ml {
            width: 100%;
        }

        @include vxs {
            width: 80%;
        }
    }

    .progress-bar {
        background-color: $theme-color;
        height: 3px;
        border-radius: inherit;
        overflow: visible;
        position: relative;
    }

    .progress-value {
        position: absolute;
        top: -15px;
        right: -40px;

        @include vxs {
            top: -33px;
            right: -60px;
        }
    }
}