.team-section {
    position: relative;

    .top-shape {
        position: absolute;
        top: 0;
        left: 0;
    }

    .love-shape {
        position: absolute;
        bottom: 0;
        left: 30px;

        @include breakpoint (max-xxl){
            left: 30px;
        }

        @include breakpoint (max-xl){
            display: none;
        }
    }

    .frame-shape {
        position: absolute;
        top: 45%;
        right: 0;
        animation: rounded 5s linear infinite;

        @include breakpoint (max-xl){
            display: none;
        }
    }
}

.team-items {
    margin-top: 30px;

    .team-image {
        position: relative;

        img {
            @include imgw;
            border-radius: 12px;
        }

        .shape-img {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
        }

        .social-profile {
            position: absolute;
            right: 20px;
            top: 20px;
            content: "";
            -webkit-transition: all .4s ease-in-out;
            transition: all .4s ease-in-out;
            z-index: 2;
            display: inline-block;
            overflow: hidden;
            z-index: 99;

            ul {
                transform: translateY(-100px);
                transition: all 0.6s ease-in-out;
                opacity: 0;
                visibility: hidden;

                li {
                    margin-bottom: 10px;

                    a {
                        width: 40px;
                        height: 40px;
                        line-height: 43px;
                        text-align: center;
                        font-size: 18px;
                        display: block;
                        background: $white;
                        color: $theme-color;
                        -webkit-transition: all .4s ease-in-out;
                        transition: all .4s ease-in-out;
                        text-align: center;
                        margin: 0 auto;
                        border-radius: 50%;

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

            .plus-btn {
                z-index: 2;
                cursor: pointer;
                width: 40px;
                height: 40px;
                line-height: 40px;
                text-align: center;
                font-size: 18px;
                display: inline-block;
                background: transparent;
                border: 1px solid $white;
                color: $white;
                @include transition;
                border-radius: 50%;
                margin-bottom: 10px;

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

            &:hover {
                ul {
                    transform: translateY(0);
                    opacity: 1;
                    visibility: visible;
                }
            }
        }
    }

    .team-content {
        margin-top: 20px;
        text-align: center;

        h3 {
            margin-bottom: 5px;

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

.team-box-items {
    margin-top: 30px;
    text-align: center;
    position: relative;
    z-index: 9;

    .bg-shape-1 {
        position: absolute;
        top: 29%;
        left: 50%;
        transform: translate(-50%,-50%);
    }

    &::before {
        @include before;
        background-color: $white;
        border-radius: 24px;
        z-index: -1;
        top: 35%;
        height: initial;
    }

    .team-image {
        margin: 0 auto;
        mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 294 294"> <path fill-rule="evenodd" clip-rule="evenodd" d="M147.403 0.00569915C182.119 0.435189 209.656 26.2366 235.076 51.2011C261.845 77.4906 291.257 105.251 293.775 143.756C296.413 184.105 275.546 221.843 248.076 250.036C221.009 277.816 185.15 293.448 147.403 293.984C109.12 294.528 71.5048 281.034 43.9843 252.934C16.0177 224.38 -2.47629 184.728 0.269486 143.756C2.87462 104.884 30.5587 75.4755 57.651 49.0061C83.3487 23.8993 112.392 -0.427445 147.403 0.00569915Z" /></svg>');
        mask-repeat: no-repeat;
        mask-position: center center;
        mask-size: cover;
        position: relative;
        z-index: 9;
        max-width: 295px;

        img {
            @include imgw;
        }
    }

    .team-content {
        padding: 20px  50px;

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

        p {
            margin-bottom: 15px;
            margin-top: 5px;
        }

        .social-icon {
            justify-content: center;
            gap: 20px;
            border-top: 1px solid $border-color;
            padding-top: 20px;

            a {
                color: $text-color;
                font-size: 20px;

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

.team-section-2 {
    position: relative;
    margin-top: 30px;

    .top-shape {
        position: absolute;
        top: -40px;
        left: 0;
        height: 92px;

        img {
            @include imgw;
            object-fit: cover;
        }
    }

    .love-shape {
        position: absolute;
        bottom: 10%;
        left: 30px;

        @include breakpoint (max-xxl){
            left: 30px;
        }

        @include breakpoint (max-xl){
            display: none;
        }
    }

    .frame-shape {
        position: absolute;
        top: 40%;
        right: 0;
        animation: rounded 5s linear infinite;

        @include breakpoint (max-xl){
            display: none;
        }
    }
}

.team-section-3 {
    position: relative;

    .tree-shape {
        position: absolute;
        bottom: 15%;
        left: 0;
    }

    .right-shape {
        position: absolute;
        right: 0;
        top: 10%;
    }

    .bee-shape {
        position: absolute;
        right: 5%;
        top: 15%;
        transform: translateY(-50%);
    }
}

.team-section-4 {
    margin-bottom: -5px;
}

.team-details-wrapper {
    .team-author-items {
        @include flex;
        gap: 30px;
        padding: 30px;
        border: 1px solid $border-color;
        border-radius: 12px;

        @include breakpoint (max-xl){
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
            text-align: center;
        }

        .thumb {
            max-width: 370px;

            img {
                @include imgw;
                border-radius: 10px;
            }
        }

        .content {
            max-width: 700px;

            h2 {
                font-size: 30px;
                margin-bottom: 5px;

                @include breakpoint (max-sm){
                    font-size: 26px;
                }
            }

            span {
                margin-bottom: 20px;
                display: inline-block;

                @include breakpoint (max-sm){
                    margin-bottom: 10px;
                }
            }

            ul {
                margin-top: 20px;
                @include flex;
                gap: 50px;
                border-top: 1px solid $border-color;
                border-bottom: 1px solid $border-color;
                padding: 20px 0;

                @include breakpoint (max-xl){
                    flex-wrap: wrap;
                    gap: 15px;
                    margin-bottom: 20px;
                    margin-top: 20px;
                    justify-content: center;
                }

                li {
                    color: $header-color;

                    i {
                        margin-right: 5px;
                    }

                    .color-star {
                        color: $theme-color;
                    }
                }
            }

            .social-icon {
                margin-top: 40px;
                gap: 15px;
                position: relative;
                z-index: 9;
                
                @include breakpoint (max-xl){
                    justify-content: center;
                    margin-top: 30px;
                }

                @include breakpoint (max-sm){
                    margin-top: 20px;
                }

            a {
                width: 36px;
                height: 36px;
                line-height: 36px;
                text-align: center;
                font-size: 16px;
                display: block;
                color: $theme-color;
                transition: all .4s ease-in-out;
                text-align: center;
                background-color: transparent;
                border: 1px solid $theme-color;

                    &:hover {
                        background-color: $theme-color;
                        color: $white;
                        border: 1px solid transparent
                    }
                }
            }
        }
    }

    .details-info-items {
        padding: 80px 0;
        border-bottom: 1px solid $border-color;

        @include breakpoint (max-md){
            padding: 50px 0;
        }

        @include breakpoint (max-sm){
            padding: 40px 0;
        }

        .info-content {
            h2 {
                font-size: 30px;
                margin-bottom: 15px;
            }
        }

        .progress-wrap {
            margin-left: 30px;

            @include breakpoint (max-lg){
                margin-left: 0;
            }

            .pro-items {
                width: 100%;

                &:not(:last-child){
                    margin-bottom: 20px;
                }
                .pro-head {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    margin-bottom: 10px;

                    .title {
                        font-size: 16px;
                        color: $header-color;
                    }
                    
                    .point {
                        font-size: 16px;
                        color: $header-color;
                    }
                }
                .progress {
                    background: $bg-color-2;
                    justify-content: flex-start;
                    border-radius: 100px;
                    align-items: center;
                    position: relative;
                    display: flex;
                    height: 8px;
                    width: 100%;
                }
                
                .progress-value {
                    animation: load 3s normal forwards;
                    border-radius: 0;
                    background: $theme-color;
                    height: 8px;
                    width: 0;
                }
                .style-two{
                    animation: load2 3s normal forwards;
                }
                .style-three{
                    animation: load3 3s normal forwards;
                }
                @keyframes load {
                    0% { width: 0; }
                    100% { width: 90%; }
                }
                @keyframes load2 {
                    0% { width: 0; }
                    100% { width: 70%; }
                }
                @keyframes load3 {
                    0% { width: 0; }
                    100% { width: 55%; }
                }
            }
        }
    }
}