/* ======= LOCAL TOTEM PRODUCTS SECTION ======= */

.page-title {
  text-align: center;
  font-size: 65px;
  color: #000000;
  /*font-weight: 600;*/
  letter-spacing: 1px;
  margin-top: 30px;
  margin-bottom: 10px;
  /*text-transform: uppercase;*/
}
.page-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: #2775e1;
  margin: 10px auto 0;
  border-radius: 3px;
}

.carousel {
  position: relative;
  z-index: 1;
  height: 60vh;
  overflow: hidden;
  pointer-events: none;
}

.carousel-item {
  --items: 8;
  --width: clamp(120px, 25vw, 250px);
  --height: clamp(150px, 25vw, 320px);
  --x: calc(var(--active) * 800%);
  --y: calc(var(--active) * 200%);
  --rot: calc(var(--active) * 120deg);
  --opacity: calc(var(--zIndex) / var(--items) * 3 - 2);
  overflow: hidden;
  position: absolute;
  z-index: var(--zIndex);
  width: var(--width);
  height: var(--height);
  margin: calc(var(--height) * -0.5) 0 0 calc(var(--width) * -0.5);
  border-radius: 10px;
  top: 50%;
  left: 50%;
  user-select: none;
  transform-origin: 0% 100%;
  background: black;
  pointer-events: all;
  transform: translate(var(--x), var(--y)) rotate(var(--rot));
  transition: transform .8s cubic-bezier(0, 0.02, 0, 1);
}

.carousel-box {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity .8s cubic-bezier(0, 0.02, 0, 1);
  opacity: var(--opacity);
}
.carousel-box::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*background: linear-gradient(to bottom, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .5));*/
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.carousel-item .num {
  position: absolute;
  z-index: 1;
  color: #fff;
  top: 10px;
  left: 20px;
  transition: opacity .8s cubic-bezier(0, 0.02, 0, 1);
  font-size: 32px;
}

.contact-btn {
  position: absolute;
  z-index: 2;
  bottom: 20px;
  left: 20px;
  padding: 14px 30px;
  background: #ffffff;
  color: #2775e1;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}
.contact-btn:hover {
  background: #0056b3;
    color: #ffffff;
  transform: scale(1.05);
}

/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {
  .page-title {
    font-size: 3.6rem;
    margin-top: 20px;
  }
  .carousel-item {
    --width: 50vw;
    --height: 70vh;
  }
  .contact-btn {
    font-size: 15px;
    padding: 8px 16px;
    text-align: center;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 25px;
  }
  .carousel {

  height: 80vh;

}

}
@media (max-width: 480px) {
  .page-title {
    font-size: 40px;
    margin-top: 15px;
  }
  .carousel {
    height: 60vh;
  }
  .carousel-item {
    --width: 70vw;
    --height: 45vh;
  }
  .contact-btn {
    font-size: 1rem;
    padding: 14px 0;
    bottom: 10px;
    left: 50%;
    text-align: center;
    width: 60%;
    transform: translateX(-50%);
  }
}
