
/* mobile.css */
/* Applies up to tablet width (991px max) */
@media only screen and (max-width: 991px) {
  body {
    overflow-x: hidden;
    font-size: 16px;
  }

@media (max-width: 480px) {
  .desktop-portfolio {
    display: none !important;
  }
}

  .container, .container-fluid, .row {
    padding-left: 15px;
    padding-right: 15px;
  }

  h1, h2, h3 {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    word-break: break-word;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .navbar-collapse {
    background-color: white;
    padding: 1rem;
    z-index: 9999;
  }

  .navbar-nav .nav-link {
    padding: 10px 15px;
    font-size: 1.1rem;
    display: block;
    width: 100%;
  }

  .carousel-caption {
    padding: 1rem;
    font-size: 90%;
    text-align: center;
    background: transparent !important;
  }

  .carousel-caption h1 {
    font-size: 1.8rem;
  }

  .carousel-caption h6 {
    font-size: 1rem;
  }

  .brand-logos img {
    max-width: 90px;
  }


  .btn {
    font-size: 1rem;
    padding: 12px 24px;
  }

  .hero-slider-wrapper {
    display: none !important;
  }

  .mobile-slider-wrapper {
    display: block !important;
    padding: 20px;
  }

  .mobile-slider-wrapper .swiper {
    width: 100%;
    height: auto;
  }

  .mobile-slider-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
  }
}

/* By default: mobile slider hidden on desktop */
.mobile-slider-wrapper {
  display: none;
}

/* Optimizations for small mobile (phones only) */
@media only screen and (max-width: 767px) {
  .carousel-caption h1 {
    font-size: 1.4rem !important;
    line-height: 1.4;
    font-weight: 600;
    text-align: center;
    padding: 0 10px;
    word-break: break-word;
  }

  .carousel-caption h6 {
    font-size: 0.85rem !important;
    text-align: center;
    padding: 0 10px;
  }

  .carousel-item {
    min-height: 300px;
  }

  .navbar-brand .main-logo {
    max-height: 50px;
  }

  .hero-desktop-text {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .hero-mobile-text {
    display: block !important;
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 500;
    color: white;
    text-align: center;
    padding: 10px 15px;
    position: relative;
    z-index: 5;
    background: transparent !important;
  }

  .carousel-inner,
  .carousel-item,
  .carousel-caption {
    background: transparent !important;
  }
}

/* Default desktop: keep mobile <p> hidden */
.hero-mobile-text {
  display: none !important;
}

.carousel-caption h6 {
  font-size: 0.85rem !important;
  text-align: center;
  padding: 0 10px;
  margin-bottom: 10px;
  position: relative;
  z-index: 5;
}

.mobile-slider-wrapper {
  display: block !important;
  padding: 10px 20px;
  margin-top: 10px;
  margin-bottom: 20px;
  background-color: transparent;
}


.carousel-item {
  min-height: auto !important;
  height: auto !important;
}

@media only screen and (max-width: 767px) {
  .hero-mobile-text {
    display: block !important;
    color: white;
    font-size: 1rem;
    text-align: center;
    z-index: 5;
    position: relative;
    margin-top: 10px;
  }
}
/* Only show this on mobile */
@media (max-width: 991px) {
  .mobile-slider-wrapper {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }

  .mobile-slider-wrapper .swiper {
    margin: 0 auto;
    width: 100% !important;
  }

  .mobile-slider-wrapper .swiper-slide img {
    border-radius: 10px;
    object-fit: cover;
    width: 100%;
    height: auto;
  }
}

/* Hide from desktop */
@media (min-width: 992px) {
  .mobile-slider-wrapper {
    display: none !important;
  }
}

/* Default desktop visibility */
.desktop-only {
  display: block;
}
.mobile-only {
  display: none;
}

/* Mobile override */
@media (max-width: 767px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
    color: white;
    font-size: 0.9rem;
    text-align: center;
    margin: 2px 0;
  }
}

