@use "../utilities" as *;

/**----------------------------------------
START: Theme Team CSS
----------------------------------------*/
.team-section {
    margin-bottom: -162px;
}

.team-item {
    position: relative;
    .team-logo {
        height: 70px;
        width: 70px;
        position: absolute;
        top: 30px;
        left: 30px;
        z-index: 1;
        visibility: hidden;
        opacity: 0;
        transform: scale(0.95);
        @include transition(all 0.3s ease-in-out);
    }
    &:hover .team-logo {
        visibility: visible;
        opacity: 1;
        transform: scale(1);
    }
    .team-thumb {
        position: relative;
        border-radius: 30px 30px 0 0;
        .team-social {
            position: absolute;
            top: 30px;
            right: 30px;
            z-index: 1;
            .expand {
                background-color: var(--mt-color-common-white);
                font-size: 18px;
                height: 40px;
                width: 40px;
                border-radius: 50%;
                @include flex-center;
                @include transition(all 0.3s ease-in-out);
                cursor: pointer;
                &:hover {
                    background-color: var(--mt-color-theme-secondary);
                    color: var(--mt-color-heading-primary);
                }
            }
            .social-list {
                position: absolute;
                top: 55px;
                right: 0px;
                list-style: none;
                li {
                    visibility: hidden;
                    opacity: 0;
                    transition: all 0.5s cubic-bezier(0.1, 0.75, 0.25, 1);
                    a {
                        background-color: var(--mt-color-common-white);
                        width: 40px;
                        height: 40px;
                        border-radius: 50%;
                        font-size: 15px;
                        @include flex-center;
                        @include transition(all 0.3s ease-in-out);
                        &:hover {
                            background-color: var(--mt-color-theme-primary);
                            color: var(--mt-color-common-white);
                        }
                    }
                    &:not(:last-of-type) {
                        margin-bottom: 5px;
                    }
                    &:nth-child(1) {
                        transition-delay: 100ms;
                    }
                    &:nth-child(2) {
                        transition-delay: 150ms;
                    }
                    &:nth-child(3) {
                        transition-delay: 200ms;
                    }
                    &:nth-child(4) {
                        transition-delay: 250ms;
                    }
                }
            }
            &:hover {
                .social-list li {
                    visibility: visible;
                    opacity: 1;
                }
            }
        }
    }
    .team-content {
        background-color: var(--mt-color-common-white);
        text-align: center;
        line-height: 1;
        padding: 20px 0;
        margin: 0 35px;
        border-radius: 0 0 20px 20px;
        overflow: hidden;
        .title {
            font-size: 22px;
            color: #303030;
            font-weight: 700;
            line-height: 1;
            a{
                &:hover{
                    color: var(--mt-color-theme-primary);
                }
            }
        }
        span {
            font-family: var(--mt-ff-body);
            font-weight: 400;
            line-height: 1;
            text-transform: uppercase;
        }
    }
}

.team-carousel {
    padding-bottom: 80px;
    .swiper-pagination {
        line-height: 1;
    }
}

// Team 2

.team-section-2{
    @include breakpoint(md){
        margin-top: -30px;
        position: relative;
        z-index: 2;
    }
    @include breakpoint(sm){
        margin-top: -30px;
    }
}

.team-carousel-2{
    position: relative;
    padding-bottom: 120px;
    @include breakpoint(sm){
        padding-bottom: 90px;
    }
    .swiper-wrapper .swiper-slide:nth-child(2n+1){
        .team-box{
            padding-top: 25px;
            @include breakpoint(sm){
                padding-top: 0;
            }
        }
    }
}

.team-box{
    position: relative;
    .team-thumb{
        margin: 0 auto;
        margin-bottom: -130px;
        position: relative;
        z-index: 2;
        border-radius: 50%;
        overflow: hidden;
        img{
            width: 100%;
        }
    }
    .team-content{
        position: relative;
        padding: 150px 50px 35px;
        border: 1px solid #2b2b2d;
        overflow: hidden;
        z-index: 1;
        @include transition(all 0.3s ease-in-out);
        &:after,
        &:before{
            background-color: var(--mt-color-theme-secondary);
            content: "";
            height: 60px;
            width: 60px;
            border-radius: 50%;
            position: absolute;
            bottom: -60px;
            right: -60px;
            z-index: 1;
            visibility: hidden;
            opacity: 0;
            @include transition(all 0.3s ease-in-out);
        }
        &:after{
            right: auto;
            left: -60px;
        }
        .title{
            color: var(--mt-color-common-white);
            font-weight: 700;
            line-height: 1;
            margin-bottom: 10px;
            @include breakpoint(md){
                font-size: 18px;
            }
        }
        span{
            font-family: var(--mt-ff-body);
            color: var(--mt-color-common-white);
            font-size: 16px;
            line-height: 1;
            font-weight: 400;
            @include transition(all 0.3s ease-in-out);
            @include breakpoint(md){
                font-size: 14px;
            }
        }
    }
    .team-social {
        position: absolute;
        bottom: -60px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;
        .expand {
            background-color: var(--mt-color-theme-primary);
            color: var(--mt-color-common-white);
            font-size: 18px;
            height: 40px;
            width: 40px;
            border-radius: 50%;
            @include flex-center;
            @include transition(all 0.3s ease-in-out);
            cursor: pointer;
            position: absolute;
            bottom: 40px;
            left: 50%;
            transform: translateX(-50%);
            &:hover {
                background-color: var(--mt-color-theme-secondary);
                color: var(--mt-color-heading-primary);
            }
        }
        .social-list {
            list-style: none;
            display: flex;
            align-items: center;
            li {
                visibility: hidden;
                opacity: 0;
                transition: all 0.5s cubic-bezier(0.1, 0.75, 0.25, 1);
                a {
                    background-color: var(--mt-color-common-white);
                    width: 40px;
                    height: 40px;
                    border-radius: 50%;
                    font-size: 15px;
                    @include flex-center;
                    @include transition(all 0.3s ease-in-out);
                    &:hover {
                        background-color: var(--mt-color-theme-primary);
                        color: var(--mt-color-common-white);
                    }
                }
                &:not(:last-of-type) {
                    margin-right: 5px;
                }
                &:nth-child(1) {
                    transition-delay: 100ms;
                }
                &:nth-child(2) {
                    transition-delay: 150ms;
                    margin-right: 10px;
                }
                &:nth-child(3) {
                    transition-delay: 200ms;
                    margin-left: 10px;
                }
                &:nth-child(4) {
                    transition-delay: 250ms;
                }
            }
        }
        &:hover {
            .social-list li {
                visibility: visible;
                opacity: 1;
            }
        }
    }
    &:hover{
        .team-content{
            background-color: var(--mt-color-theme-primary);
            &:before{
                visibility: visible;
                opacity: 1;
                right: -20px;
                bottom: -20px;
            }
            &:after{
                visibility: visible;
                opacity: 1;
                left: -20px;
                bottom: -20px;
            }
        }
        .team-social{
            .expand{
                background-color: var(--mt-color-common-white);
                color: var(--mt-color-theme-primary);
            }
        }
    }
}

.team-service-wrap{
    padding-top: 100px;
    margin-bottom: -90px;
    position: relative;
    z-index: 2;
    @include breakpoint(sm){
        padding-top: 60px;
    }
    .team-service{
        background-color: var(--mt-color-theme-primary);
        display: grid;
        align-items: center;
        grid-template-columns: 90px 1fr;
        grid-gap: 25px;
        padding: 50px 40px;
        @include transition(all 0.3s ease-in-out);
        border: 1px solid transparent;
        @include breakpoint(md){
            grid-template-columns: 1fr;
            padding: 30px;
        }
        .icon-box{
            background-color: var(--mt-color-common-white);
            width: 90px;
            height: 90px;
            @include flex-center;
            border-radius: 5px;
            @include transition(all 0.3s ease-in-out);
        }
        .team-service-content{
            .title{
                font-size: 22px;
                color: var(--mt-color-common-white);
                @include breakpoint(md){
                    font-size: 21px;
                }
            }
            p{
                color: var(--mt-color-common-white);
                margin-bottom: 0;
            }
        }
        &.item-1{
            background-color: var(--mt-color-border-3);
            border: 1px solid #2b2b2d;
            .icon-box{
                background-color: var(--mt-color-theme-secondary);
            }
        }
    }
    &.wrap-2{
        margin: 0;
        padding: 0;
        padding-bottom: 90px;
    }
}

.team-page,
.about-team{
    .team-box{
        .team-content{
            border: 1px solid #dddddd;
            span,
            .title a{
                color: var(--mt-color-heading-primary);
            }
        }
        &:hover{
            .team-content{
                span,
                .title a{
                    color: var(--mt-color-common-white);
                }
            }
        }
        .team-social{
            .social-list li a{
                border: 1px solid #ddd;
            }
        }
    }
}

.about-team{
    padding-bottom: 0;
    @include breakpoint(md){
        margin-top: 0;
    }
    .team-carousel-2{
        @include breakpoint(md){
            padding-bottom: 90px;
        }
    }
}

.team-page{
    padding-bottom: 60px;
    margin-top: 0;
    .team-box{
        margin-bottom: 60px;
    }
}

/* Team Details */
.team-details-img{
    height: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
    @include breakpoint(md){
        height: auto;
        margin-bottom: 40px;
    }
    img{
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
    .shape{
        background-color: var(--mt-color-theme-secondary);
        height: 140px;
        width: 140px;
        border-radius: 50%;
        top: -70px;
        right: -70px;
        position: absolute; 
        &.bottom{
            background-color: var(--mt-color-theme-primary);
            top: auto;
            right: auto;
            bottom: -70px;
            left: -70px;
        }
    }
}

.team-author-details{
    .title{
        font-weight: 700;
        margin-bottom: 15px;
    }
    .author-box-wrap{
        border: 1px solid var(--mt-color-border-1);
        border-radius: 20px;
        .author-item{
            padding: 20px 40px;
            &:not(:last-of-type){
                border-bottom: 1px solid var(--mt-color-border-1);
            }
            .item-title{
                font-family: var(--mt-ff-body);
                color: var(--mt-color-text-body);
                font-size: 16px;
                font-weight: 400;
                margin-bottom: 0;
            }
            &.desc{
                .item-title{
                    max-width: 550px;
                    width: 100%;
                    line-height: 1.7;
                }
            }
            &.experiance{
                span{
                    margin-left: 10px;
                }
            }
            &.social{
                @include flex-vertical-center;
                ul{
                    margin-left: 20px;
                    list-style: none;
                    @include flex-vertical-center;
                    li{
                        &:not(:last-of-type){
                            margin-right: 20px;
                        }
                        i{
                            color: var(--mt-color-theme-primary);
                        }
                        &:nth-child(2){
                            i{
                                color: var(--mt-color-theme-secondary);
                            }
                        }
                        &:nth-child(3){
                            i{
                                color: var(--mt-color-common-pink);
                            }
                        }
                        &:nth-child(4){
                            i{
                                color: var(--mt-color-common-green);
                            }
                        }
                    }
                }
            }
        }
    }
}

.team-details-bottom{
    margin-top: 40px;
    p{
        margin-bottom: 30px;
    }
    .team-skill-wrap{
        margin-bottom: 40px;
        .skills-items{
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            grid-gap: 30px;
            @include breakpoint (sm){
                grid-template-columns: 1fr;
            }
            .skills-item{
                &:not(:last-of-type){
                    margin-bottom: 0;
                }
            }
        }
    }
}

.team-counter{
    .counter-wrap{
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr;
        row-gap: 24px;
        padding-bottom: 100px;
        border-bottom: 1px solid var(--mt-color-border-1);
        @include breakpoint(md){
            grid-template-columns: repeat(2, 1fr);
            padding-bottom: 70px;
        }
        @include breakpoint(sm){
            grid-template-columns: 1fr;
            padding-bottom: 50px;
        }
        .counter-item{
            box-shadow: none;
            border: 1px dashed var(--mt-color-border-1);
        }
    }
}

/* !END: Theme Team CSS */
