/********************* Carousel ****************/
.carousel-caption {
  background-color: rgba(0,0,0,.4) !important;
  bottom: 0;
  left: 0;
  color: #fff;
  width: 100%;
  height: 100%;
  padding: clamp(20px, 15vw, 240px) clamp(20px, 10vw, 140px) 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.carousel-caption h1 {
  font-size: clamp(24px, 5vw, 70px);
  line-height: 1.2;
}

/********************* Join Section ****************/
.join_1li1 span {
  width: clamp(50px, 8vw, 100px);
  height: clamp(50px, 8vw, 100px);
  line-height: calc(clamp(50px, 8vw, 100px) - 10px);
}

.join_1li img {
  height: clamp(120px, 15vw, 150px);
  object-fit: contain;
}

/********************* Features Section ****************/
.feat_3 {
  margin-top: clamp(40px, 10vw, 160px);
  width: min(90%, 800px);
}

.feat_2i2 {
  width: 90%;
  left: 5%;
  bottom: clamp(-100px, -10vw, -130px);
  padding: 1.5rem !important;
}

.feat_2i2 ul li a {
  display: block;
  padding: 0.5rem 1rem;
  background: #ffeaea;
  transition: 0.3s;
  font-size: clamp(0.8rem, 1.2vw, 1rem);
}

/********************* Choose Section ****************/
.choose_1r h4 span {
  font-size: clamp(60px, 10vw, 120px);
}

/********************* Gallery ****************/
.gallery_2i2 {
  padding-top: 25%;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery_2i:hover .gallery_2i2 {
  opacity: 1;
}

#gallery .modal-dialog {
  max-width: 90%;
  min-width: auto;
}

/********************* Responsive Breakpoints ****************/
@media (max-width: 767px) {
  .carousel-caption {
    text-align: center;
    padding: 1rem;
  }

  .trend_2i1 {
    height: auto;
    aspect-ratio: 1/1;
  }

  .feat_2i2 {
    position: static !important;
    width: 100% !important;
    margin-top: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .carousel-caption h1 {
    font-size: clamp(32px, 4vw, 50px);
  }
  
  .join_1li img {
    height: clamp(100px, 12vw, 140px);
  }
}

/* 4K and Large Screen Optimization */
@media (min-width: 1600px) {
  .container-xxl {
    max-width: 1600px;
  }

  .carousel-caption {
    padding: 15vw 20vw 0;
  }

  .feat_2i2 {
    bottom: clamp(-150px, -12vw, -200px);
  }
}

/* Ultra-wide Screens */
@media (min-width: 2500px) {
  .container-xxl {
    max-width: 2000px;
  }

  .carousel-caption h1 {
    font-size: 5rem;
  }
}