@media (max-width: 768px) {
  /* Global mobile overflow prevention */
  html, body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    max-width: 100vw !important;
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    left: 0 !important;
    right: 0 !important;
    position: relative !important;
  }

  body {
    position: relative !important;
  }

  * {
    /* max-width: 100vw !important; */
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Force viewport containment for all major sections */
  .preloader,
  .hero-section,
  .hero-section-about-us,
  .about-section,
  .services-section,
  .portfolio-section,
  .client-section,
  .contact-page,
  .footer-section,
  .who-we-are-section,
  .mission-vision-section,
  .PURPOSE-section,
  .culture-section {
    max-width: 100vw !important;
    width: 100vw !important;
    overflow: hidden !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative !important;
  }
  .navbar {
    max-width: 100vw !important;
    width: 100vw !important;
    overflow: hidden !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  /* Container and grid system fixes */
  .container {
    max-width: 100vw !important;
    width: 100vw !important;
    overflow: hidden !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .row {
    max-width: 100vw !important;
    width: 100vw !important;
    overflow: hidden !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .col-12, .col-lg-6, .col-xl-4, .col-lg-3, .col-md-4, .col-4 {
    max-width: 100vw !important;
    width: 100% !important;
    overflow: hidden !important;
    padding-left: 7.5px !important;
    padding-right: 7.5px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* About page specific fixes */
  .hero-section-about-us {
    padding-top: 0px !important;
    overflow: hidden !important;
    width: 100vw !important;
    height: max-content;
    max-width: 100vw !important;
    position: relative !important;
}

  .hero-section-about-us img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }
  .desktop{
    display: none;
  }
  .mobile{
    display: block;
  }

  .who-we-are-section,
  .mission-vision-section,
  .PURPOSE-section,
  .culture-section {
    padding: 40px 15px !important;
    overflow: hidden !important;
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    position: relative !important;
  }

  .section-content {
    width: 100vw !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    position: relative !important;
    padding-left: 4%;
}

  .section-title {
    font-size: 1.2rem;
    padding-left: 15px;
    margin-bottom: 7px;
}

  .title-line {
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .section-text {
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
    word-wrap: break-word !important;
    max-width: 100% !important;
    overflow: hidden !important;
}
  .logo-img {
    width: 100px;
}
.counter-con {
  background: transparent;
  text-align: center;
  padding: 0;
  border-radius: 0;
  filter: drop-shadow(2px 4px 7px black);
  display: contents;
}
.counter-con .col-xl-4::after{
  display: none;
}
.counter-item {
  background: linear-gradient(0deg, #121212, #353535);
  border-radius: 9px;
  margin-bottom: 16px;
  padding: 9px 10px;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
}
.hero-section {
  height: 100vh;
  /* padding-top: 50px; */
}
#carrot-section {
  height: auto;
  padding: 40px 0;
  position: absolute;
  width: 100%;
  top: 55vh;
}
.project-link , .project-link i{
  font-size: 0.5rem;
}
.container{
  display: contents;
}
.about-section {
  background-image: url('../images/mobile/about us.jpg');
}
.about-section {
  padding: 120px 0 0px;
  height: 90vh !important;
}
.services-section {
  padding: 0;
}
.portfolio-section {
  background-image: url('../images/mobile/our work home page.jpg');
}
.about-heading {
  font-size: 1.7rem;
}

.cta-wrapper {
  margin-bottom: 40px;
  height: 101px;
}
.services-section {
  padding-bottom: 150px;
}
.portfolio-section {
  height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
}

.jquery-prev:hover, .jquery-next:hover {
  background: transparent;
  color: #da4238;
  transform: translateY(-50%) scale(1.1);
}

.portfolio-text h2 {
  font-size: 1.05rem;
}
.portfolio-text p {
  font-size: 0.7rem;
  text-align: start;
  margin-bottom: 15px;
}
.portfolio-text a {
  font-size: 0.8rem;
}
.client-section h2 {
  font-size: 1rem;
  padding: 10px 45px;
}
.contact-title {
  font-size: 0.65rem;
}
.contact-section .contact-title {
  font-size: 0.65rem;
  width: 90%;
  /* padding-left: 7%; */
}
.section-header h3 span {
  font-size: 0.5rem;
  opacity: 0.5;
}
.section-title, .contact-section-title {
  margin-bottom: 20px;
}
.contact-section-title {
  padding-left: 7%;
}
.contact-content-part .form-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-bottom: 17px;
  padding-bottom: 14px;
  border-bottom: 1px solid #343434;
  margin-left: 7% !important;
}
.contact-content-part .form-group input, .contact-content-part .form-group textarea{
  color: #000;
}
.contact-content-part .form-group input::placeholder, .contact-content-part .form-group textarea::placeholder{
  color: #000;
  font-size: 0.7rem;
  padding-left: 10px;
  padding-top: 10px;
}
.contact-content-part .form-group input:focus, .contact-content-part .form-group textarea:focus{
  color: #000;
}
.theme-btn{
        padding: 7px 27px;
        margin-top: 13px;
        line-height: 1;
        margin-bottom: 23px;
        font-size: 0.7rem;
        position: relative;
        left: 24px;
    }
.form-control {
  font-size: 0.6rem;
}
.form-control::placeholder {
  font-size: 0.6rem;
}
.form-control:focus {
  font-size: 0.6rem;
}
.carrot-img {
  margin-top: -30px;
  margin-bottom: -116px;
}
.services-section h2 {
  font-size: 0.9rem;
  padding: 20px 40px;
}
.cta-button {
  background: #e0e0e0;
  padding: 3px 23px;
  font-size: 0.7rem;
  border-radius: 9px;
  color: #000;
  font-weight: 600;
  letter-spacing: 1px;
  filter: drop-shadow(4px 10px 10px #00000030) !important;
}
.cta-button a {
  text-decoration: none;
  color: black !important;
}
.option.active {
  flex-grow: 1;
  height: auto;
  min-height: 170px;
  max-width: none;
  margin: 0;
  border-radius: 15px !important;
  flex-direction: column;
  padding: 20px;
}
.options .option .info .main {
  font-weight: bold;
  display: flex;
  flex-direction: row;
  rotate: 0deg;
  width: 100%;
  top: 17px;
  font-size: 0.7rem;
}
.options .option:not(.active) .label {
  bottom: 4px;
  right: 6px;
}
.options .option .label {
  flex-direction: row-reverse;
}
.option.active .info {
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin: 0px;
  align-items: center;
}
.active .service-image p {
  width: 60%;
  display: block;
  text-align: left;
  padding-right: 0;
}
.option.active .info .main {
  font-size: 0.7rem;
  margin-bottom: 0;
  width: 50%;
}
.option.active .label .icon {
  opacity: 1;
}
.service-image {
  width: 100%;
  padding-top: 20px;
  padding-top: 0;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
}

.service-image img {
  width: 45%;
  max-width: 150px;
  object-fit: contain;
  display: block;
  margin-bottom: 0;
}

.service-image p {
  font-size: 0.6rem;
  line-height: 1.4;
  text-align: left;
  display: block;
  margin: 0;
}
.portfolio-section {
  min-height: auto;
  padding: 40px 20px;
  position: relative;
}
.portfolio-section::before {
    content: "";
    position: absolute;
    top: 50%;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 1;
  } 

  .portfolio-content {
    padding: 0;
  }
  .mission-box,
  .vision-box {
    padding: 25px 15px !important;
    margin-bottom: 20px !important;
    border-radius: 15px !important;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    position: relative !important;
  }
  .mission-box .box-title .title-line, .vision-box .box-title .title-line {
    left: 0;
    height: 30px;
    width: 2px;
}
.mission-box .box-title, .vision-box .box-title {
  padding-left: 10px !important;
}

  .box-title {
    font-size: 0.9rem !important;
    margin-bottom: 15px !important;
    word-wrap: break-word !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .box-text {
    font-size: 0.65rem !important;
    line-height: 1.4 !important;
    word-wrap: break-word !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .hero-logo-slider-container {
    padding: 15px 0 !important;
    overflow: hidden !important;
    width: 100% !important;
  }
  .hero-logo-slider-container {
    margin-top: -120px;
}
.portfolio-text {
  text-align: start;
}

  .hero-logo-slider {
    overflow: hidden !important;
    width: 100% !important;
  }

  .hero-logo-item {
    min-width: 80px !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .hero-logo-item img {
    width: 70px !important;
    height: 50px !important;
    max-width: 100% !important;
    object-fit: contain !important;
}
.sliding-pictures {
  min-height: 200px;
}
  /* About page specific mobile fixes */
  .about-carrot-img {
    display: none !important;
  }

  .about-carrot-img img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Ensure proper spacing on mobile */
  .mission-vision-section .row {
    margin: 0 !important;
  }

  .mission-vision-section .col-lg-6 {
    padding: 0 7.5px !important;
  }

  /* Fix any potential animation overflow */
  .mission-box,
  .vision-box {
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
  }

  /* Fix GSAP animation overflow on mobile */
  .who-we-are-section .section-content, .who-we-are-section .section-title, .who-we-are-section .section-text, .mission-box, .vision-box, .PURPOSE-section .section-content, .PURPOSE-section .section-title, .PURPOSE-section .section-text, .culture-section .section-content, .culture-section .section-title, .culture-section .section-text {
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
    perspective: 1000px !important;
    overflow: hidden !important;
    max-width: 100vw !important;
    width: 88vw !important;
    position: relative !important;
}

  /* Force all GSAP animated elements to stay within bounds */
  .gsap-marker-start,
  .gsap-marker-end,
  .gsap-marker-scroller-start,
  .gsap-marker-scroller-end {
    display: none !important;
  }

  /* Prevent any element from going outside viewport */
  .gsap-marker-start,
  .gsap-marker-end,
  .gsap-marker-scroller-start,
  .gsap-marker-scroller-end,
  [class*="gsap-"] {
    max-width: 100vw !important;
    overflow: hidden !important;
  }

  /* Ultimate overflow prevention */
  div, p, h1, h2, h3, h4, h5, h6, span, a, img, section, article, aside, header, footer, nav, main {
    /* max-width: 100vw !important; */
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  /* Fix any potential absolute positioned elements */
  [style*="position: absolute"],
  [style*="position:fixed"] {
    max-width: 100vw !important;
    overflow: hidden !important;
  }

  /* Ensure viewport width is respected */
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
  }

  /* Additional overflow prevention */
  .swiper-container,
  .swiper-wrapper,
  .swiper-slide {
    max-width: 100vw !important;
    overflow: hidden !important;
  }

  /* Fix any potential margin/padding issues */
  .py-140, .py-135, .py-100, .rpy-100 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Ensure no element extends beyond viewport */
  .rel, .z-1, .z-2 {
    max-width: 100vw !important;
    overflow: hidden !important;
  }

  .logo-item {
    min-width: 100px;
    text-align: center;
  }

  .options {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    min-width: 300px;
    max-width: 100%;
    width: calc(100%);
    height: auto;
    padding: 20px 0px;
}
.options .option {
  max-width: 90% !important;
  margin-left: 5% !important;
  padding: 10px;
}
.options .option .label .icon {
  height: 36px;
}
.options .option:is(.active) .label .icon img {
  display: contents;
}
.options .option:not(.active) .info  .service-image , .options .option:not(.active) .info p {
    display: none;
}
.options .option:is(.active) .info  .service-image , .options .option:is(.active) .info p {
  display: flex;
}
.options .option:not(.active) .info > div {
  left: 12px;
  width: 240px;
}
.options .option .info .main {
    rotate: 0deg;
}
.options .option .info .main {
    font-weight: bold;
    display: flex;
    flex-direction: row;
    width: 100%;
    top: 0;
}
.count-text, .count-plus {
  font-size: 1.2rem;
  font-weight: 700;
}

.counter-title {
  font-size: 0.8rem;
  margin: 0;
}
.portfolio-section {
  height: 100vh;
}

.contact-info-part {
  font-size: 18px;
  padding: 24px 15px 24px;
  background: #222222;
  border-radius: 30px;
  width: 90%;
  position: relative;
  left: 5%;
}
.getintouch {
  font-size: 1.2rem;
}
.contact-info-part p {
  color: #666666;
  font-size: 1rem;
  font-weight: 500;
  margin-top: -10px;
}
.c-info-item .title {
  display: block;
  margin-bottom: 0px;
  color: #666666;
  font-size: 1rem;
  font-weight: 500;
}
#contact a {
  font-size: 0.5rem;
}
.social-style-two a {
  font-size: 0.6rem;
}
.c-info-item {
  margin-bottom: 10px;
}
.c-info-item .social-style-two a{
  width: 12px;
}
.copyright-text {
  font-size: 0.6rem;
}
.contact-page {
  padding-top: 60px;
  padding-bottom: 20px;
}

/* About page specific mobile fixes */


.ceo-intro-section {
  padding-top: 124px;
  padding-left: 5%;
  padding-right: 5%;
  display: flex;
}
.team-contact-page form {
  width: 94%;
}
.title-line {
  left: 17px;
  height: 23px;
  width: 3px;
}
.who-we-are-section .title-line, .PURPOSE-section .title-line, .culture-section .title-line {
  left: 0;
  height: 40px;
  width: 4px;
}
.ceo-intro-section .section-title {
  font-size: 1rem;
  padding-left: 30px;
}
.ceo-info .ceo-name {
  font-size: 0.9rem;
  margin-top: 20px;
}
.ceo-info .ceo-role {
  font-size: 0.8rem;
  margin-bottom: 4%;
  margin-top: -7px;
}
.ceo-info .ceo-bio {
  font-size: 0.8rem;
  line-height: 1.2;
}
.ceo-info .ceo-links h4 {
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0;
}
.ceo-info .social-link i {
  font-size: 0.8rem;
}
.ceo-info .social-link span {
  font-size: 0.7rem;
}
.ceo-content {
  padding-left: 0px;
}
.team-overview-section .section-title {
  font-size: 0.9rem;
  padding-left: 27px;
}
.team-overview-section .section-text {
  width: 90%;
  padding-left: 5%;
}

/* Portfolio page specific mobile fixes */
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  flex-direction: row;
  align-content: center;
  align-items: center;
}

/* Mobile slider specific styles */
.mobile-image {
  display: flex !important;
  width: 100% !important;
  height: auto !important;
  padding: 10px !important;
}

.mobile-image img {
  width: 100% !important;
  height: auto !important;
  max-height: 300px !important;
  object-fit: contain !important;
  border-radius: 8px !important;
}

/* Hide desktop grid on mobile */
.desktop-grid {
  display: none !important;
}

/* Ensure mobile slider works properly */
.portfolio-swiper .swiper-slide {
  width: 100% !important;
  height: auto !important;
  flex-shrink: 0 !important;
}

.portfolio-swiper .swiper-slide .mobile-image {
  width: 100% !important;
  height: auto !important;
}

.portfolio-swiper .swiper-wrapper {
  display: flex !important;
  width: 100% !important;
}

.portfolio-swiper .swiper-slide {
  flex-shrink: 0 !important;
  width: 100% !important;
}
/* Portfolio cover section mobile styles */
.portfolio-cover-section {
  height: 67vh;
}
.play-button-overlay {
  z-index: 9999999;
  height: 100%;
}
.video-container:hover .play-button{
  z-index: 9999999;
}
.portfolio-title {
  font-size: 0.8rem;
  letter-spacing: 1px;
}
.portfolio-text-content {
  padding-right: 0;
  text-align: left;
  margin-bottom: 6px;
}
.cover-image-container {
  height: 50vh;
  padding-top: 0px;
}

.cover-image {
  height: 70%;
}
.portfolio-description {
  font-size: 0.8rem;
  transition: opacity 0.3s ease;
}
.portfolio-title {
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-bottom: 5px;
  display: flex;
  gap: 7px;
  flex-direction: row;
  align-content: center;
  align-items: center;
  justify-content: flex-start;
  transition: opacity 0.3s ease;
}
.tab-btn {
  width: 29%;
  max-width: 200px;
  padding: 6px 7px;
  font-size: 0.5rem;
}
.tab-btn:hover {
  border: 1px solid #da4238;
  color: #da4238;
  transform: translateY(0px);
}
.section-header {
  text-align: center;
  gap: 6px;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
}
.project-section .section-header {
  text-align: start;

}
.project-link{
  position: absolute;
  right: 36px;
}
.section-header h3 {
  font-size: 0.5rem;
}
#websites-content .section-header h3 {
  width: fit-content;
}
.section-header .title-accent {
  height: 25px;
}
#websites-content .section-header .title-accent, #social-media-content .section-header .title-accent {
  height: 30px;
}
.title-icon {
  width: 21px;
}
.project-section-title {
  margin: 0px 0 20px 0;
}
.cta-subtitle {
  font-size: 0.7rem;
  margin-bottom: 0;
  line-height: 1.2;
}
.cta-title {
  font-size: 0.85rem;
}
.cta-button-container {
  margin-top: 14px;
  height: 103px;
  padding-top: 11px;
}
.portfolio-title .title-accent {
  display: inline-table;
  width: 3px;
  height: 20px;
  background-color: #da4238;
  margin-right: 15px;
  vertical-align: middle;
}
.portfolio-content-section {
  padding: 0;
}
.pictures-container {
  height: auto;
  width: auto;
  margin-bottom: 0;
}
.cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80vh;
  bottom: 0;
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: flex-start;
  flex-direction: column;
}
  .css-client-slider {
    height: 150px;
    overflow: hidden !important;
    max-width: 800vw !important;
  }
  .client-track {
    display: flex !important;
    animation: clientScroll 22s linear infinite;
    gap: 0 !important;
    width: max-content !important;
  }
  .client-logo {
    height: auto;
    padding: 10px;
    display: block !important;
    min-width: 120px !important;
    margin: 0 10px !important;
    flex-shrink: 0 !important;
    filter: none;
}
  .client-logo img {
    max-height: 90px;
    width: auto;
  }
  .client-slider-container {
    padding: 0 20px;
    margin-top: 0;
    overflow: hidden !important;
  }
  
  /* CSS Slider animations for mobile */
  @keyframes logoScroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-20%);
    }
  }
  
  @keyframes clientScroll {
    0% {
        transform: translateX(0);
    }
    9% {
        transform: translateX(0%);
    }
    10% {
        transform: translateX(-11%);
    }
    19% {
        transform: translateX(-11%);
    }
    20% {
        transform: translateX(-22%);
    }
    29% {
        transform: translateX(-22%);
    }
    30% {
        transform: translateX(-33%);
    }
    39% {
        transform: translateX(-33%);
    }
    40% {
        transform: translateX(-44%);
    }
    49% {
        transform: translateX(-44%);
    }
    50% {
        transform: translateX(-55%);
    }
    59% {
        transform: translateX(-55%);
    }
    60% {
        transform: translateX(-66%);
    }
    69% {
        transform: translateX(-66%);
    }
    70% {
        transform: translateX(-77%);
    }
    79% {
        transform: translateX(-77%);
    }
    80% {
        transform: translateX(-88%);
    }
    89% {
        transform: translateX(-88%);
    }
    90% {
        transform: translateX(-99%);
    }
    100% {
        transform: translateX(-99%);
    }
}
  
  /* CSS Logo slider mobile fixes */
  .css-logo-slider {
    overflow: hidden !important;
  }
  .logo-track {
    display: flex !important;
    animation: logoScroll 25s linear infinite;
    gap: 0 !important;
    width: max-content !important;
  }
  .logo-item {
    display: block !important;
    width: auto !important;
    min-width: 120px !important;
    margin: 0 10px !important;
    flex-shrink: 0 !important;
  }
  .logo-item img {
    width: 80px !important;
    height: 50px !important;
    object-fit: contain;
  }
  .client-section h2 {
    font-size: 0.9rem;
    padding: 10px 45px;
    margin-bottom: 0;
}
.client-section {
  padding: 100px 0 0;
  text-align: center;
}

/* Mobile-specific reading animation optimizations */
.reading-text .char {
  transition: color 0.1s ease !important; /* Smooth transitions for automatic animation */
}
.back-to-top{
  bottom: 80px;
  right: 15px;
}
.space{
  margin-right: 0.3em !important;
}
.reading-text {
  color: #666666;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding-left: 12px;
}
.jquery-prev, .jquery-next {
  background: transparent;
  border: 0;
  color: #DA4237;
  font-weight: bold;
  box-shadow: none;
  padding: 0;
  line-height: 1;
  padding-bottom: 23px;
  font-size: 44px !important;
}

.jquery-prev:disabled, .jquery-next:disabled {
  opacity: 0.3;
  background: transparent;
}

.jquery-slider .jquery-prev, .jquery-slider .jquery-next{
  padding: 0;
}
.services-section h2::before, .services-section h2::after ,.client-section h2::before, .client-section h2::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 26px;
  background-color: #da4238;
}
/* Ensure smooth scrolling on mobile for reading animation */
@media (max-width: 768px) {
  html {
    scroll-behavior: smooth;
  }
}
}