/*==========================================================================
Team CSS
==========================================================================*/
.team__area {
    &-item {
        &-image {
            position: relative;
            z-index: 1;
            &::before {
                content: '';
                position: absolute;
                width: 100%;
                height: 20%;
                top: 0;
                left: 0;
                background: var(--bg-heading-color);
                opacity: 0;
                transition: 0.4s;
            }
            &-icon {
                position: absolute;
                bottom: 70px;
                right: 30px;
                z-index: 1;      
                span {
                    color: var(--text-white);
                    height: 40px;
                    width: 40px;
                    background: var(--primary-color-2);
                    line-height: 40px;
                    text-align: center;
                    font-size: 14px;
                    border-radius: 50%;
                    display: inline-block;
                    transition: 0.4s;
                    cursor: pointer;
                }
                &.page {
                    span {
                        background: var(--primary-color-1);
                    }
                    .team__area-item-image-social ul li a i:hover {
                        background: var(--primary-color-1);
                    }                    
                }
                .team__area-item-image-social {
                    position: absolute;
                    bottom: 50px;
                }
                &:hover {
                    .team__area-item-image-social {
                        opacity: 1;
                        visibility: visible;
                    }
                }
            }
            &-social {
                position: absolute;
                left: 0;
                opacity: 0;
                visibility: hidden;
                transition: 0.4s;
                ul {
                    padding: 0;
                    margin: 0;
                    li {
                        list-style: none;
                        margin-bottom: 8px;
                        &:last-child {
                            margin: 0;
                        }
                        a {
                            i {                                
                                display: inline-block;
                                height: 40px;
                                width: 40px;
                                text-align: center;
                                line-height: 40px;
                                font-size: 14px;
                                border-radius: 50%;
                                background: var(--bg-white);
                                color: var(--text-heading-color);
                                transition: 0.4s;
                                &:hover{
                                    background: var(--primary-color-2);
                                    color: var(--text-white);
                                }
                            }
                        }
                    }
                }
            }
            img {
                width: 100%;
            }
        }
        &-content {
            padding: 22px;
            margin: 0 30px;
            margin-top: -60px;
            background: var(--bg-white);
            position: relative;
            z-index: 1;
            text-align: center;
            box-shadow: var(--box-shadow-1);
            .text-eight {
                font-weight: 600;
            }
            h5 a {
                transition: 0.4s;
                &:hover {
                    color: var(--primary-color-2);
                }
            }
            &.page {
                h5 a:hover {
                    color: var(--primary-color-1);
                }
            }
        }
        &:hover {
            .team__area-item-image::before {
                height: 100%;
                opacity: 0.7;
                z-index: 1;
            }
        }
    }
    h6 {
        color: var(--color-2);
        font-size: 18px;
        line-height: 30px;
        a {
            color: var(--primary-color-1);
            background: linear-gradient(to right, currentcolor 0%, currentcolor 100%) 0px 95%/0px 1px no-repeat;
            transition: all 600ms ease;
            &:hover {
                background-size: 100% 1px;                
            }
        }        
    }
}
/*==========================================================================
Team Two CSS
==========================================================================*/
.team__two {    
    &-item {
        text-align: center;
        &-image {
            position: relative;
            z-index: 1;
            overflow: hidden;
            &::before {
                position: absolute;
                top: 0;
                left: -75%;
                z-index: 0;
                display: block;
                content: '';
                width: 30%;
                height: 100%;
                transform: skewX(-25deg);
                background: var(--bg-white);
                opacity: 0.4;
                z-index: 1;
            }
            img {
                width: 100%;
                transition: all 1.5s cubic-bezier(0, 0, 0.2, 1);
            }
        }
        &-content {
            margin: 0 20px;
            padding: 30px 25px;
            transition: 0.4s;
            position: relative;
            z-index: 2;
            h4 {
                transition: 0.4s;
            }
            .text-eight {
                color: var(--primary-color-1);
                transition: 0.4s;
                font-weight: 600;
            }
            &-social {            
                margin-top: 10px;
                transition: 0.4s; 
                opacity: 0;
                ul {
                    padding: 0;
                    margin: 0;
                    li {
                        list-style: none;
                        display: inline-block;
                        margin-right: 15px;
                        &:last-child {
                            margin: 0;
                        }
                        a {
                            display: inline-block;
                            color: var(--text-white);
                        }
                    }
                }
            }             
        }
        &:hover {
            .team__two-item {
                &-image {                    
                    &::before {
                        animation: animation 0.95s;
                    }
                    img {
                        transform: scale3d(1.1, 1.1, 1.1); 
                    }
                }
                &-content {
                    background: var(--primary-color-1);
                    transform: translateY(-50%);
                    box-shadow: 0 0 60px rgba(0, 0, 0, 0.05);
                    h4 {
                        color: var(--text-white);
                    }
                    .text-eight {
                        color: var(--text-white);
                    }
                    &-social {
                        opacity: 1;
                    }            
                }
            }
        } 
    }
}
/*==========================================================================
Team Three CSS
==========================================================================*/
.team__three {
    &-item {
        &-image {
            position: relative;
            z-index: 1;
            border-radius: 6px;
            &::before {
                content: '';
                position: absolute;
                width: 100%;
                height: 60%;
                bottom: 0;
                left: 0;
                background: linear-gradient(180deg, rgba(5, 6, 8, 0) 0%, var(--text-heading-color) 100%);
                transition: 0.5s;                
                border-radius: 6px;
                
            }
            &::after {
                content: '';
                position: absolute;
                width: 100%;
                height: 60%;
                bottom: 0;
                left: 0;
                background: linear-gradient(180deg, rgba(249, 77, 29, 0) 0%, var(--primary-color-1) 100%);
                transition: 0.5s;
                opacity: 0;
                border-radius: 6px;
            }
            img {
                width: 100%;                
                border-radius: 6px;
            }
            &-info {
                display: flex;
                align-items: center;
                justify-content: space-between;
                position: absolute;
                left: 0;
                bottom: 0;
                width: 100%;
                padding: 40px;
                z-index: 1;
                &-name {
                    .text-eight {
                        color: var(--text-white);
                        font-weight: 500;
                    }
                    h4 a {
                        color: var(--text-white);
                    }
                }
                &-icon {
                    position: relative;
                    z-index: 1;
                    &::after {
                        content: '';
                        position: absolute;
                        top: 0;
                        left: 50%;
                        transform: translateX(-50%);
                        width: 17px;
                        height: 15px;
                        background-image: url('../../assets/img/icon/union.png');
                        background-position: center;
                        background-repeat: no-repeat;
                        background-size: cover;
                        opacity: 0;
                        transition: 0.6s;
                    }
                    span {
                        color: var(--primary-color-1);
                        height: 45px;
                        width: 45px;
                        line-height: 45px;
                        background: var(--bg-white);
                        text-align: center;
                        font-size: 14px;
                        border-radius: 50%;
                        display: inline-block;
                        transition: 0.4s;
                        cursor: pointer;
                    }
                    .team__three-item-image-info-social {
                        position: absolute;
                        bottom: 60px;
                    }
                    &:hover {
                        &::after {
                            top: -9px;
                            opacity: 1;
                        }
                        .team__three-item-image-info-social {
                            &::before {
                                height: 100%;
                            }
                            ul {
                                opacity: 1;
                                transition: transform 0.5s ease 0.5s, opacity 0.5s ease 0.5s;
                                transform: translateY(0);
                                visibility: visible;
                            }
                        }
                    }
                }
                &-social {
                    position: absolute;
                    left: 0;
                    padding: 15px 0;
                    &::before {
                        content: '';
                        position: absolute;
                        bottom: 0;
                        left: 0;
                        width: 100%;
                        height: 0;
                        border-radius: 6px;
                        background: var(--primary-color-1);
                        z-index: -1;
                        transition: 0.5s;
                    }
                    ul {
                        visibility: hidden;
                        opacity: 0;
                        transition: transform 0.5s ease 0s, opacity 0.5s ease 0s;
                        transform: translateY(-30px);
                        padding: 0;
                        margin: 0;
                        li {
                            list-style: none;
                            &:last-child {
                                margin: 0;
                            }
                            a {
                                overflow: hidden;
                                i {
                                    width: 45px;
                                    line-height: 35px;
                                    text-align: center;
                                    font-size: 14px;
                                    color: var(--text-white);
                                }
                            }
                        }
                    }
                }
            }
        }
        &:hover {
            .team__three-item-image {
                &::before {
                    opacity: 0;
                }
                &::after {
                    opacity: 1;
                }
            }
        }
    }
}
/*==========================================================================
Team Details CSS
==========================================================================*/
.team__single {
    &-left {
        position: sticky;
        top: 130px;
        margin-right: 30px;
        &-thumb {
            position: relative;
            &-social {
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
                bottom: 30px;  
                width: 100%;
                text-align: center;                           
                ul {
                    padding: 0;
                    margin: 0;
                    display: flex;
                    justify-content: center;
                    gap: 8px;                    
                    li {
                        list-style: none;
                        display: inline-block;
                        a {
                            display: inline-flex;
                            transition: all ease .4s;
                            opacity: 0;
                            transform: translateY(20px);
                            i {
                                display: inline-flex;
                                justify-content: center;
                                align-items: center;
                                width: 55px;
                                height: 55px;
                                border-radius: 50%;
                                background: var(--bg-white);
                                transition: 0.4s;
                                color: var(--primary-color-1);
                            }
                            &:hover i {
                                background: var(--primary-color-1);
                                color: var(--text-white);
                            }
                        }
                        &:nth-child(1) a {    
                            transition-delay: .1s;
                        }
                        &:nth-child(2) a {    
                            transition-delay: .2s;
                        }
                        &:nth-child(3) a {    
                            transition-delay: .3s;
                        }
                        &:nth-child(4) a {    
                            transition-delay: .4s;
                        }
                    }
                }
            }
        }
        &-info {
            padding: 40px;
            background: var(--color-6);
            border: 1px solid var(--border-color-4);
            margin-bottom: 30px;
            > span {
                font-weight: 500;
                color: var(--primary-color-1);
                margin-top: -7px;
                display: block;            
            }
            h3 {
                margin-bottom: 35px;
            }
            p {
                margin-bottom: 25px;
            }
            &-contact {
                &-item {
                    display: flex;
                    align-items: center;
                    gap: 20px;
                    margin-bottom: 25px;
                    background: var(--bg-white);
                    border-radius: 10px;
                    &:last-child {
                        margin: 0;
                    }
                    i {
                        width: 70px;
                        height: 90px;
                        display: inline-flex;
                        align-items: center;
                        justify-content: center;
                        border-radius: 10px;
                        font-weight: 400;
                        font-size: 28px;
                        color: var(--text-white);
                        background: var(--primary-color-1);                
                    }
                    &-info {
                        span {
                            font-size: 15px;
                            font-weight: 500;
                        }
                        h5 {
                            text-transform: lowercase;
                            a {
                                transition: 0.4s;
                                &:hover {
                                    color: var(--primary-color-1);
                                }
                            }
                        }
                    }
                }
            }
        }
        &:hover {
            .team__single-left-thumb-social ul li a {
                transform: translateY(0);
                opacity: 1;
            }
        }
    }
    &-right {
        &-experience {
            margin-bottom: 40px;
            h3 {
                margin-bottom: 10px;
            }
            p {
                &:last-child {
                    margin: 0;
                }
            }
        }
        &-skill {
            h3 {
                margin-bottom: 10px;
            }
            p {
                margin-bottom: 30px;
            }            
        }
        &-form {
            margin-top: 50px;
            padding: 50px 30px;
            background: var(--color-6);
            border: 1px solid var(--border-color-4);
            &-select {
                position: relative;
                z-index: 1;
                &::before {
                    content: "\f88c";
                    font-family: 'Font Awesome 5 Pro';
                    font-weight: 400;     
                    position: absolute;
                    right: 15px;
                    top: 50%;
                    transform: translateY(-50%);
                    color: var(--primary-color-1);                
                }
                select {
                    width: 100%;
                    height: 60px;
                    background: var(--bg-white);
                    padding: 0 15px;
                    color: var(--body-color);
                    border-radius: 5px;
                    appearance: none;
                    &:focus {
                        outline: none;
                    }
                }
            }
            .btn-one {
                background: var(--bg-heading-color);
                &::after,
                &::before {
                    background: var(--primary-color-1);
                }
            }
        }
    }
}
@media (max-width: 1399px) {
    .team__area {
        &-item {
            &-image {
                &-icon {
                    bottom: 55px;
                }
            }
            &-content {
                margin-top: -45px;
            }
        }
    }
}
@media (max-width: 991px) {
    .team__single-left {
        margin: 0;
        &-info {
            padding: 35px 25px;
        }
    }
}
@media (max-width: 575px) {
    .team__single-form {
        padding: 40px 20px;
    }
    .team__single-left-info-contact-item {
        gap: 10px;
        i {
            width: 60px;
            height: 85px;
            font-size: 22px;
        }
        &-info {
            span {
                font-size: 14px;                
            }
            h5 {
                font-size: 16px;
                line-height: 26px;
                font-weight: 500;
            }
        }
    }
}