/* ============================================================================
   MOBILE NAVIGATION STYLES
============================================================================ */

@media (max-width: 768px) {
    .custom-navbar {
        padding: 15px 20px;
    }

    .nav-links,
    .button-container {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .mobile-menu.active {
        display: flex;
    }
}

/* ============================================================================
   BUSINESS TYPES SECTION - MOBILE
============================================================================ */

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        margin-top: -45% !important;
    }

    .header-card:not(:first-child) {
        margin-top: -40px;
        z-index: 1;
    }

    .header-card {
        position: relative;
    }

    .tabs {
        display: grid;
        grid-template-columns: repeat(2, auto);
        justify-content: flex-start;
        gap: 10px;
    }

    .tab {
        padding: 6px 12px !important;
        font-size: 12px;
        border: 1px solid #C6C6C6;
        border-radius: 10px;
        white-space: nowrap;
        font-family: var(--font-secondary);
        font-weight: 400;
    }

    .consultation-button-8 {
        font-size: 14px;
    }

    .header-card-content ul {
        padding-left: 0 !important;
        margin: 0 !important;
    }

    .header-card-content ul li {
        padding-left: 2rem;
        position: relative;
        font-size: 0.9rem;
    }

    .header-card-content ul li::before {
        content: '';
        width: 1rem;
        height: 1rem;
        background-color: #183A77;
        background-image: url('../img/Vector-1.png');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        border-radius: 50%;
        display: block;
    }

    .header-card-content-2 ul li::before {
        background-color: #E6C09C;
        background-image: url('../img/Vector-2.png');
    }

    .section-header .container,
    .section-header .container-header {
        padding-left: 20px !important;
        padding-right: 0 !important;
    }

    .section-header .container li {
        font-size: 14px;
    }

    .section-header .container span {
        font-size: 14px;
    }

    .section-header .container p {
        font-size: 14px;
    }
}

/* ============================================================================
   MAIN TEXT SECTION - MOBILE
============================================================================ */

@media (max-width: 768px) {
    .main-text {
        font-size: 14px;
        margin-top: 80%;
    }

    .main-text span {
        font-weight: 600;
        font-size: 26px;
    }

    .main-text p {
        font-weight: 300;
        font-size: 26px;
    }

    .br {
        display: none;
    }

    .main-button {
        background-color: #183A77;
        color: #E6E9F2;
        border: none;
        padding: 15px 35px !important;
        border-radius: 5px;
        font-weight: 500;
        width: 90%;
    }
}

/* ============================================================================
   VIDEO SECTION - MOBILE
============================================================================ */

@media (max-width: 768px) {
    .video-section {
        height: auto;
        min-height: 100vh;
        padding: 6rem 0;
        position: relative;
        display: block;
        bottom: 20px;
    }

    .video-section video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }

    .overlay-container {
        position: relative;
        transform: none;
        top: auto;
        padding: 0 1rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        z-index: 1;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .stat {
        width: 50%;
        flex: 0 0 50%;
        box-sizing: border-box;
        padding: 10px;
    }

    .overlay-container h1 {
        font-size: 40px;
    }

    .overlay-container p {
        font-size: 16px;
        font-weight: 500;
        line-height: 1.4;
        height: 2.8em;
        overflow: hidden;
    }

    .desktop-text {
        display: none;
    }

    .mobile-text {
        display: block;
    }
}

/* ============================================================================
   SERVICES SECTION - MOBILE
============================================================================ */

@media (max-width: 768px) {
    .service-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .service-card {
        height: 21rem;
    }

    .service-card.first-card {
        height: 15rem;
    }

    .service-card.last-card {
        height: 15rem;
    }

    .consultation-btn-card {
        position: absolute;
        left: 30%;
        transform: translateX(-50%);
        border: 1px solid white;
        border-radius: 15px;
        background: transparent;
        color: white;
        padding: 10px 20px;
        font-size: 1rem;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .service-content ul {
        padding-left: 18px;
    }
}

/* ============================================================================
   GOVERNMENT PARTNERS - MOBILE ANIMATIONS
============================================================================ */

@media (max-width: 768px) {
    .cards-top,
    .cards-bottom {
        display: flex;
        flex-wrap: nowrap;
        overflow: hidden;
        width: max-content;
    }

    .cards-top .card,
    .cards-bottom .card {
        flex: 0 0 auto;
    }

    .cards-top {
        animation: moveRight 10s linear infinite;
    }

    .cards-bottom {
        animation: moveLeft 8s linear infinite;
    }

    @keyframes moveRight {
        0% {
            transform: translateX(-100%);
        }
        100% {
            transform: translateX(100%);
        }
    }

    @keyframes moveLeft {
        0% {
            transform: translateX(100%);
        }
        100% {
            transform: translateX(-90%);
        }
    }

    .square-card {
        width: 8em;
        height: 8em;
    }

    .rectangle-card {
        width: 12em;
        height: 6em;
    }
}

@media (max-width: 480px) {
    .square-card {
        width: 6em;
        height: 6em;
    }

    .rectangle-card {
        width: 10em;
        height: 5em;
    }
}

/* ============================================================================
   TESTIMONIALS SECTION - MOBILE
============================================================================ */

@media (max-width: 768px) {
    .swiper-button-prev,
    .swiper-button-next {
        display: none !important;
    }

    .swiper-buttons {
        top: -40px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 35px;
        height: 35px;
    }

    .swiper-pagination {
        display: block;
    }

    .swiper-pagination-progressbar {
        height: 4px;
        background: #ddd;
        width: 40% !important;
        margin-left: auto;
        margin-right: auto;
        position: relative;
    }

    .swiper-pagination-progressbar-fill {
        background-color: #2952A4 !important;
        height: 100%;
        display: block;
    }

    .swiper {
        padding-left: 10px;
        padding-right: 10px;
    }

    .swiper-slide {
        display: flex;
        justify-content: center;
        width: 100% !important;
    }

    .testimonial-card {
        width: 100%;
        max-width: 90%;
        height: auto;
        min-height: 441px;
        padding: 1.5rem;
        box-sizing: border-box;
    }

    .container {
        padding: 0 1rem;
    }

    .swiper-wrapper {
        padding-bottom: 40px;
    }
}

/* ============================================================================
   8 KEY STEPS SECTION - MOBILE
============================================================================ */

@media (max-width: 768px) {
    .swiper-container.image-slider {
        display: block;
    }

    .image-box {
        max-width: 258px;
    }

    .image-container.desktop-layout {
        display: none;
    }

    .swiper-slide {
        gap: 0 !important;
    }

    .swiper-container.image-slider .swiper-wrapper {
        gap: 0 !important;
    }

    .swiper-container.image-slider .swiper-slide {
        margin-right: 0 !important;
        width: 240px !important;
        flex-shrink: 0 !important;
    }

    .swiper-container.image-slider .image-box {
        width: 100%;
        max-width: 258px;
        margin: 0 !important;
    }
}

/* ============================================================================
   SPECIALISTS SECTION - MOBILE
============================================================================ */

@media (max-width: 768px) {
    .specialists-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .specialist-item {
        display: flex;
        flex-direction: row;
        align-items: stretch;
    }

    .specialist-img {
        flex: 0 0 40%;
        max-width: 150px;
        border-radius: 10px 10px 10px 10px !important;
        height: auto;
        object-fit: cover;
        border-radius: 10px 0 0 10px;
    }

    .specialist-card {
        flex: 1;
        padding: 15px;
        margin-top: 0;
        border-radius: 10px 10px 10px 10px;
        background-color: #183A77;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* ============================================================================
   DEVELOPERS SECTION - MOBILE
============================================================================ */

@media (max-width: 768px) {
    .cards-wrapper {
        grid-template-columns: 1fr;
    }

    .developer-card-content {
        flex-direction: row !important;
        align-items: flex-start !important;
    }

    .developer-img {
        height: 7em;
    }

    .developer-card-content.row-layout .developer-img {
        height: 7em;
    }

    .card-developer {
        padding: 10px !important;
    }

    .card-developer > * {
        padding: 0 !important;
    }

    .card-developer p {
        font-size: 14px;
    }

    .card-developer h1 {
        font-size: 20px;
    }

    .card-developer span {
        font-size: 16px;
    }
}

/* ============================================================================
   QUIZ SECTION - MOBILE
============================================================================ */

@media (max-width: 1200px) {
    .form-area {
        width: 90%;
    }
}

@media (max-width: 992px) {
    .container {
        flex-direction: column;
        gap: 0;
    }

    .form-area,
    .sidebar {
        width: 100%;
        flex: none;
    }
}

@media (max-width: 768px) {
    .pick-area-forms {
        grid-template-columns: 1fr;
    }

    .form-area {
        width: 100%;
        padding: 2rem 1rem !important;
    }

    .section-quiz .container {
        flex-direction: column;
    }

    .sidebar {
        order: 0;
        width: 100%;
    }

    .form-area {
        order: 1;
        width: 100%;
    }

    .step-indicator {
        display: none;
    }
}

/* ============================================================================
   PRICING PLANS - MOBILE
============================================================================ */

@media (max-width: 768px) {
    .plan-card {
        flex: 1 1 100%;
        max-width: 100%;
        gap: 10px;
    }

    .plan-card-button {
        width: 100%;
    }

    .plan-container {
        gap: 10px;
    }
}

/* ============================================================================
   CONTACT SECTION - MOBILE
============================================================================ */

@media (max-width: 768px) {
    .section-contact .container {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .contact-form,
    .contact-sidebar-image {
        width: 100%;
        gap: 0;
    }

    .contact-form {
        order: 1;
        padding: 20px !important;
    }

    .contact-sidebar-image {
        order: 2;
    }

    .contact-sidebar-image img {
        width: 100%;
        height: auto;
        display: block;
    }

    .agree-mobile {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 0;
        font-size: 12px !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .inputs-form input[type="checkbox"] {
        appearance: none;
        width: 26px;
        height: 20px;
        border: 2px solid #C6C6C6;
        border-radius: 4px;
        outline: none;
        cursor: pointer;
        position: relative;
    }
}

/* ============================================================================
   FOOTER - MOBILE
============================================================================ */

@media (max-width: 768px) {
    .footer-desktop {
        display: none;
    }

    .footer-mobile {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 100vh;
        background-color: #1E1E1E;
        padding: 20px;
        text-align: center;
        color: white;
    }

    .footer-mobile .footer-icons {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 10px;
    }

    .footer-mobile .footer-icons a img {
        width: 2.5rem;
        height: auto;
    }

    .footer-mobile .footer-contact p {
        margin: 5px 0;
        font-size: 1rem;
    }

    .footer-mobile .footer-contact p span {
        font-weight: 600;
        font-size: 1rem;
    }

    .footer-mobile .footer-links {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        justify-content: center;
        gap: 15px;
        font-size: 1rem;
        font-weight: 600;
        margin: 15px 0;
        font-family: var(--font-secondary);
    }

    .footer-mobile .footer-links a {
        color: white;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 600;
        font-family: var(--font-secondary);
    }

    .footer-mobile .footer-logo {
        margin-top: 550px;
        margin-left: 170px;
    }

    .footer-mobile .footer-bottom-text {
        margin-top: 100px;
        font-size: 12px;
        font-family: var(--font-secondary);
    }
}

/* ============================================================================
   GENERAL MOBILE SPACING AND TYPOGRAPHY
============================================================================ */

@media (max-width: 768px) {
    section {
        margin-bottom: 6rem;
    }

    section:last-child {
        margin-bottom: 2rem;
    }

    .section-header-testimonials {
        padding: 11px;
    }

    .section-header-plan {
        padding: 12px;
    }

    .section-header-specialist {
        padding: 12px;
    }

    .section-header-services {
        padding: 10px;
    }

    .section-header-quiz {
        margin-top: 10rem !important;
    }

    .section-quiz {
        margin-top: -3rem !important;
    }

    .section-header-plan h1 span {
        font-size: 2rem !important;
    }

    .section-8key {
        margin-top: -4rem !important;
    }

    .section-header-specialist h1 {
        font-size: 2rem !important;
    }

    .section-header-specialist p {
        font-size: 1.1rem !important;
    }

    .section-specialist {
        margin-top: -5rem !important;
    }

    .section-developers {
        margin-top: -5rem !important;
    }

    .contact-form-content h1 {
        font-size: 2rem !important;
    }

    .agree-mobile {
        font-size: 13px !important;
    }

    a {
        font-family: var(--font-secondary);
    }
}

/* ============================================================================
   UTILITY CLASSES - MOBILE
============================================================================ */

@media (max-width: 480px) {
    .br-mobile {
        display: block;
    }
}