/* ============================================================
   mobile-responsive.css — Vijaya Soft Solution
   Breakpoints: xs < 576px | sm 576-767px | md 768-991px
   ============================================================ */

/* ─── Global resets for mobile ─────────────────────────────── */
@media (max-width: 767px) {
    body {
        overflow-x: hidden;
        font-size: 14px;
    }

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

    /* Remove excessive section padding on mobile */
    section.py-5,
    div.py-5 {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }

    section.py-4,
    div.py-4 {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }

    .mb-5 { margin-bottom: 20px !important; }
    .mb-4 { margin-bottom: 14px !important; }
    .mt-5 { margin-top: 20px !important; }
    .mt-4 { margin-top: 14px !important; }
}

/* ─── Navbar ────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .navbar {
        padding: 8px 0 !important;
    }
    .navbar-brand img {
        max-height: 38px !important;
    }
    .navbar-toggler {
        padding: 4px 8px;
        font-size: 0.9rem;
    }
}

/* ─── Product Detail Hero ───────────────────────────────────── */
@media (max-width: 767px) {
    .product-hero {
        padding: 12px 0 16px !important;
        overflow: hidden;
    }

    /* Ensure row doesn't overflow */
    .product-hero .row {
        margin-left: 0;
        margin-right: 0;
    }

    /* Text side */
    .product-hero .col-8 {
        padding-right: 8px;
    }

    /* Image side — smaller on mobile */
    .product-hero .col-4 {
        padding-left: 0;
    }
    .product-hero .col-4 img {
        max-height: 100px !important;
        border-radius: 8px !important;
        box-shadow: 0 3px 10px rgba(0,0,0,0.2) !important;
    }

    /* Breadcrumb — tighter on mobile */
    .product-hero .breadcrumb {
        font-size: 0.7rem !important;
        flex-wrap: nowrap;
        overflow: hidden;
    }
    .product-hero .breadcrumb-item + .breadcrumb-item {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 80px;
    }

    /* Hero title responsive */
    .hero-title {
        font-size: 1.1rem !important;
        line-height: 1.25 !important;
        margin-bottom: 4px !important;
    }

    /* Price badge area */
    .product-hero .d-flex.align-items-center.flex-wrap {
        gap: 6px !important;
    }
    .product-hero .badge {
        font-size: 0.7rem !important;
        padding: 3px 7px !important;
    }
}

@media (max-width: 400px) {
    /* On very small screens, hide image and use full width for text */
    .product-hero .col-4 {
        display: none !important;
    }
    .product-hero .col-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .hero-title {
        font-size: 1.25rem !important;
    }
}

/* ─── Mobile Sticky Action Bar ──────────────────────────────── */
@media (max-width: 991px) {
    .mobile-action-bar {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        z-index: 1060;
        display: flex !important;
        background: #fff;
        border-top: 2px solid #e5e7eb;
        box-shadow: 0 -3px 14px rgba(0,0,0,0.13);
        safe-area-inset-bottom: env(safe-area-inset-bottom);
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    /* Main content bottom padding so sticky bar doesn't cover content */
    main, .main-content {
        padding-bottom: 60px;
    }
}

/* ─── Product Detail — Content Sections ─────────────────────── */
@media (max-width: 767px) {
    .section-heading {
        font-size: 0.92rem !important;
        margin-bottom: 8px !important;
    }

    /* Video responsive */
    #demo-video {
        margin-bottom: 16px !important;
    }

    /* Features 2-col */
    .feature-item span {
        font-size: 0.82rem !important;
    }

    /* Technology badges */
    .tech-stack .badge,
    span.badge.bg-light {
        font-size: 0.75rem !important;
        padding: 4px 8px !important;
    }

    /* Related products compact */
    .related-product-card {
        padding: 8px !important;
    }
}

/* ─── Footer ────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .footer-top {
        padding: 20px 0 16px !important;
    }

    .footer-col-title {
        font-size: 0.8rem !important;
        margin-bottom: 8px !important;
    }

    .footer-link-list li,
    .footer-contact-list li {
        font-size: 0.76rem !important;
        margin-bottom: 5px !important;
    }

    /* Footer bottom */
    .footer-bottom,
    footer > div:last-child {
        padding: 8px 0 !important;
        font-size: 0.75rem !important;
    }

    /* Logo in footer — compact */
    footer img {
        height: 36px !important;
        max-height: 36px !important;
    }
}

/* ─── Home Page Sections ─────────────────────────────────────── */
@media (max-width: 767px) {
    /* Our Clients marquee */
    .client-marquee-item {
        width: 120px !important;
        margin: 0 8px !important;
    }
    .client-marquee-item img {
        height: 55px !important;
    }

    /* Tech stack grid */
    .tech-card {
        padding: 10px 6px !important;
    }
    .tech-card img {
        width: 40px !important;
        height: 40px !important;
    }
    .tech-card div {
        font-size: 0.72rem !important;
    }

    /* Section headings */
    h2.fw-bold { font-size: 1.35rem !important; }
    h3.fw-bold { font-size: 1.15rem !important; }
}

/* ─── CTA Sections ───────────────────────────────────────────── */
@media (max-width: 767px) {
    /* Ready to Get Started etc */
    section.bg-primary h3 {
        font-size: 1.1rem !important;
    }
    section.bg-primary .btn {
        font-size: 0.85rem !important;
        padding: 8px 16px !important;
    }
    section.bg-primary .col-lg-4 {
        margin-top: 12px;
    }
}

/* ─── Fix overflow globally ──────────────────────────────────── */
@media (max-width: 767px) {
    img { max-width: 100%; height: auto; }
    .row { overflow-x: hidden; }
    * { word-break: break-word; }
}

/* ─── Scrollbar hidden on mobile horizontal scroll ─────────── */
.clients-marquee-track::-webkit-scrollbar { display: none; }
