/* index-mobile.css: Mobile-only overrides for index.php, without affecting desktop styles */

@media (max-width: 767px) {
  .our-expertise-con .owl-carousel,
  .our-expertise-con .owl-stage-outer,
  .our-expertise-con .owl-stage {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 32px;
    overflow: hidden !important;
    height: auto !important;
    width: 100% !important;
  }
  .our-expertise-con .owl-item {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
  }
  .our-expertise-con .owl-carousel img {
    max-width: 80px;
    max-height: 60px;
    object-fit: contain;
  }
  .our-expertise-con .owl-nav,
  .our-expertise-con .owl-dots {
    display: none !important;
  }

  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }
  /* NAVBAR MOBILE FIXES */
  header, nav, .navbar, .navbar-nav {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .navbar-nav li, .navbar-nav a {
    min-height: 44px;
    min-width: 44px;
    font-size: 1rem;
    padding: 10px 12px !important;
    display: block;
    text-align: center;
  }
  .navbar-toggler, .toggle-bar {
    min-width: 44px;
    min-height: 44px;
    font-size: 1.5rem;
    padding: 8px;
    border-radius: 8px;
  }
  /* END NAVBAR MOBILE FIXES */

  /* HERO & MARKETING SECTION */
  .marketing-section {
    padding: 14px 0 6px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff; /* Light by default */
    border-radius: 0 0 16px 16px;
  }
  /* Support for dark mode */
  .dark-theme .marketing-section {
    background: #181818;
  }
  .background-overlay {
    min-height: 110px;
    background-size: cover !important;
    border-radius: 0 0 14px 14px;
  }
  .content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
    width: 100% !important;
    margin: 0 auto;
    padding: 0 12px;
    box-sizing: border-box;
    max-width: 100vw;
    text-align: center;
  }
  .content > * {
    width: 100% !important;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .content .start-btn {
    margin-bottom: 24px !important;
  }
  .content .stat.st1 {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    float: none !important;
    margin-top: 64px !important;
    margin-bottom: 16px !important;
  }
  .content .stat.st2 {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    float: none !important;
    margin-top: 16px !important;
    margin-bottom: 16px !important;
  }
  .title, h1.title, h2.title, h3.title {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1.1 !important;
  }
  .agency-title, .agency, h1.agency-title, h2.agency-title, h3.agency-title, h1.agency, h2.agency, h3.agency {
    margin-top: 0 !important;
    margin-bottom: 24px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1.1 !important;
  }
  .description1.soutitle {
    margin-top: 0 !important;
    margin-bottom: 24px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .content > * {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .content .title { order: 0 !important; }
  .content .start-btn { order: 1 !important; margin-top: 24px !important; }
  .content .stat.st1 { order: 2 !important; }
  .content .stat.st2 { order: 3 !important; margin-bottom: 24px !important; }
  .stat.st1, .stat.st2 {
    margin: 0 auto 24px auto !important;
    min-width: unset;
    max-width: 80vw;
    width: 80vw;
    padding: 8px 0 10px 0;
    font-size: 0.92rem;
    background: rgba(217,217,217,0.13);
    border-radius: 10px;
    color: #fff;
    text-align: center;
    box-shadow: none;
    display: block;
  }
  .stat.st1 {
    margin-top: 0 !important;
    margin-bottom: 24px !important;
  }
  .stat h2 {
    font-size: 1.18rem;
    margin: 0 0 2px 0;
  }
  .stat p {
    font-size: 0.75rem;
    color: #bdbdbd;
    margin: 0;
  }
  .title {
    font-size: 1.05rem !important;
    margin: 2px 0 2px 0 !important;
    text-align: center;
    background: linear-gradient(96.5deg, #FF70A4 40%, #FFCD61 57%);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700 !important;
    line-height: 1.1;
    letter-spacing: -0.0506em;
  }

  /* Reduce margin for AGENCY element */
  .agency-title, .agency {
    margin-top: 2px !important;
    margin-bottom: 8px !important;
  }

  /* Reduce margin for description section below */
  .description1.soutitle {
    margin-top: 0 !important;
    margin-bottom: 16px !important;
  }
  .description1.soutitle {
    font-size: 1rem;
    margin: 0 0 10px 0;
    padding: 0 5px;
    text-align: center;
    white-space: normal !important;
    word-break: break-word;
    max-width: 100vw;
    line-height: 1.5;
  }
  .start-btn, .main-box .start-btn, .content .start-btn {
    width: 80vw !important;
    max-width: 230px !important;
    min-width: 44px;
    min-height: 44px;
    font-size: 1.06rem;
    padding: 12px 0;
    margin: 0 auto 40px auto !important;
    display: inline-block !important;
    background: linear-gradient(90deg, #FF70A4 0%, #FFCD61 100%);
    border: none;
    border-radius: 8px;
    color: #181818;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.09);
    transition: background 0.2s;
    text-align: center;
    white-space: normal;
    touch-action: manipulation;
  }
  .start-btn:active {
    background: linear-gradient(90deg, #FFCD61 0%, #FF70A4 100%);
  }

  /* FEATURE CARDS / SERVICES */
  .feature-cards {
    margin: 32px auto 32px auto !important;
    padding: 18px 0 18px 0 !important;
    background: #222;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    width: 95vw;
    max-width: 420px;
    left: unset;
    right: unset;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    box-sizing: border-box;
  }
  .card {
    margin-bottom: 0;
    width: 90vw;
    max-width: 340px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    background: #232323;
    border-radius: 10px;
    padding: 15px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    box-sizing: border-box;
  }
  .card-title {
    font-size: 1.11rem;
    margin: 8px 0 4px 0;
    font-weight: 600;
  }
  .card-description {
    font-size: 0.98rem;
    color: #bdbdbd;
    margin-bottom: 0;
  }

  /* SERVICES CAROUSEL */
  #services .container, .main-box, .our-expertise-con {
    padding: 0 2vw !important;
  }
  .owl-carousel .item {
    min-width: 90vw;
    max-width: 96vw;
    margin: 0 auto 12px auto;
    box-sizing: border-box;
  }
  .charcol-box {
    padding: 8px 4px;
    font-size: 1rem;
    background: #232323;
    border-radius: 10px;
    color: #fff;
  }
  .charcol-box figure img {
    width: 80vw;
    max-width: 220px;
    height: auto;
    display: block;
    margin: 0 auto 8px auto;
    border-radius: 8px;
  }

  /* TRUSTED COMPANIES */
  #section2 .parentElementSection2 {
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 0;
  }
  .sec2Article1 .section-title {
    font-size: 1.18rem;
    margin-bottom: 7px;
  }
  .company-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin: 8px 0 0 0;
  }
  .company-logos img {
    width: 48px;
    height: auto;
    margin: 2px;
    border-radius: 6px;
    background: #fff;
    padding: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  }

  /* PORTFOLIO */
  .portfolio-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
    padding: 0 3vw;
  }
  .portfolio-item {
    min-width: 92vw;
    margin: 0 auto 10px auto;
    border-radius: 10px;
    overflow: hidden;
  }

  /* FOOTER */
  footer {
    padding: 14px 0 40px 0 !important;
    background: #181818;
    color: #fff;
    font-size: 0.99rem;
    text-align: center;
    border-radius: 16px 16px 0 0;
    margin-top: 24px;
  }

  /* GENERAL CONTAINERS */
  .container-fluid {
    padding: 0 4px;
  }

  /* SECTION TITLES */
  .section-title {
    font-size: 1.13rem;
    font-weight: 600;
    margin: 8px 0;
    text-align: center;
  }
  .Sec3Article2 p {
    font-size: 1rem;
    padding: 0 5px;
    text-align: center;
  }

  /* CAROUSEL NAV ARROWS */
  .owl-carousel .owl-nav .owl-next,
  .owl-carousel .owl-nav .owl-prev {
    font-size: 1.5rem;
    top: 90%;
    left: 10px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  .company-logos img {
    width: 36px;
  }
  .start-btn {
    font-size: 0.98rem;
    padding: 8px 0;
  }
  .title {
    font-size: 1.08rem !important;
  }
}

  /* Fix for overlapping feature cards */
  .feature-cards {
    margin-top: 40px !important;
    margin-bottom: 40px !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
    background: #181818;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    z-index: 2;
    position: relative;
    width: 96vw;
    max-width: 440px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }
  .card {
    z-index: 2;
    position: relative;
    margin-bottom: 0;
    width: 90vw;
    max-width: 370px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.13);
    background: #222;
    border-radius: 12px;
    padding: 18px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  /* Ensure next section starts lower */
  #section2, #services, #section3 {
    margin-top: 30px !important;
    padding-top: 30px !important;
  }

  /* General container adjustments */
  .container-fluid {
    padding: 0 5px;
  }
  .marketing-section {
    padding: 20px 0 10px 0;
  }
  .background-overlay {
    background-size: cover !important;
    min-height: 220px;
  }
  .content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    padding: 0 0 0 0;
    width: 100%;
    flex-wrap: nowrap;
    position: relative;
    margin-bottom: 0;
    margin-top: 0;
  }
  .stat.st1, .stat.st2 {
    margin: 0;
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
  }
  .stat {
    background: rgba(217, 217, 217, 0.13);
    border-radius: 10px;
    padding: 20px 30px;
    margin: 20px 0 0 0;
    color: #fff;
    font-size: 1rem;
    box-shadow: none;
    min-width: 120px;
    max-width: 44vw;
    width: 44vw;
    display: inline-block;
    text-align: center;
    border: none;
  }
  .stat h2 {
    font-size: 2rem;
    color: #fff;
    margin: 0;
    font-weight: bold;
  }
  .stat p {
    margin: 5px 0 0;
    font-size: 0.8rem;
    color: rgba(157, 156, 156, 0.956);
  }
  .title {
    width: 100%;
    order: 3;
    margin: 22px 0 10px 0;
    text-align: center;
    font-size: 2rem !important;
    background: linear-gradient(96.5deg, #FF70A4 40%, #FFCD61 57%);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700 !important;
    line-height: 1.1;
    letter-spacing: -0.0506em;
  }
  .title {
    font-size: 1.5rem !important;
    margin: 15px 0 10px 0;
    text-align: center;
  }
  .description1.soutitle {
    font-size: 1rem !important;
    margin: 0 0 10px 0;
    padding: 0 5px;
    text-align: center;
  }
  .start-btn {
    width: 90vw;
    max-width: 320px;
    font-size: 1.1rem;
    padding: 10px 0;
    margin: 10px auto 0 auto;
    display: block;
  }
  /* Section 2: Trusted Companies */
  #section2 .parentElementSection2 {
    flex-direction: column;
    align-items: center;
    padding: 0;
  }
  .sec2Article1 .section-title {
    font-size: 1.2rem;
  }
  .company-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .company-logos img {
    width: 60px;
    height: auto;
    margin: 3px;
    max-width: 22vw;
    min-width: 36px;
    border-radius: 6px;
    background: #fff;
    padding: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    object-fit: contain;
  }
  /* Section 3: Services */
  #services .container, .main-box, .our-expertise-con {
    padding: 0 3vw !important;
    width: 80vw !important;
    max-width: 340px !important;
    margin: 0 auto 18px auto !important;
    box-sizing: border-box;
    border-radius: 18px;
  }
  .owl-carousel .item {
    min-width: 90vw;
    margin: 0 auto 15px auto;
  }
  .charcol-box {
    padding: 10px 5px;
    font-size: 1rem;
  }
  .charcol-box figure img {
    width: 80vw;
    max-width: 230px;
    height: auto;
    display: block;
    margin: 0 auto;
  }
  .section-title {
    font-size: 1.2rem;
  }
  .Sec3Article2 p {
    font-size: 1rem;
    padding: 0 5px;
    text-align: center;
  }
  /* Carousel nav arrows */
  .owl-carousel .owl-nav .owl-next,
  .owl-carousel .owl-nav .owl-prev {
    font-size: 1.5rem;
    top: 90%;
    left: 10px;
    right: 10px;
  }
  /* Section 4: Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr !important;
    gap: 18px;
    padding: 0 5vw;
  }
  .portfolio-item {
    min-width: 90vw;
    margin: 0 auto 10px auto;
  }
  /* Footer adjustments */
  footer {
    padding: 20px 0 60px 0 !important;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    text-align: center;
  }
  footer * {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    padding: 4px 0 !important;
    word-break: break-word !important;
  }
  .footer-links a, .footer-social a {
    min-width: 44px;
    min-height: 44px;
    display: inline-block;
    margin: 0 8px;
  }
  /* END Footer adjustments */
}

@media (max-width: 480px) {
  .company-logos img {
    width: 40px;
  }
  .start-btn {
    font-size: 0.9rem;
    padding: 8px 0;
  }
  .title {
    font-size: 1.1rem !important;
  }
}
