.swiper-wrapper {
    height: auto !important;
}


body {
    background-color: #0A0B0F;
    margin: 0;
    padding: 0px;
}

:root {
    --common-width: 1200px;
}

.website-development-page {
    color: #FFFFFF;

    a {
        color: #fff;
    }

    h1 {
        font-size: 52px;
        line-height: 120%;
        font-weight: 600;
        margin: 0;
    }

    p {
        font-size: 20px;
        margin: 0;
    }

    h2 {
        font-size: 40px;
        line-height: 120%;
        font-weight: 600;
        margin: 0;

    }

    .swiper-wrapper {
        height: auto !important;
    }

    h3 {
        font-size: 24px;
        font-weight: 600;
        margin: 0;
    }

    .container {
        max-width: var(--common-width);
        margin: 0 auto;
        padding: 0 20px;
    }

    a.banner-button {
        display: inline-flex;
        align-items: center;
        background: #845EF7;
        border-radius: 200px;
        text-decoration: none;
        padding: 8px 20px;
        color: #fff;
        font-size: 20px;
        overflow: hidden;
        transition: background 0.3s ease;
        position: relative;
        gap: 10px;

        img {
            width: 30px !important;
            height: 30px !important;
            object-fit: contain;
            transition: transform 0.5s ease;
            transform: translateX(0);
        }
    }


    a.banner-button:hover {
        background: #6f4de4;
    }

    a.banner-button:hover img {
        transform: translateX(105px);
        /* moves right */
    }

    a.banner-button span {
        display: inline-block;
        transition: transform 0.5s ease;
    }

    a.banner-button:hover span {
        transform: translateX(-35px);
    }

    a.bannee-button {
        display: inline-flex;
        align-items: center;
        background: #845EF7;
        border-radius: 200px;
        text-decoration: none;
        padding: 8px 20px;
        color: #fff;
        font-size: 20px;
        overflow: hidden;
        transition: background 0.3s ease;
        position: relative;
        gap: 10px;

        img {
            width: 30px !important;
            height: 30px !important;
            object-fit: contain;
            transition: transform 0.5s ease;
            transform: translateX(0);
        }
    }


    a.bannee-button:hover {
        background: #6f4de4;
    }

    a.bannee-button:hover img {
        transform: translateX(170px) !important;
        /* moves right */
    }

    a.bannee-button span {
        display: inline-block;
        transition: transform 0.5s ease;
    }

    a.bannee-button:hover span {
        transform: translateX(-35px) !important;
    }

    .website-development-page .banner {
        background: url("../images/bg-main.webp") !important;
    }


    .banner {
        background: url('../images/bg-main.webp') !important;
        background-size: cover;
        margin: 0 auto;
        text-align: center;

        .inner {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            height: 80vh;
            gap: 35px;

            p {
                width: 800px;
                margin: 0 auto;
            }

            .point {
                display: flex;
                flex-direction: row;
                justify-content: center;
                align-items: center;
                gap: 30px;

                p {
                    width: max-content;
                    font-size: 14px;
                    backdrop-filter: blur(90px);
                    border-radius: 100px;
                    color: white;
                    padding: 12px 25px;
                    background: url('../images/point.png');
                    background-size: cover;
                    background-repeat: no-repeat;

                }
            }

        }
    }

    .trusted-brands {
        text-align: center;

        h4 {
            font-size: 30px;
            font-weight: 500;
            margin: 0 0 10px;
        }

        .partners {
            overflow: hidden;
            width: 100%;
            padding: 30px 0;
            background: #0A0B0F;
            background: linear-gradient(0deg, rgba(10, 11, 15, 1) 0%, rgba(10, 11, 15, 0.06) 40%);
        }

        .left-to-right,
        .right-to-left {
            overflow: hidden;
            white-space: nowrap;
            display: flex;
            align-items: center;
            margin-bottom: 20px;
            position: relative;
        }

        /* The scrolling wrapper */
        .scroll {
            display: flex;
            align-items: center;
            animation: scroll-left 30s linear infinite;
            gap: 30px;
        }

        /* For opposite direction */
        .right-to-left .scroll {
            animation: scroll-right 30s linear infinite;
        }

        /* Pause animation on hover */
        .left-to-right:hover .scroll,
        .right-to-left:hover .scroll {
            animation-play-state: paused;
        }

        /* Logo style */
        .scroll img {
            height: 60px;
            width: 120px;
            object-fit: contain;
            transition: transform 0.3s ease;
            margin: 10px 20px;
        }

        .scroll img:hover {
            transform: scale(1.1);
        }




    }

    .info {
        background: url('../images/info-bg.webp');
        background-size: cover;
        text-align: center;

        .inner {
            padding: 100px 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 30px;

            h2 {
                width: 800px;

                span {
                    color: #845EF7;
                }
            }

            .info-content {
                display: flex;
                flex-direction: column;
                gap: 40px;
            }

        }

    }

    .how-we-craft {
        .inner {
            padding: 100px 0;

            h2 {
                margin-bottom: 30px;
            }

            .grid-3 {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 30px;
                margin-top: 50px;

                .box {
                    display: flex;
                    flex-direction: column;
                    align-items: end;
                    justify-content: start;
                    gap: 10px;
                    background: url('../images/box-bg.webp');
                    background-size: cover;
                    padding: 20px 0px;
                    border-radius: 20px;
                    border: solid 1px #845EF799;
                    overflow: hidden;

                    img {
                        width: 334px;
                        height: 238px;
                        object-fit: contain;
                    }

                    h3,
                    p {
                        padding: 0 20px;
                        width: 100%;
                    }

                }

                .contact {
                    align-items: center;
                    justify-content: center;
                }
            }
        }
    }

    .whats-standing {
        background: url('../images/bg-3.png');
        background-size: cover;
        height: 178vh;
        padding: 100px 0px;

        .wrapperx {
            display: flex;
            justify-content: space-between;
            flex-direction: column;
            height: 112vh;
            margin-top: 10%;

            .inner {
                display: flex;
                justify-content: space-between;

                .box {
                    display: flex;
                    flex-direction: column;
                    gap: 20px;
                    border-radius: 20px;
                    background: radial-gradient(circle at center, rgb(36 32 52), transparent 80%), #24203447;
                    overflow: hidden;
                    width: 404px !important;
                    padding: 26px;
                    min-height: 220px !important;
                    max-height: 240px !important;

                    p {
                        font-size: 18px;
                        line-height: 24px;
                    }

                }



                .box-last {

                    margin-bottom: 15.5%;
                }


            }

            .in-last {
                height: 56vh;
                align-items: end;
            }
        }
    }

    .development-platfrom {
        background: #0A0B0F;
        padding: 100px 0;

        h2 {
            margin-bottom: 30px;
        }

        .tech-wrap {
            margin-top: 40px;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            position: relative;
            gap: 0;
            --line: rgba(255, 255, 255, 0.27);
            --thickness: 1px;
            border: var(--thickness) solid var(--line);
            background: #1a1a24;

            background-image:
                linear-gradient(to right, var(--line) var(--thickness), transparent 0),
                linear-gradient(to bottom, var(--line) var(--thickness), transparent 0);
            background-size: calc(100% / 4) calc(100% / 3);
            background-repeat: repeat;
        }

        .box {
            width: 100%;
            height: 235px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s ease;
        }

        /* hover background on wrapper → NO flicker */
        .box:hover {
            background: #000;
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.29);
        }

        .box img {
            width: 170px;
            filter: brightness(0) invert(1);
            transition: filter .3s ease, transform .3s ease;
        }

        /* Only remove invert */
        .box:hover img {
            filter: none;
        }

    }

    #index-scope * {
        all: revert;
        /* cancel all outside CSS */
    }


    .developemt-process {
        padding: 100px 0;
        position: relative;

        h2 {
            margin-bottom: 30px;
        }

        .process-wrapper {
            margin-top: 40px;

            .process-item {
                display: flex;
                align-items: center;
                gap: 5px;
                justify-content: center;

                .false {
                    width: 240px !important;

                }

                .icon-1,
                .icon-2 {
                    width: 400px;
                    display: flex;
                    align-items: center;
                    gap: 5px;
                }

                .icon-1 {

                    justify-content: end;
                }

                .icon-2 {
                    justify-content: start;

                }

                .box {
                    width: 400px;
                    background: url('../images/process/box-bg.png');
                    background-size: cover;
                    padding: 40px 30px;
                    border-radius: 8px;

                    h3 {
                        margin-bottom: 20px;
                    }
                }



            }

            .line-abs {
                position: relative;
                width: 100%;
                height: 30px;
                /* same as down-line.svg height */
            }

            .line-abs::after {
                content: "";
                position: absolute;
                left: 50%;
                top: 0px;
                transform: translate(-50%, -36%);
                width: 100%;
                height: 120px;
                background: url(../images/process/down-line.svg) no-repeat center / contain;
            }

        }

    }

    .industry-we-serve {
        padding: 100px 0;

        h2 {
            margin-bottom: 40px;
        }

        .inner {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            justify-content: space-between;
            gap: 20px;

            .box {
                border: 1px solid #845ef76f;
                backdrop-filter: blur(3px);
                background: radial-gradient(circle at center, rgba(132, 94, 247, 0.3), transparent 70%), #211f30;
                border-radius: 20px;
                overflow: hidden;
                padding: 25px;
                text-align: center;
                display: flex;
                align-items: center;
                min-height: 380px;

                .hiden {
                    display: none;
                    transition: all 0.3s ease;

                    h3 {
                        margin-bottom: 30px;
                    }
                }

                img {
                    width: 100%;
                    height: 350px;
                    object-fit: contain;
                }
            }

            .box:hover .hiden {
                display: block;
                transition: all 0.3s ease;

            }

            .box:hover .show {
                display: none;
                transition: all 0.3s ease;

            }
        }
    }

    .case-study {
        .case-wrapper {
            padding: 40px 0;
            background: #0a0a0a;
            color: #fff;
            position: relative;
        }

        .case-arrows {
            position: absolute;
            right: 20px;
            top: -20px;
            z-index: 50;
            display: flex;
            gap: 12px;
        }

        .custom-arrow {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            cursor: pointer;
            backdrop-filter: blur(6px);

            img {
                width: 40px;
            }
        }

        .custom-arrow:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .custom-arrow:hover {
            /* background: rgba(255, 255, 255, 0.2); */
            opacity: 0.8;
        }

        .case-card {
            /* background: #121214; */
            border-radius: 16px;
            /* border: 1px solid rgba(255, 255, 255, 0.1); */
            overflow: hidden;
        }

        .case-img {
            position: relative;
            height: 240px !important;
            overflow: hidden;
        }

        .case-img img {
            width: 100%;
            height: 240px !important;
            object-fit: cover;
            transition: .3s;
        }


        .swiper-wrapper {
            height: auto;
        }


        .case-badge {
            position: absolute;
            top: 16px;
            left: 16px;
            background: #7c3aed;
            padding: 6px 14px;
            border-radius: 30px;
            font-size: 16px;
            font-weight: 600;
        }

        .case-card h3 {
            margin: 20px 0;
        }

        .case-card p {
            color: #FFFFFF;
        }

        .read-link {
            display: inline-block;
            padding: 16px 0px;
            color: #EC696A;
            font-weight: 600;
            text-decoration: none;
            font-size: 20px;
        }

        .blog-add {
            .case-card {
                background-color: #fff;
                padding: 20px;
                border-radius: 20px;
                color: #000;

                p {
                    color: #000;
                }
            }
        }

    }

    .Why-choose {
        padding: 100px 0;

        .inner {
            display: flex;
            gap: 20px;
            margin-top: 40px;

            .box {
                width: 50%;

                img {
                    width: 100%;
                }

                p {
                    margin-bottom: 20px;
                }
            }

        }
    }

    .our-clients {
        padding: 100px 0;

        .inner {
            display: flex;
            gap: 20px;
            overflow: hidden;
            margin-top: 40px;

            .box {
                background: url(../images/our-client-bg.webp);
                background-size: cover;
                padding: 20px;
                border-radius: 20px;
                width: 480px;
                min-height: 280px;
                max-width: 100%;
                box-sizing: border-box;

                white-space: normal !important;
                overflow: hidden;
                word-break: break-word;
                display: flex;
                flex-direction: column;
                gap: 20px;

                img {
                    width: 120px;
                }


            }

            .right-to-left {
                overflow: hidden;
                white-space: nowrap;
                display: flex;
                align-items: center;
                margin-bottom: 20px;
                position: relative;
            }

            /* The scrolling wrapper */
            .scroll {
                display: flex;
                align-items: center;
                animation: scroll-left 30s linear infinite;
                gap: 30px;
            }

            /* For opposite direction */
            .right-to-left .scroll {
                animation: scroll-right 30s linear infinite;
            }
        }
    }

    .faq-section {
        max-width: 1000px;
        margin: 0 auto;
        padding: 100px 0;
        color: #fff;

        p {
            line-height: 130%;
        }

        h2 {
            text-align: center;
            margin-bottom: 30px;
        }

        .faq-item {
            background: #2A2A2A;
            border-radius: 12px;
            margin-bottom: 30px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .faq-question {
            width: 100%;
            background: #2A2A2A;
            border: none;
            padding: 18px 20px;
            font-size: 22px;
            color: #fff;
            font-weight: 600;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            transition: background 0.3s ease;
        }

        .faq-question:hover {
            background: #4a4a4a;
        }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            background: #2b2b2b;
            transition: max-height 0.35s ease;
            padding: 0 20px;
        }

        .faq-answer-inner {
            padding: 18px 0;
        }

        .faq-question span {
            transition: transform 0.3s;
        }

        .faq-question.active span {
            transform: rotate(180deg);
        }
    }



}





/* webstie develop company new slider - START */


.weBuildImgSwiper.swiper {
    width: 100%;
    height: 100%;
}

.weBuildImgSwiper {
    width: 100%;
    max-width: 100%;
    overflow: hidden !important;
}

.weBuildImgSwiper .swiper-wrapper {
    width: 100%;
}

.weBuildImgSwiper .swiper-slide {
    padding: 0;
    margin: 0;
    text-align: center;
    font-size: 18px;
    display: flex;
    width: auto !important;
    box-sizing: border-box;
}

.weBuildImgSwiper .swiper-slide img {
    width: 100%;
    height: 350px;
    display: block;
    object-fit: cover;
}

.main-dev-agency-wrapper {
    padding: 30px;
    border: 1px solid #845ef799;
    backdrop-filter: blur(3px);
    border-radius: 20px;
    background: radial-gradient(circle at center, rgb(36 32 52), transparent 80%),
        #24203447;
    height: 100%;
}

.main-dev-agency-wrapper .img-wrp {
    width: 80px;
    padding-bottom: 30px;
}

.premium-website-design-company-in-bangalore {
    padding: 100px 0px;
    background: url(../old/assets/images/web-development-company/bs-premier-section-bg.webp) center / cover no-repeat;
}

.premium-website-design-company-in-bangalore .prem-content {
    background: #845ef7;
    padding: 20px;
    border-radius: 20px;
}

.all-in-one-tab-section {
    background: #0a0b0f;
    padding: 50px 0px;
}

.custom-pill-tab .nav-pills .nav-link.active,
.custom-pill-tab .nav-pills .show>.nav-link {
    background-color: #845ef7;
}

.custom-pill-tab .nav-link {
    background-color: #2a2a2a;
    color: white;
}

.custom-pill-tab .nav-link:hover {
    background-color: #845ef766;
    color: white;
}

.custom-pill-tab .tab-top {
    display: flex;
    justify-content: space-between;
}

/* Keyframes */
@keyframes scroll-left {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes scroll-right {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.slide-up-down {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.2s;
}

.slide-up-down.show {
    opacity: 1;
    transform: translateY(0);
}

.slide-left-right {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.2s;
}

.slide-left-right.show {
    opacity: 1;
    transform: translateX(0);
}

.slide-right-left {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.2s;
}

.slide-right-left.show {
    opacity: 1;
    transform: translateX(0);
}


.info .case-study {
    max-width: 100%;

    .inner {
        padding: 0;

        .case-wrapper {
            background: transparent;

            .case-img {
                position: relative;
                height: 360px !important;
                overflow: hidden;

                img {
                    height: auto !important;
                }
            }
        }

    }

}

/* ============================================================= */
/*  MOBILE ONLY – max-width: 768px                               */
/*  Desktop styles are untouched – everything outside this block */
/* ============================================================= */
@media (max-width: 768px) {

    .slide-left-right,
    .slide-right-left {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.6s ease, transform 0.6s ease;
        transition-delay: 0.2s;
    }

    .slide-left-right.show,
    .slide-right-left.show {
        opacity: 1;
        transform: translateY(0);
    }

    .website-development-page {

        /* ----------------------------------------------------- */
        /*  TYPOGRAPHY (was outside the class before)            */
        /* ----------------------------------------------------- */
        h1 {
            font-size: 30px;
        }

        p {
            font-size: 16px;
            margin: 0;
        }

        h2 {
            font-size: 24px;
        }

        h3 {
            font-size: 20px;
        }

        /* ----------------------------------------------------- */
        /*  CONTAINER                                            */
        /* ----------------------------------------------------- */
        .container {
            width: 100%;
            padding: 0px;
        }

        /* ----------------------------------------------------- */
        /*  BANNER                                               */
        /* ----------------------------------------------------- */
        .banner {
            margin: 0 auto;
            width: 100%;

            .inner {
                height: auto;
                padding: 60px 20px;
                gap: 25px;

                /* Main paragraph */
                >p {
                    width: 100% !important;
                }

                /* Point pills */
                .point {
                    gap: 12px;

                    p {
                        font-size: 12px;
                        padding: 10px 16px;
                        width: 100%;
                        max-width: 280px;
                        text-align: center;
                    }
                }
            }

            .trusted-brands {
                text-align: center;
                padding: 0px 20px;
            }
        }

        /* ----------------------------------------------------- */
        /*  INFO SECTION                                         */
        /* ----------------------------------------------------- */

        .info {
            .inner {
                padding: 0px 20px 60px;

                h2 {
                    width: 100%;
                }
            }
        }

        /* ----------------------------------------------------- */
        /*  HOW WE CRAFT                                         */
        /* ----------------------------------------------------- */
        .how-we-craft {
            .inner {
                padding: 0px 20px 60px;

                .grid-3 {
                    grid-template-columns: 1fr;
                    gap: 20px;

                    .box {
                        img {
                            width: 98%;
                            height: auto;
                        }

                        h3,
                        p {
                            padding: 0 15px;
                            max-width: 100%;
                            width: 96%;
                        }
                    }

                    /* Contact box – keep transparent on mobile */
                    .box.contact {
                        border: none;
                        padding: 0;
                    }
                }
            }
        }

        /* ----------------------------------------------------- */
        /*  WHATS STANDING                                       */
        /* ----------------------------------------------------- */
        .whats-standing {
            height: auto;
            padding: 0px 20px 60px;


            .wrapperx {
                height: auto;
                margin-top: 0;

                .inner {
                    flex-direction: column;
                    gap: 30px;
                    margin-top: 30px;

                    .box,
                    .box-last {
                        max-width: 100%;
                        min-height: 300px;
                        margin-bottom: 0;
                    }
                }

                .in-last {
                    height: auto;
                    align-items: stretch;
                }
            }
        }

        /* ----------------------------------------------------- */
        /*  DEVELOPMENT PLATFORM                                 */
        /* ----------------------------------------------------- */
        .development-platfrom {
            padding: 0px 20px 60px;

            .tech-wrap {
                grid-template-columns: repeat(3, 1fr);
                background-size: calc(100% / 3) calc(100% / 4);

                .box {
                    height: 130px !important;

                    img {
                        width: 70px;
                    }
                }
            }
        }

        /* ----------------------------------------------------- */
        /*  DEVELOPMENT PROCESS                                  */
        /* ----------------------------------------------------- */
        .reverse-order-row {
            flex-direction: row-reverse !important;
            justify-content: end !important;

            .deg180 {
                transform: rotate(180deg);
            }
        }

        .developemt-process {
            padding: 0px 20px 60px;

            .process-wrapper {
                position: relative;

                .process-item {
                    position: relative;

                    .box {
                        padding: 10px !important;
                        border-radius: 8px;



                    }

                    .icon-1,
                    .icon-2 {
                        position: relative;
                        z-index: 3;

                        img {
                            background: #0A0B0F;
                        }
                    }

                    .false {
                        display: none;
                    }
                }
            }
        }

        /* ----------------------------------------------------- */
        /*  INDUSTRY WE SERVE                                    */
        /* ----------------------------------------------------- */
        .industry-we-serve {
            padding: 0px 20px 60px;

            .inner {
                grid-template-columns: 1fr;
                gap: 20px;
            }
        }

        .case-study {
            padding: 0px 20px 60px;
        }

        /* ----------------------------------------------------- */
        /*  WHY CHOOSE                                           */
        /* ----------------------------------------------------- */
        .Why-choose {
            padding: 0px 20px 60px;

            .inner {
                flex-direction: column;
                gap: 30px;

                .box {
                    width: 100% !important;
                }
            }
        }

        /* ----------------------------------------------------- */
        /*  OUR CLIENTS (carousel)                               */
        /* ----------------------------------------------------- */
        .our-clients {
            padding: 0px 20px 60px;

            .inner {
                .box {
                    width: 325px;
                    min-height: 330px;
                    padding: 15px;
                }
            }
        }

        /* ----------------------------------------------------- */
        /*  FAQ (optional minor tweak)                           */
        /* ----------------------------------------------------- */
        .faq-section {
            padding: 60px 20px;
            margin: 0 auto;

            text-align: start;

            .faq-question {
                font-size: 16px;
                padding: 15px;
                text-align: start;

            }
        }
    }


    .developemt-process {
        .process-wrapper {




            .line-abs::after {
                z-index: -1;
                left: 14% !important;
                height: 140px !important;
            }
        }
    }

    .we-are-number-one {
        padding: 0px 20px 60px;

    }

    .premium-website-design-company-in-bangalore {
        padding: 0px 20px 60px;
    }

    .all-in-one-tab-section {
        padding: 0px 20px 60px;
    }

    .weBuildImgSwiper .swiper-slide img {
        height: 214px;
    }

    .info .case-study {
        padding: 0 !important;


        .inner {
            padding: 0 !important;

            .case-wrapper {

                .case-img {
                    height: 240px !important;

                    img {
                        height: auto !important;
                    }
                }
            }

        }

    }

}




@media (max-width: 768px) {
    .custom-pill-tab .tab-top {
        display: flex;
        justify-content: start;
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        gap: 15px;
        padding-bottom: 10px;
    }

}


/* ===========================================
   PERFORMANCE OPTIMIZATION CSS
   Add this to your style.css file
   =========================================== */

/* Optimized Animation Classes - Prevent Layout Shift */
.slide-up-down,
.slide-left-right,
.slide-right-left {
    will-change: transform;
    transform: translateZ(0);
    opacity: 1;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Initial hidden state - only apply when not visible */
.slide-up-down:not(.show) {
    opacity: 0;
    transform: translateY(30px);
}

.slide-left-right:not(.show) {
    opacity: 0;
    transform: translateX(-30px);
}

.slide-right-left:not(.show) {
    opacity: 0;
    transform: translateX(30px);
}

/* Visible state - remove will-change for better performance */
.slide-up-down.show,
.slide-left-right.show,
.slide-right-left.show {
    opacity: 1;
    transform: none;
    will-change: auto;
}

/* Image Optimization - Prevent Layout Shift */
img {
    height: auto;
    max-width: 100%;
    display: block;
}

/* Aspect ratio boxes for images (optional but recommended) */
.case-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.case-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Reserve space for dynamically loaded content */
#header {
    min-height: 80px;
    background: transparent;
}

#footer {
    min-height: 200px;
    background: transparent;
}

/* Optimize partner logo scroll animation */
.partners .scroll {
    display: flex;
    gap: 20px;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Swiper optimization */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* FAQ optimization - smooth transitions */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-question {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* GPU acceleration for animations */
.banner-button,
.custom-arrow {
    transform: translateZ(0);
    will-change: transform;
    transition: transform 0.2s ease;
}

.banner-button:hover,
.custom-arrow:hover {
    transform: translateZ(0) scale(1.05);
}

/* Reduce paint area for scrolling elements */
.right-to-left,
.left-to-right {
    contain: layout style paint;
}

/* Optimize grid layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    contain: layout style;
}

/* Critical content loading optimization */
.banner {
    contain: layout style;
}

/* Reduce repaints on scroll */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Optimize text rendering */
body {
    text-rendering: optimizeSpeed;
}

h1, h2, h3, h4, h5, h6 {
    text-rendering: optimizeLegibility;
}

/* Lazy loading placeholder 
img[loading="lazy"] {
    background: #f0f0f0;
}*/

/* Reduce layout shift from web fonts */
@font-face {
    font-display: swap;
}

/* Contain repaints to specific areas */
.case-study,
.faq-section,
.how-we-craft {
    contain: layout paint;
}

/* Optimize for mobile performance */
@media (max-width: 768px) {
    .slide-up-down:not(.show),
    .slide-left-right:not(.show),
    .slide-right-left:not(.show) {
        opacity: 1;
        transform: none;
    }
    
    /* Disable animations on mobile for better performance */
    .slide-up-down,
    .slide-left-right,
    .slide-right-left {
        transition: none;
    }
}

/* Prefers reduced motion - accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}