/* ========================================
   GLOBAL RESPONSIVE CSS
   ONLY media-query rules — does NOT touch desktop layout
   ======================================== */

/* ---- Prevent horizontal scroll (safe global rule) ---- */
html, body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   TABLET — max-width: 991px
   ======================================== */
@media (max-width: 991px) {
  /* About */
  .about-image-items {
    margin-bottom: 40px;
  }
  .about-icon-items {
    flex-direction: column !important;
  }
  .about-icon-items .icon-items {
    width: 100% !important;
  }

  /* Service cards */
  .service-box-items {
    margin-bottom: 20px;
  }

  /* FAQ */
  .faq-wrapper.style1 .row {
    gap: 30px;
  }
  .faq-thumb img {
    max-width: 100%;
    height: auto;
  }

  /* CTA */
  .cta-wrap.style1 .row,
  .cta-wrap.style2 {
    text-align: center;
  }
  .cta-wrap.style1 .btn-wrapper {
    justify-content: center;
    display: flex;
  }

  /* Contact */
  .contact-wrapper-2 .row {
    gap: 30px;
  }

  /* Work process */
  .col-xl-2-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }

  /* Project filter tabs */
  .project-item-wrapper.style1 {
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* ========================================
   SMALL TABLET / LARGE PHONE — max-width: 768px
   ======================================== */
@media (max-width: 768px) {
  /* Hero */
  .hero-wrapper.style1 {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Breadcrumb */
  .breadcrumb-wrapper {
    padding: 60px 0 !important;
  }
  .page-heading h1 {
    font-size: 28px !important;
  }

  /* Section spacing */
  .section-padding {
    padding: 60px 0 !important;
  }
  .space {
    padding: 60px 0 !important;
  }

  /* About */
  .counter-shape {
    display: none;
  }

  /* Service cards */
  .service-box-items {
    padding: 25px !important;
  }

  /* Technology / Offer cards */
  .offer-items {
    padding: 20px !important;
    margin-bottom: 15px;
  }

  /* Work process */
  .col-xl-2-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .work-process-items {
    margin-bottom: 30px;
  }

  /* CTA */
  .cta-title {
    font-size: 22px !important;
    line-height: 1.4 !important;
  }
  .cta-wrap.style2 {
    padding: 30px 20px !important;
  }
  .mt-n150 {
    margin-top: -80px !important;
  }
  .mb-n116 {
    margin-bottom: -60px !important;
  }

  /* Testimonials */
  .testimonial-card.style3 {
    padding: 25px !important;
  }
  .testimonial-card .text {
    font-size: 14px !important;
  }

  /* Blog */
  .blog-card.style1 .blog-card-body {
    padding: 20px !important;
  }

  /* Contact page */
  .contact-info-items .content h3 {
    font-size: 16px !important;
    word-break: break-word;
  }

  /* Footer */
  .copyright-layout {
    flex-direction: column !important;
    text-align: center !important;
    gap: 10px;
  }
  .copyright-layout .layout-link {
    order: 2 !important;
    text-align: center !important;
  }
  .copyright-layout .layout-text {
    order: 1 !important;
    text-align: center !important;
  }
  .about-logo img {
    max-width: 180px;
    height: auto;
  }

  /* Swiper overflow */
  .swiper {
    overflow: hidden;
    max-width: 100%;
  }

  /* Project filter scrollable */
  .project-item-wrapper.style1 {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }

  /* FAQ accordion */
  .accordion-button {
    font-size: 15px !important;
    padding: 15px !important;
  }
  .accordion-body {
    font-size: 14px;
    padding: 15px !important;
  }
}

/* ========================================
   PHONE — max-width: 576px
   ======================================== */
@media (max-width: 576px) {
  /* Breadcrumb */
  .breadcrumb-wrapper {
    padding: 40px 0 !important;
  }
  .page-heading h1 {
    font-size: 24px !important;
  }

  /* Section spacing */
  .section-padding {
    padding: 40px 0 !important;
  }
  .space {
    padding: 40px 0 !important;
  }

  /* About */
  .about-author {
    flex-direction: column !important;
    gap: 15px;
  }

  /* Work process */
  .col-xl-2-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* CTA */
  .cta-title {
    font-size: 18px !important;
  }
  .cta-wrap.style2 {
    padding: 25px 15px !important;
  }

  /* Contact */
  .contact-info-items {
    flex-direction: column !important;
    text-align: center;
    gap: 10px;
  }
  .contact-info-items .icon {
    margin: 0 auto;
  }

  /* Buttons */
  .theme-btn,
  .gt-btn {
    padding: 12px 24px !important;
    font-size: 14px !important;
  }

  /* Footer */
  .footer-area .pt-100 {
    padding-top: 40px !important;
  }
  .footer-area .pb-80 {
    padding-bottom: 30px !important;
  }
  .copyright-wrap {
    padding: 15px 0 !important;
  }

  /* 404 page */
  .error-items h1 {
    font-size: 60px !important;
  }
}

/* ========================================
   EXTRA SMALL PHONE — max-width: 375px
   ======================================== */
@media (max-width: 375px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .breadcrumb-wrapper .page-heading .breadcrumb-items li{
    font-size: 15px;
  }

  .theme-btn,
  .gt-btn {
    padding: 10px 20px !important;
    font-size: 13px !important;
  }
}

