/* base box sizing for predictable sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* keep mockup relative so the screen can absolute-position inside it */
.mockup {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

    /* frame image scales naturally */
    .mockup .frame {
        display: block;
        width: 100%;
        height: auto;
    }

    /* screen overlay positioned by CSS vars */
    .mockup .screen {
        position: absolute;
        left: var(--screen-left, 10%);
        top: var(--screen-top, 10%);
        width: var(--screen-width, 80%);
        height: var(--screen-height, 80%);
        overflow: hidden;
        border-radius: 12px; /* match your frame's inner radius if any */
        background: #000; /* fallback while images load */
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
        -webkit-font-smoothing: antialiased;
    }

        /* ensure Swiper fills the screen container */
        .mockup .screen .swiper {
            width: 100%;
            height: 100%;
        }

            .mockup .screen .swiper .swiper-wrapper {
                width: 100%;
                height: 100%;
            }

            .mockup .screen .swiper .swiper-slide {
                display: flex;
                align-items: center;
                justify-content: center;
                height: 100%;
            }

        /* slide image fits screen area */
        .mockup .screen .swiper-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* use 'contain' if you want letterboxing instead */
            display: block;
        }

/* simple pagination styling override (optional) */
.swiper-pagination-bullet {
    opacity: 0.6;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* phone frame variant */
.frame-phone-v1 {
    --screen-left: 3.1%;
    --screen-top: 1.9%;
    --screen-width: 63.9%;
    --screen-height: 95.3%;
    width: 100%;
    max-width: 350px;
    height: 500px; /* sets total height of mockup on desktop */
    max-height: 500px;
    margin-left:100px;
}

    .frame-phone-v1 .frame {
        display: block;
        height: 100%;
        width: auto;
        max-width: 350px;
        object-fit: contain; /* safe fallback */
    }

/* laptop frame variant (suggested height) */
.frame-laptop-v1 {
    --screen-left: 4%;
    --screen-top: 2%;
    --screen-width: 92%;
    --screen-height: 96%;
    width: 100%;
    max-width: 900px;
    height: 650px; /* suggested laptop mockup height — change if needed */
    max-height: 650px;
}

    .frame-laptop-v1 .frame {
        display: block;
        height: 100%;
        width: auto;
        object-fit: contain;
    }

/* small-screen tweak: reduce radius and switch to fluid heights */
@media (max-width: 768px) {
    .frame-phone-v1,
    .frame-laptop-v1 {
        height: auto; /* let frames determine height responsively */
        max-width: 217px; /* keep phone size reasonable on small screens */
    }

        .frame-phone-v1 .frame,
        .frame-laptop-v1 .frame {
            width: 100%;
            height: auto;
        }

    .mockup .screen {
        border-radius: 8px;
        width: 93%;
    }
    .frame-phone-v1 {
      
        margin-left: 0px;
    }
}

/* if pagination/dots sit over the frame and are hard to see, raise them */
.mockup .swiper-pagination {
    z-index: 5;
    pointer-events: auto;
}
@media (min-width:768px){
    section#trukr-product {
        padding-bottom: 80px !important;
    }
    section#docksmart {
        padding-bottom: 60px;
    }
}


/*laptop sldier*/
/* ----------------- NEW: laptop framed mockup (isolated) ----------------- */
/* Use these new class names to avoid conflicting with your existing CSS. */

.laptop-mockup-new {
    --screen-left: 0%;
    --screen-top: 5%;
    --screen-width: 100%;
    --screen-height: 86%;
    position: relative;
    width: 100%;
    max-width: 1020px;
    margin: 0 auto;
    /* keep overlap behavior if you want by adjusting the margins below;
     for centered non-overlapping remove negative margins. */
    /* margin-top: -300px; margin-bottom: -300px;  <-- remove or keep */
    overflow: visible; /* allow overlap */
    z-index: 50; /* sits above section backgrounds */
    pointer-events: none; /* prevents invisible parts blocking pointer events */
    min-height: 434px;
    margin-top: -300px;
    margin-bottom: -250px;
    width: 806px;

}

    /* frame image - sit behind the screen area */
    .laptop-mockup-new .laptop-frame-new {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        height: 100%;
        width: auto;
        display: block;
        z-index: 51;
        pointer-events: none;
        opacity: 1;
        width:800px;
    }

    /* screen overlay positioned by CSS variables - sits over the frame */
    .laptop-mockup-new .laptop-screen-new {
        position: absolute;
        left: var(--screen-left);
        top: var(--screen-top);
        width: var(--screen-width);
        height: var(--screen-height);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border-radius: 10px;
        z-index: 52; /* above frame */
        pointer-events: auto; /* allow interaction with slides */
        background: transparent; /* no black fallback — transparent so frame shows through */
    }

    /* make sure the Swiper fills the screen area */
    .laptop-mockup-new .laptop-swiper-new
     {
        width: 82%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .laptop-mockup-new .swiper-wrapper,
    .laptop-mockup-new .swiper-slide {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
    }

        /* slide image fits the screen area and is visible */
        .laptop-mockup-new .swiper-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* use 'contain' if you want no cropping */
            display: block;
            pointer-events: auto; /* allow clicks */
        }

    /* pagination styling within the overlay */
    .laptop-mockup-new .swiper-pagination {
        z-index: 60;
        bottom: 10px;
        position: absolute;
    }

/* responsive: scale the whole mockup and adjust screen percentages for smaller devices */
@media (max-width: 1199.98px) {
    .laptop-mockup-new {
        max-width: 900px;
        min-height: 360px;
    }

    .laptop-mockup-new {
        --screen-top: 6%;
        --screen-height: 74%;
    }
    .mockup .screen {
        width: 84%;
    }
    
}
@media(max-width:1025px)
{
    .mockup .screen {
        width: 84%;
    }

 

    .scroll-strip {
        top: 0px;
    }
}
@media(max-width:993px)
{
    .mockup .screen {
        width: 84%;
    }

}

@media (max-width: 992.98px) {
    .laptop-mockup-new {
        max-width: 760px;
        min-height: 320px;
    }

    .laptop-mockup-new {
        --screen-left: 5%;
        --screen-top: 8%;
        --screen-width: 90%;
        --screen-height: 70%;
    }
        .laptop-mockup-new .laptop-frame-new {
            width: 86vw !important;
        }
    
  

}
@media(max-width:991px)
{

  
        .mockup .screen {
            width: 58%;
            height: 87%;
            top: 30px;
        }
    
}
@media(max-width:768px) {
    .mockup .screen {
        width: 94%;
        height: 96%;
        top: 8px;
    }



}

@media (max-width: 767.98px) {
    /* mobile: do not overlap, stack naturally */
    .laptop-mockup-new {
        margin: 32px auto;
        min-height: auto;
    }

        .laptop-mockup-new .laptop-frame-new {
            position: absolute;
            width: 100%;
            height: auto;
            transform: none;
            left: auto;
        }

        .laptop-mockup-new .laptop-screen-new {
            position: relative;
            left: auto;
            top: auto;
            width: calc(100% - 32px);
            height: auto;
            aspect-ratio: 16/9;
            margin: 0 auto;
            border-radius: 12px;
        }

        .laptop-mockup-new .swiper-slide img {
            object-fit: contain;
        }
}

/* Debug helper: toggle .debug to visually see overlay size while tuning */
.laptop-mockup-new.debug .laptop-screen-new {
    outline: 2px dashed rgba(255,0,0,0.12);
    background: rgba(255,255,255,0.02);
}
/*new css for laptop*/

/* === FINAL FIXED LAPTOP FRAME (using your existing class names) === */
.frame-laptop-v1 {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin: 0 auto;
    overflow: visible;
    z-index: 10;
    width:1020px !important;
}

    /* frame image */
    .frame-laptop-v1 .frame {
        display: block;
        width: 100%;
        height: auto;
        position: relative;
        z-index: 1;
        width: 1020px;
    }

    /* precisely align the screen overlay (based on your frame@2x.png) */
    .frame-laptop-v1 .screen {
        position: absolute;
        left: 5.3%; /* inner white screen start from left edge */
        top: 7.6%; /* inner screen start from top edge */
        width: 89.4%; /* total usable width of inner screen */
        height: 72%; /* total usable height */
        border-radius: 8px;
        overflow: hidden;
        background: transparent !important; /* no black background */
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        /* ensure swiper fills exactly the screen area */
        .frame-laptop-v1 .screen .swiper,
        .frame-laptop-v1 .screen .swiper-wrapper,
        .frame-laptop-v1 .screen .swiper-slide {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

            /* make slide images fully visible inside the frame */
            .frame-laptop-v1 .screen .swiper-slide img {
                width: 100%;
                height: 100%;
                object-fit: contain !important; /* full image visible, not cropped */
                display: block;
                background: #fff; /* helps against transparent areas */
            }

    /* pagination dots */
    .frame-laptop-v1 .swiper-pagination {
        position: absolute;
        bottom: 8px;
        z-index: 5;
    }

/* responsiveness */
@media (max-width: 991px) {
    .frame-laptop-v1 {
        max-width: 850px;
    }

        .frame-laptop-v1 .screen {
            top: 8%;
            height: 70%;
        }
}

@media (max-width: 767px) {
    .frame-laptop-v1 {
        max-width: 100%;
    }

        .frame-laptop-v1 .frame {
            width: 100%;
            height: auto;
        }

        .frame-laptop-v1 .screen {
            position: relative;
            top: auto;
            left: auto;
            width: 100%;
            height: auto;
            aspect-ratio: 16/9;
            border-radius: 12px;
        }

            .frame-laptop-v1 .screen .swiper-slide img {
                object-fit: contain !important;
            }
}


/*new css*/

/* ensure each slide exactly equals the overlay width and can't shrink or grow */
.laptop-mockup-new .laptop-swiper-new .swiper-wrapper {
    display: flex !important;
    align-items: stretch !important;
}

.laptop-mockup-new .laptop-swiper-new .swiper-slide {
    flex: 0 0 100% !important; /* each slide is exactly 100% of container */
    width: 100% !important;
    margin: 0 !important; /* remove any accidental gaps */
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

    /* ensure inner image doesn't push overflow (and stays centered inside slide) */
    .laptop-mockup-new .laptop-swiper-new .swiper-slide img {
        max-width: 100%;
        max-height: 100%;
        width: 100%;
        height: 100%;
        object-fit: contain; /* or 'cover' if you want fill+crop */
        display: block;
    }

/* ensure each slide exactly equals the overlay width and can't shrink or grow */
.laptop-mockup-new .laptop-swiper-new .swiper-wrapper {
    display: flex !important;
    align-items: stretch !important;
}

.laptop-mockup-new .laptop-swiper-new .swiper-slide {
    flex: 0 0 100% !important; /* each slide is exactly 100% of container */
    width: 100% !important;
    margin: 0 !important; /* remove any accidental gaps */
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

    /* ensure inner image doesn't push overflow (and stays centered inside slide) */
    .laptop-mockup-new .laptop-swiper-new .swiper-slide img {
        max-width: 100%;
        max-height: 100%;
        width: 100%;
        height: 100%;
        object-fit: contain; /* or 'cover' if you want fill+crop */
        display: block;
    }


    /*centered sldies*/

/* OVERRIDE: stop wrapper centering and force slides to exactly fit overlay */
.laptop-mockup-new .laptop-swiper-new .swiper-wrapper {
    display: flex !important;
    align-items: stretch !important;
    justify-content: flex-start !important; /* <-- remove centering */
    width: 100% !important;
    box-sizing: border-box !important;
}

/* each slide MUST equal 100% of the overlay width */
.laptop-mockup-new .laptop-swiper-new .swiper-slide {
    flex: 0 0 100% !important; /* exact width, no grow/shrink */
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

    /* ensure slide images don't overflow and fill the slide */
    .laptop-mockup-new .laptop-swiper-new .swiper-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important; /* show whole image; use 'cover' to crop */
        display: block !important;
    }


    @media(max-width:767px){
        .frame-phone-v1 {
            --screen-left: 4.1%;
            --screen-top: 1.9%;
            --screen-width: 91.9%;
            --screen-height: 95.3%;
            
        }
        .laptop-mockup-new .laptop-frame-new {
            height: 189px !important;
            overflow: hidden;
        }
    }


/* ---------- Responsive tweaks for laptop framed slider ---------- */

/* Remove any hard 1020px lock on smaller screens */
.laptop-mockup-new,
.frame-laptop-v1,
.frame-laptop-v1 .frame,
.laptop-mockup-new .laptop-frame-new {
/*    max-width: 100%;
    width: 100% !important;*/
}

/* Desktop: keep earlier desktop tuning (you already have these). 
   Mobile/Tablet breakpoints below will override as needed. */
@media (max-width: 1199.98px) {
    .laptop-mockup-new {
        max-width: 900px;
        min-height: 420px;
        margin-top: -240px; /* reduce overlap a bit on mid screens */
        margin-bottom: -200px;
    }

        .laptop-mockup-new .laptop-screen-new {
            /* use CSS vars if present, else keep computed positions */
            left: var(--screen-left, 5%);
            top: var(--screen-top, 6%);
            width: calc(var(--screen-width, 100%) * 1);
            height: var(--screen-height, 74%);
        }

        .laptop-mockup-new .laptop-swiper-new {
            width: 62% !important;
        }
}

/* Tablet */
@media (max-width: 991.98px) {
    .laptop-mockup-new {
        max-width: 760px;
        margin-top: -160px;
        margin-bottom: -120px;
        min-height: 340px;
    }

        /* slightly bigger inner padding so screen sits well in frame */
        .laptop-mockup-new .laptop-screen-new {
            left: 5% !important;
            top: 8% !important;
            width: 90% !important;
            height: 70% !important;
        }

        /* Make slider fill overlay fully for reliable math */
        .laptop-mockup-new .laptop-swiper-new {
            width: 100% !important;
        }

            /* ensure each slide still matches overlay */
            .laptop-mockup-new .laptop-swiper-new .swiper-slide {
                flex: 0 0 100% !important;
                width: 100% !important;
            }
}
@media(max-width:993px)
{
    .laptop-mockup-new .laptop-swiper-new {
        width: 71% !important;
    }


/*    .mockup .screen
    {
        width:83%;
    }*/
}


    @media(max-width:991px) {
        .laptop-mockup-new {
            width: 100%;
        }

        img.laptop-frame-new {
            height502px;
            max-height: 502px !important;
        }

        .laptop-mockup-new .laptop-screen-new {
            /*        left: -7% !important;
        position: absolute;
        aspect-ratio: 16/9;
        margin: 0 auto;
        border-radius: 12px;
        width: 98% !important;
        height: 244px !important;
        top: 4% !important;*/
            left: -7% !important;
            position: absolute !important;
            aspect-ratio: 16/9 !important;
            margin: 0 auto !important;
            border-radius: 12px !important;
            width: 90% !important;
            height: 90% !important;
            top: 4% !important;
            /*SCREEN NEW*/

            left: 7% !important;
            position: absolute !important;
            /* aspect-ratio: 16/9 !important; */
            margin: 0 auto !important;
            border-radius: 12px !important;
            width: 73% !important;
            height: 91% !important;
            top: -1% !important;
        }

        .laptop-mockup-new .laptop-screen-new {
            left: -7% !important;
            position: absolute !important;
            aspect-ratio: auto !important;
            margin: 0 0 !important;
            border-radius: 12px !important;
            width: 90% !important;
            height: 90% !important;
            top: 4% !important;
            left: 14% !important;
            position: absolute !important;
            /* aspect-ratio: 16/9 !important; */
            margin: 0 0 !important;
            border-radius: 12px !important;
            width: 60% !important;
            height: 100% !important;
            top: -7.4% !important;
        }

        .laptop-mockup-new .laptop-swiper-new {
            /*        left: -7% !important;
        position: absolute !important;
        aspect-ratio: 16/9 !important;
        margin: 0 auto !important;
        border-radius: 12px !important;
        width: 90% !important;
        height: 90% !important;
        top: 4% !important;*/
            width: 100% !important;
            justify-content: flex-start !important;
        }

        .laptop-mockup-new {
            max-width: 760px;
            margin-top: -90px;
            margin-bottom: -120px;
            min-height: 340px;
        }

            .laptop-mockup-new .laptop-frame-new {
                width: 86vw !important;
            }
            .laptop-mockup-new .laptop-frame-new {
                height: 341px !important;
                overflow: hidden;
            }
            .laptop-mockup-new .laptop-swiper-new .swiper-slide {
                justify-content: flex-start !important;
            }

            .laptop-mockup-new .laptop-screen-new {
                justify-content: flex-start !important;
            }

            .laptop-mockup-new .laptop-swiper-new .swiper-slide img {
                width: 100% !important;
                height: 100% !important;
                object-fit: fill !important;
                display: block !important;
            }

            .laptop-mockup-new .laptop-screen-new {
                aspect-ratio: auto !important;
                left: 14% !important;
                position: absolute !important;
                /* aspect-ratio: 16/9 !important; */
                margin: 0 0 !important;
                border-radius: 12px !important;
                width: 72% !important;
                height: 85% !important;
                top: 5.6% !important;
            }

            .laptop-mockup-new .laptop-screen-new {
                border-radius: 0px !important;
            }

        .swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal {
            display: none;
        }
    }



    @media(max-width:767px) {
        .laptop-mockup-new {
            width: 100%;
        }

        img.laptop-frame-new {
            max-height: 302px !important;
        }

        
        .laptop-mockup-new .laptop-screen-new {
            left: -6% !important;
            width: 97% !important;
            height: 93% !important;
            top: 1% !important;
        }
        .laptop-mockup-new .laptop-swiper-new {
            width: 100% !important;
            left: 16%;
            top: -16%;
            height: 100%;
            position: absolute;
        }

        .laptop-mockup-new {
            max-width: 760px;
            margin-top: -90px;
            margin-bottom: -120px;
            min-height: 340px;
        }

        .laptop-mockup-new {
            max-width: 100vw !important;
            margin-top: -90px !important;
            margin-bottom: -120px !important;
            min-height: 340px !important;
            margin-left: 10px !important;
            margin-right: auto !important;
        }

            .laptop-mockup-new .laptop-frame-new {
                width: 95vw !important;
            }

            .laptop-mockup-new .laptop-swiper-new {
                width: 80% !important;
                left: 15%;
                top: -6%;
                height: 100%;
                position: absolute;
            }

        .swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal {
            display: none;
        }

        .laptop-mockup-new .laptop-swiper-new .swiper-slide img {
            object-fit: contain !important;
        }

        .swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal {
            display: none;
        }
    }

 

    @media(max-width:767px) {
        .frame-phone-v1, .frame-laptop-v1 {
            height: auto;
            max-width: 300px;
            max-height: 80% !important;
            /* height: 35% !important; */
        }

        .justify-content-center {
            padding-top: 40px;
            padding-bottom: 40px;
        }
        .laptop-mockup-new .laptop-frame-new {
            height: auto !important;
            overflow: hidden;
        }
        .laptop-mockup-new .laptop-swiper-new {
            width: 80% !important;
            left: 15%;
            top: -6%;
            height: 100%;
            position: absolute;
        }
    }


@media (max-width: 431px) {
    .laptop-mockup-new .laptop-screen-new {
        left: -6% !important;
        width: 97% !important;
        height: 93% !important;
        top: -13% !important;
    }
}
@media  (max-width: 380px) {
    .laptop-mockup-new .laptop-swiper-new {
        width: 80% !important;
        left: 15%;
      
        height: 100%;
        position: absolute;
        top: -8% !important
    }
}