/* Enhanced Mobile Hero Section Optimization */
@media (max-width: 767px) {
  /* Hero Slider Mobile Optimizations */
  .creative-showcase--slider .swiper-slide {
    min-height: 100vh;
    padding: 60px 0 40px 0 !important;
  }

  .slide-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
    max-width: 100% !important;
  }

  .slide-container .slide-row .slider-content {
    width: 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center;
  }

  .slider-content .slide-subtitle {
    font-size: 12px !important;
    margin-bottom: 20px !important;
    letter-spacing: 1px;
  }

  .slider-content .slide-heading {
    font-size: 32px !important;
    line-height: 1.2 !important;
    width: 100% !important;
    margin-bottom: 20px !important;
    word-wrap: break-word;
    hyphens: auto;
  }

  /* Better background image positioning for mobile */
  .creative-showcase--slider .swiper-slide .slide-bg {
    background-position: center center !important;
    background-size: cover !important;
  }

  /* Enhanced overlay for better text readability on mobile */
  .creative-showcase--slider .swiper-slide .overlay-dark:before {
    opacity: 0.7 !important;
  }

  /* Pagination adjustments for mobile */
  .creative-showcase--slider .banner-horizental .swiper-pagination {
    bottom: 20px !important;
    display: block !important;
  }

  /* Hide navigation buttons on mobile for cleaner look */
  .creative-showcase--slider .creative-button--wrapper {
    display: none !important;
  }

  /* Sections below hero */
  .horizontal-title h2 {
    font-size: 28px !important;
  }
  .horizontal-title p {
    font-size: 16px !important;
  }
  .card-headerr strong {
    font-size: 18px !important;
  }
  .sectors .section-title h2 {
    font-size: 28px !important;
  }
  .sectors .section-title p {
    font-size: 16px !important;
  }
}

/* Very small phones (320px and below) */
@media (max-width: 320px) {
  .slider-content .slide-heading {
    font-size: 28px !important;
    line-height: 1.1 !important;
  }

  .slider-content .slide-subtitle {
    font-size: 11px !important;
  }

  .slide-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Tablet adjustments */
@media (max-width: 991px) and (min-width: 768px) {
  .slider-content .slide-heading {
    font-size: 48px !important;
    line-height: 1.2 !important;
  }

  .slider-content .slide-subtitle {
    font-size: 13px !important;
  }
}

@media (max-width: 991px) {
  .horizontal-title {
    padding: 1rem 1rem 2rem 1rem !important;
  }
  .horizontal-track {
    margin-top: 6rem !important;
  }
}

.sector-card {
  transition: all 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sector-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.sector-image {
  transition: transform 0.3s ease;
}

.sector-card:hover .sector-image {
  transform: scale(1.05);
}

/* Enhanced image fitting for all containers */
.card-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 20px !important;
}

.sector-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 18px !important;
}

/* Ensure card containers maintain proper dimensions */
.card-section {
  border-radius: 20px !important;
  overflow: hidden !important;
}

.sector-card .position-relative {
  border-radius: 18px !important;
  overflow: hidden !important;
}

/* Swiper navigation buttons */
.swiper-button-next,
.swiper-button-prev {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  margin-top: -25px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 16px;
}

@media (max-width: 767px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

/* Enhanced Video Support */
.video-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Ensure video slides have proper overlay */
.swiper-slide:has(.video-container) .overlay-dark:before {
  z-index: 2;
}

.swiper-slide .slide-container {
  z-index: 3;
}

/* Video loading states */
.video-container video[data-loading="true"] {
  background: #1a1a1a;
}

/* Responsive video handling */
@media (max-width: 767px) {
  .video-container video {
    object-fit: cover;
    object-position: center center;
  }
}

/* Systems Section Styles */
.system-overlay.active {
  transform: translateY(0) !important;
}

.systems-slider {
  overflow: visible !important;
  padding: 0 !important;
}

.systems-slider .swiper-wrapper {
  display: flex !important;
  align-items: stretch !important;
}

.systems-slider .swiper-slide {
  height: auto !important;
  display: flex !important;
}

.system-card {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.system-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

.systems-button-prev:hover,
.systems-button-next:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: scale(1.1) !important;
}

.systems-button-next:hover {
  transform: rotate(180deg) scale(1.1) !important;
}

.systems-pagination .swiper-pagination-bullet {
  width: 24px !important;
  height: 24px !important;
  background: transparent !important;
  opacity: 1 !important;
  transition: transform 0.3s ease !important;
}

.systems-pagination .swiper-pagination-bullet:hover {
  transform: scale(1.2) !important;
}

.systems-pagination .swiper-pagination-bullet .circle-progress .path {
  transition: stroke-dashoffset 4s linear;
}

.systems-pagination .swiper-pagination-bullet-active .circle-progress .path {
  stroke-dashoffset: 0 !important;
}

/* Mobile Responsive Styles */
@media (max-width: 767px) {
  .systems-section {
    padding: 40px 0 !important;
    min-height: auto !important;
  }

  .systems-slider-container {
    padding: 0 10px !important;
  }

  .system-card {
    height: 380px !important;
    margin: 0 5px !important;
  }

  .system-content {
    padding: 15px !important;
  }

  .system-content h5 {
    font-size: 16px !important;
    line-height: 1.3 !important;
  }

  .system-content p {
    font-size: 13px !important;
    -webkit-line-clamp: 2 !important;
  }

  .systems-button-prev,
  .systems-button-next {
    width: 40px !important;
    height: 40px !important;
  }

  .systems-pagination .swiper-pagination-bullet {
    width: 20px !important;
    height: 20px !important;
  }
}

@media (max-width: 480px) {
  .systems-slider-container {
    padding: 0 5px !important;
  }

  .system-card {
    margin: 0 !important;
  }

  .systems-pagination .swiper-pagination-bullet .circle-progress {
    width: 20px !important;
    height: 20px !important;
  }
}

@media (max-width: 480px) {
  .systems-section {
    padding: 30px 0 !important;
  }

  .system-card {
    height: 350px !important;
    margin: 0 10px !important;
  }

  .systems-button-prev,
  .systems-button-next {
    display: none !important;
  }

  .systems-pagination {
    margin-top: 25px !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .system-card {
    height: 450px !important;
  }
}

@media (min-width: 1024px) {
  .system-card {
    height: 500px !important;
  }
}
