/**=====================
    Home Section scss
==========================**/
.home-section {
    position: relative;
    background-color: $section-bg;
    padding-bottom: 38px;
    padding-top: 100px;
    z-index: 0;

    body.dark & {
        background-color: #252934;
    }

    [dir="rtl"] & {
        height: auto;
    }

    @media (max-width:1199px) {
        height: auto;
    }

    .home-icon {
        position: absolute;
        transform: scaleY(-1);
        z-index: -1;
        bottom: 0;
        left: 0;
        width: 100%;
        opacity: 0.012;
    }

    .home-slider {
        margin-top: calc(34px + (80 - 34) * ((100vw - 320px) / (1920 - 320)));

        .service-slider {
            &:has(.swiper-wrapper:empty) {
                display: none;
                height: 0;
            }

            .swiper-wrapper {
                transition-timing-function: linear;

                &:has(&:empty) {
                    display: none;
                    height: 0;
                }

                @media (max-width: 991.98px) {
                    height: 332px;
                }

                @media (max-width: 575.98px) {
                    height: 300px;
                }

                &:empty {
                    display: none;
                }

                .swiper-slide {
                    position: relative;

                    .service-card {
                        height: 100%;
                        border-radius: 12px;
                        display: flex;
                        flex-direction: column-reverse;
                        gap: 9px;
                        overflow: hidden;
                        position: relative;

                        .img-box {
                            height: 100%;

                            img {
                                border-radius: 12px;
                                object-fit: cover;
                                aspect-ratio: 23/25;
                            }
                        }

                        .service-content {
                            position: absolute;
                            bottom: 0;
                            left: 0;
                            width: 100%;
                            font-size: 18px;
                            background: linear-gradient(0deg, $title-color 21%, rgba($title-color, 0) 100%);
                            color: $white;
                            margin: 0;
                            padding: 50px 10px 8px;
                            -webkit-line-clamp: 1;
                            -webkit-box-orient: vertical;
                            display: -webkit-box;
                            overflow: hidden;

                            span {
                                text-align: center;
                                position: relative;
                                word-break: break-all;
                                overflow: hidden;
                                text-overflow: ellipsis;
                                display: -webkit-box;
                                -webkit-line-clamp: 1;
                                -webkit-box-orient: vertical;
                            }
                        }
                    }
                }
            }
        }
    }

    .home-contain {
        padding-top: calc(36px + (73 - 36) * ((100vw - 320px) / (1920 - 320)));
        text-align: center;
        margin: 0 auto;

        h1 {
            font-size: calc(30px + (62 - 30) * ((100vw - 320px) / (1920 - 320)));
            line-height: 1.2;
            width: 66%;
            margin: auto;
            font-weight: 600;
            text-transform: none;
            background: var(--text-gradient-color);
            background-size: 200% auto;
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: gradientMove 2.3s linear infinite;

            @media (max-width: 945px) {
                width: 87%;
            }

            @media (max-width: 586.98px) {
                width: 100%;
            }
        }

        p {
            color: $light-color;
            font-size: calc(16px + (20 - 16) * ((100vw - 320px) / (1920 - 320)));
            padding-top: 6px;
            width: 68%;
            line-height: 1.7;
            margin: 0 auto;

            body.dark & {
                color: rgba($white, 0.8);
            }

            @media (max-width: 1660px) {
                width: 75%;
            }

            @media (max-width: 1450px) {
                width: 90%;
            }

            @media (max-width: 1150px) {
                width: 100%;
            }
        }

        .home-animation {
            position: relative;
            line-height: 1;
            margin-left: 35px;
            text-transform: uppercase;
            font-size: calc(22px + (60 - 22) * ((100vw - 320px) / (1920 - 320)));
            letter-spacing: 2px;
            font-weight: 900;
            background: linear-gradient(to right,
                    rgba(251, 64, 64, 1) 20%, rgba(255, 84, 156, 1) 30%, rgba(114, 94, 254, 1) 70%, rgba(36, 119, 255, 1) 80%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            text-fill-color: transparent;
            background-size: 150% auto;
            animation: textShine 1s ease-in-out infinite alternate;

            [dir="rtl"] & {
                margin-left: unset;
                margin-right: 35px;
            }

            .shape {
                border-radius: 35px;
                position: absolute;
                top: -21px;
                left: -27px;
                z-index: -1;
                @include pseudowh($width: calc(375px + (513 - 375) * ((100vw - 991px) / (1920 - 991))), $height: calc(81px + (108 - 81) * ((100vw - 991px) / (1920 - 991))));

                [dir="rtl"] & {
                    left: unset;
                    right: -27px;
                }

                @media (max-width: 991.98px) {
                    @include pseudowh($width: calc(237px + (530 - 237) * ((100vw - 320px) / (1920 - 320))), $height: calc(46px + (90 - 46) * ((100vw - 320px) / (1920 - 320))));
                    top: -12px;
                    left: -23px;

                    [dir="rtl"] & {
                        left: unset;
                        right: -23px;
                    }
                }
            }

            @media (max-width: 991.98px) {
                margin-top: 25px;
                margin-left: 0;

                [dir="rtl"] & {
                    margin-left: unset;
                    margin-right: 0;
                }
            }
        }
    }
}

.no-data-found {
    padding: calc(38px + (70 - 38) * ((100vw - 320px) / (1920 - 320)));
    text-align: center;
    background-color: $section-bg;
    width: 100%;
    border-radius: 6px;

    body.dark & {
        background-color: #252934;
    }

    .no-data-img {
        margin-bottom: 25px;
    }

    p {
        line-height: 1.3;
        font-size: calc(20px + (24 - 20) * ((100vw - 320px) / (1920 - 320)));
        font-weight: 500;
    }

    &.category-no-data {
        margin-top: calc(20px + (50 - 20) * ((100vw - 320px) / (1920 - 320)));
    }
}