/* ==========================================================================
   Mobile / Tablet responsive overrides for index-5.html
   Only overrides for screens <= 991px and <= 576px.
   Keeps desktop layout intact.
   ========================================================================== */

/* ---------- Global fluid tweaks ---------- */
html {
    -webkit-text-size-adjust: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 991px) {
    html,
    body {
        overflow-x: hidden;
    }
}

@media (max-width: 991px) {
    body {
        font-size: 15px;
    }

    .display-6 {
        font-size: calc(1.375rem + 1vw);
        line-height: 1.25 !important;
    }

    h2.display-6 {
        font-size: 1.9rem;
    }

    .section {
        padding: 60px 0 !important;
    }

    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .title-sm h5,
    .title-sm h6 {
        letter-spacing: 1px;
        font-weight: 600;
    }

    .main-title p {
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .lh-55 {
        line-height: 1.3 !important;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 48px 0 !important;
    }

    h2.display-6 {
        font-size: 1.55rem;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ---------- Navbar ---------- */
@media (max-width: 991px) {
    .navbar-custom {
        padding: 10px 0;
        background-color: rgba(0, 0, 0, 0.85) !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, .5);
    }

    .navbar-custom .navbar-caption {
        font-size: 1.25rem;
    }

    .navbar-custom .navbar-collapse {
        background-color: #0a0d0a;
        padding: 16px 18px;
        margin-top: 10px;
        border-radius: 10px;
        border: 1px solid rgba(57, 255, 20, 0.14);
        box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
    }

    .navbar-custom .navbar-nav .nav-link {
        padding: 10px 4px !important;
    }

    .nav-btn,
    .nav-btn-5 {
        margin-top: 14px;
    }

    .nav-btn .btn,
    .nav-btn-5 .btn {
        width: 100%;
    }
}

/* ---------- Hero / bg-home-5 ---------- */
@media (max-width: 991px) {
    .bg-home-5 {
        padding: 120px 0 60px !important;
        text-align: center;
    }

    .bg-home-5 .hero-text h1 {
        font-size: 2rem;
    }

    .bg-home-5 .hero-text h5 {
        font-size: 1rem;
    }

    .bg-home-5 .hero-text p br {
        display: none;
    }

    .bg-home-5 .main-btn {
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .bg-home-5 .main-btn .btn {
        margin: 0 !important;
    }

    .bg-home-5 .main-btn img {
        max-width: 150px;
    }

    .bg-home-5 .hero-icon ul {
        justify-content: center;
        flex-wrap: wrap;
        padding-left: 0;
    }

    .bg-home-5 .hero-icon h5 {
        text-align: center;
    }

    .bg-home-5 .animation-img,
    .bg-home-5 .hend-img {
        display: none !important;
    }

    .hero-thumb-mobile-wrap {
        position: relative;
        margin: 32px auto 10px;
        max-width: 460px;
        width: 92%;
        padding: 20px 0 10px;
        text-align: center;
    }

    .hero-thumb-mobile-wrap::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 82%;
        aspect-ratio: 1 / 1;
        background: radial-gradient(
            circle at 50% 50%,
            rgba(57, 255, 20, 0.22) 0%,
            rgba(57, 255, 20, 0.12) 45%,
            rgba(57, 255, 20, 0) 72%
        );
        transform: translate(-50%, -50%);
        border-radius: 50%;
        z-index: 0;
        pointer-events: none;
    }

    .hero-thumb-mobile-wrap::after {
        content: "";
        position: absolute;
        top: 58%;
        left: 50%;
        width: 62%;
        height: 16px;
        background: radial-gradient(
            ellipse at center,
            rgba(0, 0, 0, 0.18) 0%,
            rgba(0, 0, 0, 0) 70%
        );
        transform: translateX(-50%);
        z-index: 0;
        filter: blur(2px);
        pointer-events: none;
    }

    .hero-thumb-mobile {
        position: relative;
        z-index: 1;
        max-width: 100%;
        width: 100%;
        filter: drop-shadow(0 18px 28px rgba(57, 255, 20, 0.22))
                drop-shadow(0 6px 10px rgba(0, 0, 0, 0.08));
        animation: heroFloat 4.5s ease-in-out infinite;
    }
}

@media (max-width: 576px) {
    .hero-thumb-mobile-wrap {
        max-width: 360px;
        width: 94%;
        margin: 22px auto 6px;
    }
}

@keyframes heroFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-thumb-mobile {
        animation: none;
    }
}

@media (max-width: 576px) {
    .bg-home-5 {
        padding: 110px 0 40px !important;
    }

    .bg-home-5 .hero-text h1 {
        font-size: 1.75rem;
    }
}

/* ---------- Counter section ---------- */
@media (max-width: 991px) {
    .counter-part {
        padding: 40px 0 20px !important;
    }

    .counter-part .row {
        gap: 12px 0;
    }

    .counter-part .col-lg-3 {
        padding-left: 6px;
        padding-right: 6px;
    }

    .counter-part .counter-no {
        padding: 16px 14px !important;
        margin-bottom: 0;
        justify-content: flex-start;
        align-items: center;
        background: #121712;
        border: 1px solid rgba(57, 255, 20, 0.14);
        border-radius: 14px;
        box-shadow: 0 6px 18px rgba(57, 255, 20, 0.08);
        height: 100%;
    }

    .counter-part .counter-no .icon {
        margin-bottom: 0 !important;
        flex-shrink: 0;
    }

    .counter-part .counter-no .icon i {
        padding: 0.6rem !important;
        font-size: 1.6rem !important;
    }

    .counter-part .counter-no .d-block {
        margin-left: 14px !important;
    }

    .counter-part .counter-no h2 {
        font-size: 1.35rem;
        margin-bottom: 2px;
        letter-spacing: 0.5px;
    }

    .counter-part .counter-no p {
        margin-bottom: 0;
        font-size: 0.9rem;
        color: #8a988b;
    }
}

@media (min-width: 577px) and (max-width: 991px) {
    .counter-part .row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .counter-part .col-lg-3 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
}

/* ---------- About part 5 ---------- */
@media (max-width: 991px) {
    .about-part-5 .about-header {
        margin-bottom: 24px !important;
        padding-bottom: 0 !important;
    }

    .about-part-5 .main-title p br {
        display: none;
    }

    .about-part-5 .bg-info {
        padding: 20px !important;
        border-radius: 18px !important;
    }

    .about-part-5 .bg-info .row {
        --bs-gutter-y: 12px;
    }

    .about-part-5 .bg-info .content {
        padding: 22px !important;
        border-radius: 14px !important;
    }

    .about-part-5 .bg-info .content h6 {
        font-size: 1.05rem;
        margin-bottom: 8px;
    }

    .about-part-5 .bg-info .content p {
        font-size: 0.9rem;
        color: #8a988b;
        margin-bottom: 0;
    }

    .about-part-5 .bg-info .content p br {
        display: none;
    }
}

/* ---------- Services / features ---------- */
@media (max-width: 991px) {
    .services-part-5 .row {
        flex-direction: column-reverse;
    }

    .services-part-5 .col-lg-6.text-center {
        margin-top: 28px;
    }

    .services-part-5 img.w-75 {
        width: 68% !important;
        max-width: 360px;
    }

    .services-part-5 .services-header {
        text-align: center;
    }

    .services-part-5 .services-header p br,
    .services-part-5 .services-header h2 br {
        display: none;
    }

    .services-part-5 .services-contant {
        margin-top: 24px !important;
    }

    .services-part-5 .step {
        background: #121712;
        border: 1px solid rgba(57, 255, 20, 0.14);
        padding: 16px 18px 14px;
        border-radius: 14px;
        box-shadow: 0 4px 16px rgba(57, 255, 20, 0.08);
    }

    .services-part-5 .step.mt-3 {
        margin-top: 14px !important;
    }

    .services-part-5 .step > span {
        display: inline-block;
        margin-left: 0 !important;
        margin-bottom: 10px;
    }

    .services-part-5 .step .row {
        flex-direction: row !important;
        flex-wrap: nowrap;
        margin: 0;
        --bs-gutter-x: 0;
        align-items: flex-start !important;
    }

    .services-part-5 .step .col-lg-3,
    .services-part-5 .step .col-lg-8 {
        width: auto;
        flex: 0 0 auto;
        padding: 0;
    }

    .services-part-5 .step .col-lg-3 {
        flex-shrink: 0;
        margin-right: 14px;
    }

    .services-part-5 .step .col-lg-3 h5 {
        margin: 0;
        font-size: 1rem;
        color: var(--bs-primary, #39ff14);
        white-space: nowrap;
    }

    .services-part-5 .step .col-lg-3 h5 i {
        display: none;
    }

    .services-part-5 .step .col-lg-8 {
        flex: 1;
        border-bottom: none !important;
    }

    .services-part-5 .step .col-lg-8 p {
        margin: 0;
        color: #8a988b;
    }

    .services-part-5 .step .col-lg-8 p br {
        display: none;
    }
}

/* ---------- App screenshort ---------- */
@media (max-width: 991px) {
    .app-screenshort {
        position: relative;
        overflow: hidden;
    }

    .app-screenshort .price-header {
        margin-bottom: 28px !important;
        padding-bottom: 0 !important;
    }

    .app-screenshort .screenshort {
        margin-top: 10px !important;
        position: relative;
        padding: 10px 0 20px;
    }

    .app-screenshort .screenshort::before {
        content: "";
        position: absolute;
        top: 48%;
        left: 50%;
        width: 92%;
        max-width: 560px;
        aspect-ratio: 1 / 1;
        background: radial-gradient(
            circle at 50% 50%,
            rgba(57, 255, 20, 0.25) 0%,
            rgba(57, 255, 20, 0.12) 45%,
            rgba(57, 255, 20, 0) 72%
        );
        transform: translate(-50%, -50%);
        border-radius: 50%;
        z-index: 0;
        pointer-events: none;
    }

    .app-screenshort .mySwiper {
        position: relative;
        z-index: 1;
        padding-bottom: 48px !important;
        overflow: visible !important;
    }

    .app-screenshort .swiper-wrapper {
        align-items: center;
    }

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

    .app-screenshort .swiper-slide img,
    .app-screenshort .swiper-slide img.w-75 {
        width: 70% !important;
        max-width: 360px;
        margin: 0 auto;
        display: block;
        border-radius: 26px;
        box-shadow: 0 24px 48px rgba(57, 255, 20, 0.30),
                    0 10px 22px rgba(0, 0, 0, 0.1);
    }

    .app-screenshort .swiper-pagination {
        bottom: 0 !important;
        position: relative !important;
        margin-top: 14px;
    }

    .app-screenshort .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        opacity: 0.35;
        background: var(--bs-primary, #39ff14);
        transition: all 0.25s ease;
    }

    .app-screenshort .swiper-pagination-bullet-active {
        width: 30px;
        border-radius: 10px;
        opacity: 1;
    }

    .app-screenshort .mobile-phone {
        display: none;
    }
}

@media (max-width: 576px) {
    .app-screenshort .swiper-slide img,
    .app-screenshort .swiper-slide img.w-75 {
        width: 78% !important;
        max-width: 340px;
        border-radius: 22px;
    }
}

@media (max-width: 380px) {
    .app-screenshort .swiper-slide img,
    .app-screenshort .swiper-slide img.w-75 {
        width: 84% !important;
        max-width: 300px;
    }
}

/* ---------- FAQ ---------- */
@media (max-width: 991px) {
    .faq .row.mt-5 {
        margin-top: 24px !important;
    }

    .faq .row > [class*="col-"] {
        margin-bottom: 0;
    }

    .faq .bg-light {
        padding: 20px 18px !important;
        margin-bottom: 14px !important;
        border-radius: 14px !important;
        background-color: #121712 !important;
        border: 1px solid rgba(57, 255, 20, 0.14);
        box-shadow: 0 6px 20px rgba(57, 255, 20, 0.08);
    }

    .faq .bg-light.my-4 {
        margin-top: 0 !important;
        margin-bottom: 14px !important;
    }

    .faq h5 {
        font-size: 1rem;
        display: flex;
        align-items: flex-start;
        line-height: 1.5 !important;
        margin-bottom: 10px;
    }

    .faq h5 i {
        flex-shrink: 0;
        padding: 0.35rem 0.55rem !important;
        font-size: 0.85rem;
        margin-right: 10px !important;
        margin-top: 2px;
    }

    .faq p.ms-5 {
        margin-left: 0 !important;
        font-size: 0.9rem;
        color: #8a988b;
        margin-bottom: 0;
    }
}

/* ---------- Download section ---------- */
@media (max-width: 991px) {
    .download-part .row {
        --bs-gutter-y: 18px;
    }

    .download-part .col-lg-5,
    .download-part .col-lg-4 {
        text-align: center;
    }

    .download-part .logo {
        margin-bottom: 16px !important;
    }

    .download-part h3 {
        margin-top: 10px;
        font-size: 1.3rem;
    }

    .download-part p {
        color: #8a988b;
    }

    .download-part p br {
        display: none;
    }

    .download-part .main-btn {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .download-part .main-btn .btn {
        margin: 0 !important;
    }

    .download-part .main-btn img {
        max-width: 150px;
    }
}

/* ---------- Modal / video ---------- */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
    }
}
