﻿
@media(max-width:768px) {

    .social-sidebar {
        top: 50%;
    }

        .social-sidebar a {
            font-size: 12px;
            padding: 2px 2px;
            width: 25px;
            height: 25px;
        }

            .social-sidebar a i {
                font-size: 12px;
            }
}

/* Mobile View Fix */
@media (max-width: 767px) {
    .nexa-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
    }

        .nexa-card .icon-circle {
            margin-right: 0 !important;
            margin-bottom: 15px;
        }
}

@media (min-width: 992px) {
    .container-lg, .container-md, .container-sm, .container {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .process-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .icon-box {
        margin-bottom: 15px;
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        position: relative;
        background: #ffffff;
        z-index: 1040;
    }

    .mobile-menu-wrapper {
        position: relative;
        width: 100%;
        height: 100vh;
        overflow: hidden;
        background: #ffffff;
    }

    .mobile-menu {
        position: absolute;
        inset: 0;
        padding: 20px;
        transition: transform 0.4s ease, opacity 0.3s ease;
        background: #111827;
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
    }

    .main-menu {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu.active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .services-menu {
        transform: translateX(-100%);
    }

    .company-menu {
        transform: translateX(100%);
    }

    .mobile-link {
        display: block;
        padding: 16px 0;
        font-size: 16px;
        /* border-bottom: 1px solid #E5E7EB;*/
        text-decoration: none;
        color: #ffffff;
    }

    .submenu-header {
        display: flex;
        align-items: center;
        gap: 20px;
        font-weight: 600;
        padding-bottom: 15px;
        margin-bottom: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        color: #fff;
    }

    .back-main {
        cursor: pointer;
        color: #4da6ff;
    }
}

@media (max-width: 767px) {
    .process-box {
        max-width: 100%;
    }

        .process-box.left,
        .process-box.right {
            margin: 0;
        }
}

@media (max-width: 768px) {
    .feature-section {
        width: auto;
        padding-left: 0;
    }

        .feature-section::before {
            display: none;
        }

    .feature-card {
        padding: 25px;
    }

    .icon-circle {
        position: static;
        margin-bottom: 15px;
    }
}

@media (max-width: 991px) {
    .navbar {
        position: fixed;
        top: 0;
        height: 75px;
        background: #111827;
        border-bottom: 1px solid var(--border);
        backdrop-filter: none;
    }

    .navbar-spacer {
        height: 95px;
    }

    .navbar-collapse {
        z-index: 1056;
        background-color: #111827;
        margin-top: 10px;
        border-radius: 12px;
        padding: 15px 10px;
    }

    .navbar-nav {
        width: 100%;
        text-align: center;
        margin-top: 1px;
    }

        .navbar-nav .nav-link {
            padding: 12px 0;
            font-size: 16px;
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }

            .navbar-nav .nav-link:last-child {
                border-bottom: none;
            }

    .dropdown-menu {
        position: relative !important;
        float: none;
        border: none;
        border-radius: 10px;
        margin-top: 8px;
        padding: 8px 0;
        text-align: center;
    }

    .dropdown-item {
        color: #ffffff;
        padding: 12px 20px;
    }

        .dropdown-item:hover {
            background-color: #1f2937;
            color: var(--primary);
        }

    .d-lg-flex {
        display: none !important;
    }

    .mobile-cta {
        margin-top: 15px;
    }

        .mobile-cta .btn {
            width: 100%;
        }
}

@media (max-width: 768px) {

    .col-md-4, .col-md-3 {
        width: 100%;
    }

    .service-card, .feature-box {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {

    h1 {
        font-size: 26px;
        line-height: 1.3;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }

    p {
        font-size: 25px;
    }

    p, li {
        font-size: 15px;
        line-height: 1.7;
    }

    .service-list li {
        font-size: 16px;
        padding-left: 34px;
        margin-bottom: 14px;
    }

        .service-list li::before {
            width: 22px;
            height: 22px;
            font-size: 12px;
        }
}

@media (min-width: 992px) {
    .service-list li {
        transition: transform 0.25s ease, color 0.25s ease;
    }

        .service-list li:hover {
            transform: translateX(6px);
          /*  color: #ffffff;*/
        }
}

@media (max-width: 767px) {
    .modal-dialog.modal-responsive {
        width: 100%;
        height: 100%;
        margin: 0;
        max-width: 100%;
    }

    .modal-content.consultation-modal-content {
        border-radius: 0;
        height: 100%;
    }

    .modal-body {
        overflow-y: auto;
    }
}

@media (min-width: 992px) {
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        background: #0f1538;
        border-bottom: 1px solid var(--border);
        backdrop-filter: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        padding-top: 12px;
        padding-bottom: 12px;
        transition: all 0.3s ease;
    }

    .navbar-nav .nav-link {
        color: var(--text-main);
        font-weight: 500;
        padding: 8px 16px;
        transition: color 0.3s ease;
    }

        .navbar-nav .nav-link:hover,
        .navbar-nav .nav-link.active {
            color: var(--primary);
        }

    .dropdown-menu {
        background: #0f1538;
        border: none;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    .dropdown-item {
        color: #ffffff;
        padding: 10px 18px;
    }

        .dropdown-item:hover {
            background: rgba(111, 66, 193, 0.15);
            color: #6f42c1;
        }

    .openConsultation {
        background: var(--primary);
        border: none;
        border-radius: 25px;
        padding: 10px 22px;
        font-weight: 600;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .openConsultation:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        }

    body {
        padding-top: 10px;
    }
}

@media (min-width: 576px) {
    .container-sm, .container {
        padding-top: 90px;
    }
}

@media (max-width: 767px) {
    body {
        overflow-x: hidden;
    }

    h1, h2 {
        font-size: 22px !important;
        line-height: 1.3;
    }

    h3 {
        font-size: 18px !important;
    }

    h4 {
        font-size: 20px !important;
    }

    p {
        font-size: 15px !important;
    }

    .hero-row {
        flex-direction: column-reverse;
        text-align: center;
    }

        .hero-row .col-lg-6 {
            width: 100%;
        }

    .container > .row.align-items-center img {
       /* margin-bottom: -84px;*/
    }

    .row.g-4 > div {
        margin-bottom: 15px;
    }

    .service-item {
        margin-bottom: 40px;
    }

        .service-item .row {
            flex-direction: column;
            text-align: center;
        }

    .service-img {
        padding: 15px !important;
    }

    .service-text {
        padding: 0 !important;
    }

        .service-text h3 {
            font-size: 18px !important;
        }

        .service-text h6 {
            font-size: 14px !important;
        }

        .service-text .btn {
            margin-top: 10px;
        }

    .process-card {
        margin-bottom: 15px;
    }

    .process-content {
        flex-direction: row;
        gap: 12px;
    }

    .process-text h5 {
        font-size: 16px !important;
    }


    .process-card p {
        font-size: 14px !important;
        text-align: center;
    }

    .btn {
        width: 100%;
        margin: 8px auto;
        display: block;
    }
}

@media (max-width: 767px) {
    .solution-box,
    .service-item,
    .crm-box,
    .ecommerce-box,
    .app-box {
        display: flex !important;
        flex-direction: column !important;
        text-align: center;
    }

        .solution-box img,
        .service-item img {
            width: 100%;
            max-width: 100%;
            margin-bottom: 20px;
        }

    .solution-content,
    .service-text {
        padding: 0 !important;
    }

        .solution-content h2,
        .service-text h3 {
            font-size: 20px !important;
            line-height: 1.3;
        }

        .solution-content h6,
        .service-text h6 {
            font-size: 14px !important;
        }

        .solution-content p,
        .service-text p {
            font-size: 15px !important;
            line-height: 1.6;
        }

        .solution-content .btn,
        .service-text .btn {
            margin: 16px auto 0;
            display: inline-flex;
            justify-content: center;
        }
}

@media (max-width: 768px) {
    .cookie-consent {
        flex-direction: column;
        text-align: center;
        padding: 18px;
    }

    .feature-card {
        display: flex;
    }
}

@media (max-width: 768px) {
    .cta-row {
        flex-direction: column;
        align-items: flex-start;
    }

        .cta-row .read-more-btn {
            margin-left: 0;
        }
}

@media (max-width: 768px) {
    .back-to-top {
        left: 15px;
        font-size: 24px;
    }
}

@media (max-width: 991px) {
    .feature-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 992px) {

    .solution-block,
    .solution-block.reverse {
        flex-direction: column;
        text-align: center;
    }

    .solutions-hero h1 {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .solution-content h3 {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    /* Fix header overlap */
    body {
        padding-top: 90px; /* adjust based on your header height */
    }

    /* Swiper container */
    .heroSwiper {
        height: auto;
        /*padding: 20px 15px;*/
        margin-top: 0; /* avoid extra gap */
    }

    /* Full section layout */
    .hero-section {
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 0;
        padding-bottom: 0;
    }

        /* Ensure row takes full width */
        .hero-section .row {
            width: 100%;
            margin: 0;
            padding-top: 0;
            padding-bottom: 0;
        }

        /* Text styling */
        .hero-section h1 {
            font-size: 24px;
            line-height: 1.3;
        }

        .hero-section p {
            font-size: 14px;
            margin-bottom: 10px;
        }

        /* Image handling */
        .hero-section img {
            max-height: 420px;
            width: 100%;
            object-fit: contain;
            margin-top: 5px;
            margin-bottom: 0;
        }

        /* Button spacing */
        .hero-section .btn {
            margin-top: 10px;
        }
}

@media (max-width: 992px) {
    .heroSwiper {
        margin-top: -90px;
        /* height: 700px;*/
    }

    .hero-section img {
        max-height: 450px;
    }

    .hero-section h1 {
        font-size: 30px;
    }
}
