@media (min-width: 1440px) {
    /* about page */
    .banner-section .heading-wrap {
        font-size: 50px;
        /* max-width: 846px; */
    }
}
@media screen and (max-width: 1025px) {
    /* about section */
    .content {
        padding: 100px;
    }
    /* about page */
    .banner-section .heading-wrap {
        font-size: 60px;
    }
}

@media (min-width: 1024px) {
    .carousel_card {
        width: 400px;
        height: 600px;
    }
    .carousel_card:nth-child(1) { 
        transform: translate(-50%, -50%) translateX(-60%) scale(0.8);
        opacity: 0.6;
        z-index: 1;
    }
    .carousel_card:nth-child(2) { 
        transform: translate(-50%, -50%) translateX(-30%) scale(0.9);
        opacity: 0.8;
        z-index: 2;
    }
    .carousel_card:nth-child(3) { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        z-index: 3;
    }
    .carousel_card:nth-child(4) { 
        transform: translate(-50%, -50%) translateX(30%) scale(0.9);
        opacity: 0.8;
        z-index: 2;
    }
}

/* M7 Corporation Trusted Brands Section Start*/
/* Responsive Styles */
@media (max-width: 991px) {
    .m7c-brand-item {
      height: 100px;
      padding: 10px;
    }
    
    .m7c-brand-logo {
      max-width: 110px;
      max-height: 60px;
    }
  }
  
  @media (max-width: 767px) {
    .m7c-trusted-brands {
      padding: 40px 0;
    }
    
    .m7c-section-title {
      font-size: 1.4rem;
    }
    
    .m7c-brand-item {
      height: 70px;
      padding: 5px 12px;
    }
    
    .m7c-marquee-track .m7c-brand-item {
      width: 130px;
    }
    
    .m7c-brand-logo {
      max-width: 90px;
      max-height: 45px;
      object-fit: contain;
    }
    
    .m7c-marquee-track .m7c-brand-logo {
      max-width: 90px !important;
      max-height: 45px !important;
    }

    /* Speed up marquee animation on mobile for a better marquee effect */
    .m7c-marquee-ltr .m7c-marquee-track {
      -webkit-animation: m7c-scroll-right 20s linear infinite !important;
      animation: m7c-scroll-right 20s linear infinite !important;
    }

    .m7c-marquee-rtl .m7c-marquee-track {
      -webkit-animation: m7c-scroll-left 20s linear infinite !important;
      animation: m7c-scroll-left 20s linear infinite !important;
    }
  }
  
  @media (max-width: 575px) {
    .m7c-section-title {
      font-size: 1.3rem;
    }
    
    .m7c-brand-item {
      height: 60px;
      padding: 3px 10px;
    }
    
    .m7c-marquee-track .m7c-brand-item {
      width: 110px;
    }
    
    .m7c-brand-logo {
      max-width: 80px;
      max-height: 35px;
    }
    
    .m7c-marquee-track .m7c-brand-logo {
      max-width: 80px !important;
      max-height: 35px !important;
    }
    
    .m7c-stories-link {
      font-size: 0.8rem;
    }
  }
/* M7 Corporation Trusted Brands Section End*/

/* ── Who We Are cards – mobile only ── */
@media (max-width: 767px) {

  /* Switch card inner to CSS grid:
     col 1 = icon (fixed 44px), col 2 = text (rest)
     row 1 = icon / title,  row 2 = – / paragraph  */
  .m7c-about-item-inner {
    display: grid !important;
    grid-template-columns: 44px 1fr !important;
    grid-template-rows: auto auto !important;
    column-gap: 12px !important;
    row-gap: 4px !important;
    padding: 12px 14px !important;
  }

  /* Icon circle: sit in row 1–2, col 1 (spans both rows, centered) */
  .m7c-icon-wrapper {
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;
    align-self: center !important;
    width: 44px !important;
    height: 44px !important;
    line-height: 44px !important;
    margin-bottom: 0 !important;
  }

  .m7c-icon {
    font-size: 18px !important;
  }

  /* Title: row 1, col 2 */
  .m7c-item-title {
    grid-column: 2 !important;
    grid-row: 1 !important;
    font-size: 0.9rem !important;
    margin-bottom: 2px !important;
    align-self: end !important;
  }

  /* Paragraph: row 2, col 2 */
  .m7c-item-text {
    grid-column: 2 !important;
    grid-row: 2 !important;
    font-size: 0.75rem !important;
    line-height: 1.45 !important;
    color: #b8b8b8;
    margin-bottom: 0 !important;
    align-self: start !important;
  }
}

/* Tablet styles */

@media (min-width: 768px) and (max-width: 1023px) {
    .carousel_card {
        width: 300px;
        height: 450px;
    }
    .carousel_card:nth-child(1) { 
        transform: translate(-50%, -50%) translateX(-45%) scale(0.8);
        opacity: 0.6;
        z-index: 1;
    }
    .carousel_card:nth-child(2) { 
        transform: translate(-50%, -50%) translateX(-22%) scale(0.9);
        opacity: 0.8;
        z-index: 2;
    }
    .carousel_card:nth-child(3) { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        z-index: 3;
    }
    .carousel_card:nth-child(4) { 
        transform: translate(-50%, -50%) translateX(22%) scale(0.9);
        opacity: 0.8;
        z-index: 2;
    }

    .carousel-button {
        top: 50%;
    }
    .navigation {
        bottom: 50px;
    }
   
}



@media (max-width: 992px) {
    /* contact section */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info, .contact-form {
        padding: 30px;
}

@media screen and (max-width: 992px) {
    /* nav */
    nav {
        position: relative;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        right: auto;
        width: 80%;
        max-width: 330px;
        min-width: 260px;
        height: 100vh;
        height: 100dvh;
        background: linear-gradient(180deg, #0b0f26 0%, #060918 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-right: 1px solid rgba(58, 134, 255, 0.25);
        border-left: none;
        box-shadow: 15px 0 35px rgba(0, 0, 0, 0.75);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 24px 20px 30px 20px;
        gap: 8px;
        display: flex;
        transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99998;
        overflow-y: auto;
        box-sizing: border-box;
        list-style: none;
    }
    
    .nav-links.active {
        left: 0;
        right: auto;
    }
    
    .nav-links li {
        margin: 0 !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        width: 100%;
        text-align: left;
        box-sizing: border-box;
        list-style: none;
    }

    .nav-links li a:not(.sidebar-logo) {
        display: block;
        width: 100%;
        padding: 12px 16px;
        font-size: 15px;
        font-weight: 500;
        color: #f1f5f9;
        border-radius: 8px;
        transition: all 0.2s ease;
        box-sizing: border-box;
        text-decoration: none;
    }

    .nav-links li a:not(.sidebar-logo):hover {
        background-color: rgba(58, 134, 255, 0.15);
        color: #3a86ff;
        transform: translateX(4px);
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
         /* Project section */
         .web-section-title {
            font-size: 30px;
        }
        .web-section-text {
            font-size: 15px;
        }
        .exp_button{
          font-size: 13px !important;
          padding: 10px 20px !important;
          display: inline-flex !important;
          position: relative !important;
          z-index: 25 !important;
          pointer-events: auto !important;
          cursor: pointer !important;
          touch-action: manipulation !important;
        }
        
        /* img-grid becomes a horizontal marquee on mobile */
        .img-grid {
          display: flex !important;
          flex-direction: row !important;
          grid-template: unset !important;
          transform: none !important;
          overflow: hidden !important;
          width: 100% !important;
          max-width: 100% !important;
          margin: 20px 0 !important;
          gap: 0 !important;
        }

        .img-grid-track {
          display: flex;
          flex-direction: row;
          gap: 12px;
          -webkit-animation: imgMarquee 18s linear infinite;
          animation: imgMarquee 18s linear infinite;
          will-change: transform;
        }

        .img-grid-track .image {
          flex: 0 0 auto;
        }

        .img-grid-track .image img {
          width: 150px !important;
          height: 105px !important;
          border-radius: 8px;
          box-shadow: 0 4px 12px rgba(0,0,0,0.5);
          object-fit: cover;
          transition: none;
          transform: none !important;
        }
        /* Project section */
    /* service section */
    #services {
    padding: 3rem 5%;
    }
    
    h2 {
    font-size: 2rem;
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 5px;
    }

    .service-item {
        padding: 1.2rem 0.8rem;
    }

    .service-item i {
        font-size: 2rem;
        margin-bottom: 0.6rem;
    }

    .service-item h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .service-item p {
        font-size: 0.82rem;
    }
        
    /* about section */
    .flowing-text {
        font-size: 6vw;
    }

    h1 {
        font-size: 8vw;
    }
    .content{
        flex-direction: column;
    }
    .section-title {
        font-size: 2rem;
    }
    
    .about-description {
    font-size: 1rem;
    }
    
    .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
          
 

    /* about page */

        .banner-section .heading-wrap {
        font-size: 50px;
    }
    .content-wrapper {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .graph-image {
        width: 70%;
    }
    .team-grid {
        padding: 1rem;
    }
    
    .team-card {
        padding: 1rem;
    }



  
    /* contact section */
    nav {
    flex-direction: row;
    }
    
    nav ul {
    margin-top: 1rem;
    }
    
    nav ul li {
    margin-left: 0;
    margin-right: 1rem;
    }
    
    .hero h1 {
    font-size: 2rem;
    }
    
    .hero p {
    font-size: 1rem;
    
    }
   

}

@media (max-width: 767px) {
    .carousel_card {
        width: 280px;
        height: 420px;
    }
    .carousel_card-title {
        font-size: 1em;
        bottom: 15px;
        left: 15px;
    }

    .carousel_card:nth-child(1) { 
        transform: translate(-50%, -50%) translateX(-40%) scale(0.7);
        opacity: 0.4;
        z-index: 1;
    }
    .carousel_card:nth-child(2) { 
        transform: translate(-50%, -50%) translateX(-20%) scale(0.8);
        opacity: 0.6;
        z-index: 2;
    }
    .carousel_card:nth-child(3) { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        z-index: 3;
    }
    .carousel_card:nth-child(4) { 
        transform: translate(-50%, -50%) translateX(20%) scale(0.8);
        opacity: 0.6;
        z-index: 2;
    }
    .navigation {
        bottom: 65px;
    }
    .nav-dot {
        width: 8px;
        height: 8px;
    }
    .carousel-button {
        padding: 10px 15px;
        font-size: 18px;
        top: 50%;
    }
    .carousel-button.prev {
        left: 10px;
    }
    .carousel-button.next {
        right: 10px;
    }
    .carousel-titles h4 {
        font-size: 1.2em;
    }
    .image img {
        width: 151px;
        height: 135px;
    }
}
@media screen and (max-width: 635px) {
    /* Project section */
  .image img {
        width: 130px;
        height: 90px;
    }
    /* Project section */
}
@media screen and (max-width: 580px) {
    /* Project section – marquee track stays, just slightly smaller images */
    .img-grid-track .image img {
        width: 120px !important;
        height: 85px !important;
    }
    /* Project section */
}
@media (max-width: 576px) {
        /* contaction section */
        .contact-section {
            padding: 40px 15px;
        }

        .contact-item {
            flex-direction: column;
            text-align: center;
        }

        .contact-icon {
            margin: 0 0 10px 0;
        }

        .map-container {
            height: 300px;
        }
    }
@media screen and (max-width: 550px) {
    /* Project section */
  .image img {
        width: 105px;
        height: 80px;
    }
    /* Project section */
}
@media screen and (max-width: 512px) {
    /* Project section */
    .image img {
        width: 100px !important;
        height: 70px !important;
    }
    /* Project section */
}
@media screen and (max-width: 520px) {
    /* Project section */
    .image img {
        width: 120px;
        height: 80px;
    }
    .web-section-title {
        font-size: 25px;
    }
    .web-section-text {
        font-size: 13px;
    }
    .exp_button{
      font-size: 12px;
    }
    /* Project section */
}    
@media screen and (max-width: 480px) {
          /* client list */
          .banner_section h1 {
            font-size: 1.5rem;
            padding-top: 100px;
          }
          .banner_section p {
            font-size: 0.9rem;
          }
          .banner_section .item {
            width: 100px;
            height: 100px;
          }
          .banner_section img {
            max-width: 50px;
            width: 50px;
          }
          .banner_section  .text {
            margin: 0 0 20px;
          }
    /* about section */
    .section-title {
    font-size: 1.8rem;
    }
    
    .about-description {
    font-size: 0.9rem;
    }
    
    .team-grid {
    grid-template-columns: 1fr;
    }
    /* about page */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .graph-image {
        width: 100%;
    }
    .banner-section .heading-wrap {
        font-size: 40px;
    }
    .banner-section .sub-heading {
        font-size: 12px;
    }

    }
@media screen and (max-width: 445px) {
    /* Project section */

    .image img {
        width: 85px !important;
        height: 65px !important;
    }
    
    /* Project section */
        /* about section */
        .flowing-text {
        font-size: 15vw;
    }
}
        
@media screen and (max-width: 430px) {
    /* contact section */
    .content{
        padding: 0;
    }
}


@media screen and (max-width: 425px) {
    section {
        padding: 0rem 0% !important;
        }
    /* Project section */
  .img-grid {
    gap: 10px;
  }
  .image img {
    width: 100px;
    height: 75px;
  }
  /* Project section */
}
@media screen and (max-width: 392px) {
    /* Project section */
  .img-grid {
    gap: 7px;
  }
  .image img {
        width: 65px !important;
        height: 50px !important;
  }
  /* Project section */
}
@media screen and (max-width: 380px) {
    /* Project section */
  .web-section-title{
    font-size: 20px;
  }
  .web-section-text{
    font-size: 10px;
  }
  .exp_button{
    font-size: 10px;
    padding: 5px 5px;
  }
  .image img {
        width: 95px;
        height: 70px;
    }
    /* Project section */
}
@media screen and (max-width: 375px) {
    .banner-section .heading-wrap {
        font-size: 30px;
    }            
}
/* Small mobile styles */
@media (max-width: 374px) {
    .carousel_card {
        width: 240px;
        height: 360px;
    }
    .carousel_card:nth-child(1) { 
        transform: translate(-50%, -50%) translateX(-30%) scale(0.6);
        opacity: 0.3;
        z-index: 1;
    }
    .carousel_card:nth-child(2) { 
        transform: translate(-50%, -50%) translateX(-15%) scale(0.8);
        opacity: 0.6;
        z-index: 2;
    }
    .carousel_card:nth-child(3) { 
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 1;
        z-index: 3;
    }
    .carousel_card:nth-child(4) { 
        transform: translate(-50%, -50%) translateX(15%) scale(0.8);
        opacity: 0.6;
        z-index: 2;
    }

    .carousel-titles h4 {
        /* top: 170px; */
        font-size: 1em;
    }
    .navigation {
        bottom: 90px;
    }
}
@media screen and (max-width: 360px) {
    /* Project section */
  .image img {
        width: 85px;
        height: 60px;
    }
    /* Project section */
}

@media screen and (max-width: 330px) {
    /* Project section */
  .web-section-title{
    font-size: 18px;
  }
    .image img {
        width: 80px;
        height: 55px;
    }
    /* Project section */
  }

@media screen and (max-width: 320px) {
    .banner-section .heading-wrap {
        font-size: 28px;
    }
    #services {
        padding: 3rem 5%;
        margin-top: -120px;
    }
   
@media screen and (max-width: 992px) {
    /* Ensure all hero / banner headings have full clearance under fixed header */
    .hero,
    .hero-section,
    .hero-wrap,
    .sf-hero,
    .banner-section-one,
    .wma-hero,
    .xai-products-section {
        padding-top: 120px !important;
    }

    /* Universal Feature List & Icon Box fitting across all service pages */
    .feature-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 14px !important;
        margin-bottom: 14px !important;
        padding-bottom: 14px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .feature-icon {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-radius: 10px !important;
        margin-bottom: 0 !important;
        margin-right: 0 !important;
        color: #ffc107 !important;
        flex-shrink: 0 !important;
    }

    .feature-icon i,
    .feature-icon img {
        font-size: 1.15rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
        max-width: 24px !important;
        max-height: 24px !important;
    }

    .feature-content {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .feature-title {
        font-size: 1rem !important;
        font-weight: 600 !important;
        margin-bottom: 4px !important;
        line-height: 1.3 !important;
    }

    .feature-description {
        font-size: 0.82rem !important;
        line-height: 1.45 !important;
        color: #a0aec0 !important;
        margin-bottom: 0 !important;
    }
}









