@use "../../utils" as *;

/*----------------------------
testimonial section design
------------------------------*/
.td-testimonial {
    background: #262626;
    padding: 80px 0 40px 0;
    position: relative;
    overflow: hidden;

    &-servicePage {
        margin-top: 100px;

        @media #{$lg,$md} {
            margin-top: 70px;
        }

        @media #{$xs} {
            margin-top: 60px;
        }
    }

    @media #{$lg,$md} {
        padding: 60px 0 40px 0;
    }

    @media #{$xs} {
        padding: 40px 0 40px 0;
    }

    &-wrapper {
        position: relative;
        z-index: 2;
    }

    &-title {
        color: var(--td-white);
        font-size: 40px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 50px;

        @media #{$xs} {
            margin-bottom: 35px;
        }

        span {
            color: var(--td-theme-color);
        }
    }

    &-slider {
        &-card {
            padding-bottom: 80px;

            @media #{$xl,$lg,$md} {
                padding-bottom: 50px;
            }

            @media #{$xs} {
                padding-bottom: 40px;
            }

            &-img {
                img {
                    border-radius: 16px;
                }

                position: relative;

                a {
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    width: 46px;
                    height: 46px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    background-color: var(--td-white);
                    border-radius: 50%;
                    isolation: isolate;
                    z-index: 1;
                    transition: background-color 0.3s ease-in-out;

                    &:hover {
                        background-color: var(--td-theme-color);
                    }
                }

                span {
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    display: inline-block;
                    width: 60px;
                    height: 60px;
                    border-radius: 50%;
                    background: rgba(255, 255, 255, 0.15);
                    backdrop-filter: blur(2px);
                }
            }

            &-text {
                h4 {
                    color: var(--td-white);
                    font-size: 20px;
                    font-weight: 700;
                    margin-bottom: 10px;
                    margin-top: 20px;
                    text-align: left;

                    @media #{$md,$xs} {
                        font-size: 16px;
                    }
                }

                p {
                    color: rgba(255, 255, 255, 0.60);
                    font-size: 14px;
                    font-weight: 400;
                    text-align: left;

                    @media #{$md,$xs} {
                        font-size: 14px;
                    }
                }
            }
        }
    }

    &-elements {
        &-3d {
            position: absolute;
            top: 100px;
            inset-inline-start: 33px;
            z-index: 1;
            animation: rotate-infinite 20s infinite ease-in-out;

            img {
                @media #{$xxlm,$xl,$lg,$md,$xs} {
                    display: none;
                }
            }
        }

        &-hex {
            position: absolute;
            bottom: 25px;
            inset-inline-start: 25px;
            z-index: 1;
            animation: move-bottom-top 5s infinite ease-in-out;

            img {
                @media #{$xxlm,$xl,$lg,$md,$xs} {
                    display: none;
                }
            }
        }

    }

    &-2 {
        background-color: var(--td-theme-bg-color);
        padding: 70px 0;
        position: relative;
        overflow: hidden;

        @media #{$lg,$md} {
            padding: 50px 0;
        }

        @media #{$xs} {
            padding: 30px 0;
        }

        &-box {
            position: relative;
            z-index: 20;

            &-card {
                &-text {
                    margin-bottom: 40px;

                    @media #{$md,$xs} {
                        margin-bottom: 20px;
                    }

                    p {
                        color: rgba(255, 255, 255, 0.80);
                        font-size: 26px;
                        font-weight: 400;
                        line-height: 1.5;
                        text-align: left;
                        width: 80%;

                        @include rtl{
                            text-align: right;
                        }

                        @media #{$xl} {
                            font-size: 22px;
                            width: 90%;
                        }

                        @media #{$lg} {
                            font-size: 20px;
                            width: 100%;
                        }

                        @media #{$md} {
                            font-size: 18px;
                            width: 100%;
                        }
                        @media #{$xs} {
                            font-size: 18px;
                            width: 100%;
                        }
                    }
                }

                &-userInfo {
                    text-align: left;

                    @include rtl{
                        text-align: right;
                    }

                    h5 {
                        color: var(--td-white);
                        font-size: 18px;
                        font-weight: 600;
                        margin-bottom: 6px;

                        @media #{$xl} {
                            font-size: 16px;
                        }

                        @media #{$lg} {
                            font-size: 16px;
                            margin-bottom: 5px;
                        }

                        @media #{$md,$xs} {
                            font-size: 15px;
                            margin-bottom: 5px;
                        }
                    }

                    p {
                        color: rgba(255, 255, 255, 0.60);
                        font-size: 14px;
                        font-weight: 400;

                        @media #{$xl} {
                            font-size: 12px;
                        }

                        @media #{$lg,$md,$xs} {
                            font-size: 12px;
                        }
                    }
                }

                &-img {
                    padding: 24px;

                    @media #{$xs} {
                        padding: 10px;
                    }

                    img {
                        -webkit-box-shadow: 0px 0px 25px 0px rgba(255, 255, 255, 0.3);
                        -moz-box-shadow: 0px 0px 25px 0px rgba(255, 255, 255, 0.3);
                        box-shadow: 0px 0px 25px 0px rgba(255, 255, 255, 0.3);
                        border-radius: 16px;

                        @media #{$xs} {
                            -webkit-box-shadow: 0px 0px 10px 0px rgba(255, 255, 255, 0.3);
                            -moz-box-shadow: 0px 0px 10px 0px rgba(255, 255, 255, 0.3);
                            box-shadow: 0px 0px 10px 0px rgba(255, 255, 255, 0.3);
                        }
                    }
                }
            }

            &-swipperMoveButton {
                display: flex;
                align-items: center;
                gap: 20px;

                @media #{$lg} {
                    gap: 10px;
                }
            }
        }

        &-element {
            position: absolute;
            inset-inline-start: 1%;
            top: 9%;
            z-index: 2;
            animation: rotate-infinite 20s infinite ease-in-out;

            @media #{$xxlm} {
                width: 100px;
            }

            @media #{$xl,$lg,$md,$xs} {
                display: none;
            }
        }
    }
}

.swiper-horizontal>.swiper-pagination-progressbar,
.swiper-pagination-progressbar.swiper-pagination-horizontal,
.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,
.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite {
    width: 100%;
    height: var(--swiper-pagination-progressbar-size, 4px);
    inset-inline-start: 0;
    top: unset;
    bottom: 0;
}

.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background: var(--td-theme-color, var(--td-theme-color));
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: scale(0);
    transform-origin: left top;
}

.swiperTestimonial-button {
    height: 44px;
    width: 44px;
    background-color: var(--td-theme-color-2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease-in-out;

    svg{
        @include rtl{
            transform: rotate(180deg);
        }
    }

    @media #{$lg,$md,$xs} {
        height: 34px;
        width: 34px;
    }
}

.swiperTestimonial-button.swiper-button-disabled {
    background-color: rgba(255, 255, 255, 0.08);
}