/* mobile */
@media (max-width: 767px) {

    .section {
        padding: 30px 0;
    }

    .services-grid, .why-features, .process-steps {
        grid-template-columns: repeat(1, 1fr);
    }

    .hero h1 {
        font-size: 44px;
    }

    .cta-inner {
        flex-direction: column;
    }

    .scan-process-grid, .scan-gallery {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: repeat(1, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(1, 1fr);
    }

    .grid-2 {
        grid-template-columns: repeat(1, 1fr);
    }

    .stat-box {
        padding: 28px 20px;
    }

    .img-stack {
        height: 300px;
        margin-bottom: 30px;
    }

    .tech-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tech-tab {
        padding: 12px 25px;
    }

    .tech-specs {
        grid-template-columns: 1fr 1fr;
    }

    .tech-panel-body h3 {
        font-size: 22px;
    }

    .gallery-prev, .gallery-next,
    .testimonial-prev, .testimonial-next {
        display: none !important;
    }

    .cobot-diff-item {
        flex-direction: column;
        align-items: start;
        gap: 12px;
        padding: 28px 24px;
    }

    .slide-h1 {
        font-size: 36px;
    }

    .hero-stat-item {
        padding: 16px 20px;
    }

    .stats-row {
        grid-template-columns: repeat(1, 1fr);
    }

    .stat-card {
        border-right: none !important;
        border-bottom: 1px solid var(--border);
    }

    .stat-card:last-child {
        border-bottom: none;
    }

    .industries-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .client-logo {
        flex: 0 0 50%;
    }

    .timeline-item {
        flex-direction: column;
    }

    .timeline-year {
        flex: none;
        border-right: none;
        border-bottom: 1px solid var(--border);
        justify-content: flex-start;
        padding: 16px 24px;
    }

    .timeline-body {
        padding: 20px 24px;
    }

    .values-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .mat-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 25px
    }

    .mat-modal-img-overlay {
        padding: 14px 18px;
    }

    .mat-modal-body {
        padding: 18px 18px 22px;
    }

    .mat-modal-name {
        font-size: 28px;
    }

    #mat-search {
        width: 160px;
    }
    
    .location-strip {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 28px 22px;
    }

    .faq-tabs {
        flex-wrap: nowrap;
        overflow-x: scroll;
        justify-content: start;
    }

    .faq-content {
        padding: 15px 13px;
    }

    .accordion-button {
        gap: 15px;
    }

    .accordion-body {
        padding: 0px 2px 25px 2px !important;
    }

    .post-meta-row {
        flex-direction: row;
        align-items: center;
    }

    .post-author-role {
        font-size: 12px;
    }

    .post-featured-img {
        aspect-ratio: 4 / 3;
    }

    .post-content h2 {
        margin: 40px 0 14px;
        padding-top: 32px;
    }

    .post-table {
        min-width: 560px;
    }
    
    .thank-you-steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .error-404-links {
        gap: 10px 18px;
    }

    .quote-modal {
        padding: 36px 24px 28px;
    }

    .cta-section {
        padding: 40px 0px;
    }

    .blog-search-wrap {
        max-width: 100%;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .pagination .page-numbers {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
        padding: 0 6px;
    }
}

/* mobile-tablet */
@media (max-width: 1023px) {

    .section {
        padding: 50px 0;
    }

    .navbar, .topbar {
        display: none !important;
    }

    .mob-nav {
        --mobile-nav: 75px;
        padding-bottom: var(--mobile-nav);
    }

    .mob-nav-con {
        top: 0;
        position: fixed !important;
        width: 100%;
        height: var(--mobile-nav);
        background: rgba(10, 10, 10, 0.87);
        backdrop-filter: blur(12px);
        transition: 0.5s ease;
        display: flex;
        justify-content: center !important;
        z-index: 999 !important;
        border-bottom: 1px solid var(--border);
    }

    .mob-nav-overlay {
        position: fixed;
        width: 100vw;
        height: 100vh;
        transform: translate(100%, 0);
        display: none;
        transition: 0.8s ease;
        background: rgba(10, 10, 10, 0.92);
        backdrop-filter: blur(12px);
        z-index: 998;
        padding-top: calc(var(--mobile-nav) + 15px);
        padding-bottom: var(--mobile-nav);
        overflow-y: scroll;
    }

    .mob-nav-overlay .container {
        height: 100% !important;
    }
    
    .mob-nav button.nav-toggle {
        width: 40px !important;
        height: 40px !important;
        background: transparent;
        border: 3px solid var(--red);
        border-radius: 100px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .mob-nav button.nav-toggle i {
        font-size: 25px;
        color: var(--red);
    }

    .mob-nav .mob-nav-inner {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        gap: 30px;
        height: 100% !important;
    }

    .mob-nav .nav-links {
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: start;
        gap: 0px;
        height: fit-content;
        width: 100% !important;
    }

    ul.sub-menu {
        grid-template-columns: repeat(1, 1fr);
    }

    .mob-nav a.nav-link {
        color: var(--off-white);
        padding: 15px 2px;
        border: none;
        border-bottom: 2px solid var(--off-white);
        width: 100% !important;
        border-radius: 0;
    }

    .mob-nav a.nav-link:hover,
    .mob-nav a.active {
        background-color: transparent;
        border-color: var(--red);
        color: var(--red);
    }

    .mob-nav a.nav-link:last-child {
        border-bottom: none;
    }

    .mob-dropdown {
        width: 100%;
    }

    .dropdown-btn {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
    }

    .mob-dropdown.open > a.nav-link {
        border-color: #ffffff00;
    }

    .mob-dropdown.open .dropdown-btn i {
        transform: rotate(0deg);
        transition: 0.3s ease;
    }

    .mob-dropdown.open .dropdown-btn i {
        transform: rotate(180deg);
    }

    .dropdown-content {
        max-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        background-color: var(--dark);
        padding: 0 18px;
        border-radius: 10px;
        transition: max-height 0.35s ease;
    }

    .grid-4, .grid-3, .grid-2 {
        gap: 20px;
    }

    .container {
        padding: 0 24px;
    }

    .hero-swiper {
        height: 75vh;
        min-height: 500px;
    }

    .hero-slide-img {
        display: none;
    }

    .hero-stats-bar {
        display: none;
    }

    .hero-swiper .swiper-pagination {
        bottom: 20px !important;
        right: unset !important;
        left: 50% !important;
        transform: translateX(-50%);
        flex-direction: row;
        width: auto !important;
    }

    .hero-swiper .swiper-pagination-bullet {
        width: 20px;
        height: 3px;
    }

    .hero-swiper .swiper-pagination-bullet-active {
        width: 36px;
        height: 3px;
    }

    .hero-slide-number {
        display: none;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card:nth-child(2) {
        border-right: none;
    }

    .stat-card:nth-child(3) {
        border-right: 1px solid var(--border);
    }

    .stat-card:nth-child(1),
    .stat-card:nth-child(2) {
        border-bottom: 1px solid var(--border);
    }

    .clients-strip {
        flex-wrap: wrap;
    }

    .client-logo {
        flex: 0 0 50%;
    }

    .process-steps {
        grid-template-columns: repeat(1, 1fr);
    }

    .hero-stats {
        position: static;
        margin-top: 60px;
    }

    .hero {
        flex-direction: column;
        align-items: flex-start;
    }

    /* footer */
    .ft-logo {
        width: 150px;
    }

    .ft-logo img {
        width: 100%;
    }

    .ft-col {
        margin-top: 3rem !important;
    }

    .ft-bottom {
        display: flex;
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        position: relative;
        min-height: 38px;
        gap: 10px;
    }

    .socials {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        width: 100%;
        position: static;
    }

    .ft-bottom p {
        width: fit-content;
        alignment-baseline: middle;
        text-align: center;
        justify-content: center;
    }

    .ft-bottom-inner {
        justify-content: center;
    }

    .process-step {
        border-right: unset;
        border-bottom: 1px solid var(--border);
    }

    .step-arrow {
        left: 50%;
        transform: translateY(14px);
        top: unset;
        bottom: -14px;
        rotate: 90deg;
    }

    .step-arrow i {
        color: #fff;
        font-size: 12px;
    }

    .tech-panel-img {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .tech-panel-img img {
        height: 240px;
    }

    .gallery-prev {
        left: 0% !important;
        transform: translate(-50%, -50%);
    }

    .gallery-next {
        right: 0% !important;
        transform: translate(50%, -50%);
    }
    
    .banner-content {
        max-width: 100%;
        padding: 60px 0;
    }
    .banner-overlay {
        background: rgba(10, 10, 10, 0.80);
    }

    .mat-layout {
        grid-template-columns: repeat(1, 1fr);
    }

    .mat-sidebar {
        display: none;
    }

    .mat-mobile-filter-btn {
        display: flex;
    }

    #mat-search {
        width: 200px;
    }

    .mat-drawer-body .mat-sidebar {
        display: block;
    }

}

/* tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }    

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .scan-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .scan-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-specs {
        grid-template-columns: repeat(2, 1fr);
    }

    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* when 1 card in last row */
    .service-card:last-child:nth-child(odd) {
        grid-column: span 2;
    }

    .hero {
        min-height: fit-content;
    }

}

/* tablet-desktop */
@media (min-width: 768px) {}

/* desktop */
@media (min-width: 1024px) {

    .mob-nav {
        display: none !important;
    }

    .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .sec-l {
        padding-left: 0px !important;
        padding-right: 2rem !important;
    }

    .sec-r {
        padding-left: 2rem !important;
        padding-right: 0px !important;
    }

    .ft-col {
        padding: 0 !important;
    }

    /* when 2 cards in last row */
    .service-card:last-child:nth-child(3n + 2) {
        grid-column: span 2;
    }

    /* when 1 card in last row */
    .service-card:last-child:nth-child(3n + 1) {
        grid-column: span 3;
    }

    /* when 1 card in last row */
    .value-card:last-child:nth-child(2n + 1) {
        grid-column: span 2;
    }

    .grid-lg-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-lg-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-lg-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .last-no-span div:last-child {
        grid-column: span 1 !important;
    }

    /* Panel image */
    .tech-panel-img {
        position: sticky;
        top: 110px;
    }

    /* ========= HERO SWIPER ========= */
    /* .hero-swiper-section {
        min-height: 97vh;
    } */
}