/* ==========================================================================
   Tranztech Solutions – Responsive UI Fixes
   ========================================================================== */

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body,
.body-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

#smooth-wrapper,
#smooth-content,
main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
iframe,
svg {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

[class*="ui-container-"] {
  width: 100%;
}

/* Prevent GSAP horizontal shift from clipping content on tablets/phones */
@media (max-width: 991px) {
  .fade-anim {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ─── Header ─── */
@media (max-width: 1199px) {
  .header-2-area .header-2-main-inner {
    gap: 12px;
  }

  .header-2-area .header-2-logo img {
    max-height: 48px;
    width: auto;
  }

  .header-2-area .side-toggle {
    flex-shrink: 0;
  }
}

/* ─── Side panel / mobile menu ─── */
.offset-widget-box .contact-item {
  align-items: flex-start;
}

.offset-widget-box .contact-item .text {
  line-height: 1.6;
  word-break: break-word;
}

.offset-widget-box .contact-item .icon {
  margin-top: 2px;
}

.mobile-menu.mean-container .mean-nav ul li a.mean-expand:empty {
  display: none;
}

/* ─── Hero 5 (home slider) ─── */
@media (max-width: 991px) {
  .hero-5-area {
    margin-top: 80px;
  }

  .hero-5-area > .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-5-box {
    min-height: 420px;
  }

  .hero-5-content {
    margin: 48px 16px 72px 16px !important;
    max-width: none !important;
    width: auto;
  }

  .hero-5-content .hero-5-title {
    font-size: 28px !important;
    line-height: 1.2;
  }

  .hero-5-content .text {
    font-size: 15px;
    line-height: 1.6;
  }

  .hero-5-paginations .slider-active-paginations-wrapper {
    margin-left: 16px;
    margin-right: 16px;
    max-width: none;
    justify-content: center;
  }

  .hero-5-paginations .swiper-pagination-bullets {
    padding: 12px 24px 10px;
  }
}

@media (max-width: 575px) {
  .hero-5-content .hero-5-title {
    font-size: 24px !important;
  }

  .hero-5-box {
    border-radius: 16px;
    min-height: 380px;
  }
}

/* ─── Hero 3 (inner pages) ─── */
.hero-3-area {
  overflow: hidden;
  width: 100%;
}

@media (max-width: 767px) {
  .hero-3-inner {
    padding-top: 120px;
    padding-bottom: 56px;
  }

  .hero-3-content .section-title {
    font-size: 26px;
    line-height: 1.25;
  }

  .hero-3-content .breadcrumb li {
    font-size: 14px;
  }

  .hero-3-shape-1 {
    opacity: 0.35;
  }
}

/* ─── Brand / client logos ─── */
@media (max-width: 767px) {
  .brand-slider-active {
    margin: 0;
    padding: 20px 0;
  }

  .brand-box {
    width: 210px;
    height: 88px;
    padding: 12px 18px;
  }

  .brand-box img {
    height: 56px;
    max-width: 170px;
  }
}

@media (max-width: 575px) {
  .brand-box {
    width: 185px;
    height: 78px;
  }

  .brand-box img {
    height: 48px;
    max-width: 150px;
  }
}

/* ─── About section ─── */
@media (max-width: 767px) {
  .about-area-inner {
    gap: 32px;
  }

  .about-thumb {
    width: 100%;
    max-width: 100%;
    padding-left: 12px;
    padding-top: 12px;
  }

  .about-thumb img {
    max-width: 100%;
    width: 100%;
  }

  .about-experience {
    margin-top: 0;
  }

  .experience-text-box-wrapper {
    margin-bottom: 24px;
  }
}

/* ─── Service 4 slider (home) ─── */
@media (max-width: 991px) {
  .service-4-bg {
    grid-template-columns: 1fr;
  }

  .service-4-bg-start {
    display: none;
  }

  .service-4-bg-end {
    min-height: 260px;
  }

  .service-4-header .section-title {
    font-size: 28px;
    line-height: 1.25;
  }

  .service-4-nav {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
  }

  .services-4-wrapper-box {
    margin-top: 32px;
    overflow: hidden;
  }
}

@media (max-width: 767px) {
  .service-4-box {
    min-height: auto;
  }

  .service-4-box .title {
    font-size: 20px;
    line-height: 1.3;
  }
}

/* ─── Service design page ─── */
@media (max-width: 767px) {
  .service-filter-tabs {
    flex-direction: column;
    align-items: stretch;
    border-radius: 16px;
  }

  .filter-tab-btn {
    width: 100%;
    text-align: center;
  }

  .service-design-card {
    border-radius: 16px;
  }

  .service-design-title {
    font-size: 20px;
    line-height: 1.3;
  }

  .service-card-header-wrap {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* ─── Counter stats ─── */
@media (max-width: 767px) {
  .counter-area-inner {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .counter-wrapper {
    gap: 24px;
  }

  .counter-box {
    padding-left: 0;
    padding-top: 48px;
  }

  .counter-box .icon {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
  }

  .counter-box .content {
    padding: 52px 18px 20px;
    text-align: center;
  }

  .counter-box .number {
    font-size: 32px;
  }

  .counter-box .text {
    font-size: 14px;
    line-height: 1.4;
  }
}

/* ─── Contact info cards ─── */
@media (max-width: 767px) {
  .contact-info-inner {
    padding-top: 40px;
  }

  .contact-info-box {
    padding: 22px 18px 22px;
  }

  .contact-info-box .title {
    margin-right: 0;
    padding-right: 72px;
    font-size: 18px;
    line-height: 1.35;
  }

  .contact-info-box .icon {
    width: 54px;
    height: 54px;
    right: 16px;
    top: 18px;
    padding: 10px;
  }

  .contact-info-box .icon-shape {
    display: none;
  }

  .contact-info-box .contact-list {
    margin-top: 18px;
  }

  .contact-info-box .contact-list li {
    font-size: 15px;
    line-height: 1.65;
    word-break: break-word;
  }

  .contact-map-area {
    margin-top: -60px;
  }

  .contact-map-box iframe {
    min-height: 260px;
    aspect-ratio: auto;
  }
}

/* ─── Project cards ─── */
@media (max-width: 767px) {
  .project-cards-area {
    padding: 48px 0 64px;
  }

  .project-filter-tabs {
    width: 100%;
    border-radius: 16px;
  }

  .project-card-content {
    padding: 20px 18px 22px;
  }

  .project-card-title {
    font-size: 18px;
  }

  .project-card-info {
    font-size: 13px;
  }
}

/* ─── Skills / progress ─── */
@media (max-width: 767px) {
  .skills-area-inner {
    gap: 32px;
  }

  .skills-area .section-title {
    font-size: 26px;
    line-height: 1.25;
  }
}

/* ─── Footer ─── */
@media (max-width: 767px) {
  .footer-3-widget-wrapper {
    gap: 32px;
  }

  .footer-3-blog .title {
    font-size: 15px;
    line-height: 1.5;
    word-break: break-word;
  }
}

.footer-logo {
  border-radius: 20px;
  max-width: 180px;
  height: auto;
}

/* ─── Swiper / sliders ─── */
.swiper,
.swiper-wrapper,
.swiper-slide {
  max-width: 100%;
}

.hero-5-inner .swiper-slide {
  width: 100% !important;
}

/* ─── Project details ─── */
@media (max-width: 767px) {
  .project-details-modern {
    padding: 40px 0 64px;
  }

  .project-details-modern-inner {
    gap: 24px;
  }

  .pd-sidebar {
    width: 100%;
  }

  .pd-title {
    font-size: 24px;
  }
}

/* ─── Section spacing on small screens ─── */
@media (max-width: 767px) {
  .section-spacing,
  .section-spacing-top {
    padding-top: 56px !important;
  }

  .section-spacing,
  .section-spacing-bottom {
    padding-bottom: 56px !important;
  }
}
