.floating-logo {
  position: fixed;
  right: 0px;
  top: 53%;
  transform: translateY(-50%);
  z-index: 200 !important;
  background: linear-gradient(90deg,
      rgb(123 193 222 / 60%) 0%,
      rgb(108 174 200 / 57%) 46%,
      rgb(99 192 149) 100%);

  /* rgb(123 193 222 / 60%) 0%,
   rgb(108 174 200 / 57%) 46%, 
   rgb(99 192 149) 100%); */

  padding: 30px 10px;
  border-radius: 20px 0px 0px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
  opacity: 0;
}

.floating-logo.show {
  opacity: 1;
}

.floating-logo.hide {
  opacity: 0;
  transform: translate(160%, -50%);
}

.logo-arrow {
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  user-select: none;
  z-index: 10002;
}

.logo-images {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  z-index: 999999 !important;
}

.logo-images a {
  /* display: inline-block; */
  cursor: pointer;
}

.logo-images img {
  max-width: 150px;
  transition: transform 0.35s ease-in-out;
  will-change: transform;
}

.logo-images a:hover img {
  transform: scale(1.15);
}

.logo-switch {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 70px;
  background: linear-gradient(90deg,
      rgba(4, 53, 73, 1) 0%,
      rgba(13, 92, 122, 1) 46%,
      rgba(3, 99, 54, 1) 100%);
  color: #fff;
  font-weight: bold;
  text-align: center;
  line-height: 70px;
  cursor: pointer;
  z-index: 10000;
  border-radius: 8px 0 0 8px;
}

.logo-switch.hide {
  display: none;
}

.logo-switch.show {
  display: block;
}

/* ===== ANIMASI MODAL ===== */
.modal {
  display: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* modal aktif */
.modal.show {
  display: flex;
  opacity: 1;
}

/* konten modal (awal) */
.modal-content {
  transform: scale(0.7) translateY(-40px);
  opacity: 0;
  transition: all 1.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* konten saat muncul */
.modal.show .modal-content {
  /* transform: scale(1) translateY(0); */
  opacity: 1;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 99999;
}

/* modal-responsive BARU */
.modal-responsive {
  width: 85%;
  /* max-width: 900px; */
  height: auto;
  margin: auto;
  background: transparent;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* .modal-responsive {
  width: 100%;
  max-width: 1000px;
  height: auto;
  max-height: 100vh;
  margin: 7vh auto;
  padding: 0;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
} */

/* close */
.close-modal {
  position: absolute;
  top: 6px;
  right: 10px;
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.modal-header {
  flex: 0 0 20px;
  background: #f4f0f0;
}

.close-modal:hover {
  background: #e53935;
  transform: scale(1.08) rotate(90deg);
}

/* image auto fit */
.carousel-img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

/* ===Logo Modal Icon=== */
.open-modal-icon {
  cursor: pointer;
  display: inline-block;
}

.open-modal-icon .modal-image {
  transform: scale(1);
  /* kondisi awal agak zoom */
  transition: transform 0.3s ease;
  /* animasi halus */
}

.open-modal-icon:hover .modal-image {
  transform: scale(1.15);
  /* zoom out saat hover */
}

/* ===== ZOOM OUT SLIDER IMAGE ===== */
.carousel-item img {
  transform: scale(1.15);
  transition: transform 1.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* saat slide aktif → zoom out */
.carousel-item.active img {
  transform: scale(1);
}

/* fade lebih halus */
.carousel-fade .carousel-item {
  opacity: 0;
  transition-property: opacity;
  transition-duration: 0.8s;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}

/* ===== MOBILE MODE ===== */
@media (max-width: 1024) {
  .floating-logo {
    right: 0px;
    top: 40%;
    padding: 18px 6px;
    gap: 6px;
    border-radius: 15px 0px 0px 15px;
    z-index: 200 !important;
  }

  .logo-images {
    gap: 14px;
  }

  .logo-images img {
    max-width: 90px;
  }

  .logo-arrow {
    font-size: 16px;
  }

  .logo-switch {
    width: 22px;
    height: 60px;
    line-height: 60px;
    font-size: 14px;
    right: 0;
    top: 40%;
  }
}


@media (max-width: 768px) {
  .floating-logo {
    right: 0px;
    top: 40%;
    padding: 18px 6px;
    gap: 6px;
    border-radius: 15px 0px 0px 15px;
    z-index: 200 !important;
  }

  .logo-images {
    gap: 14px;
  }

  .logo-images img {
    max-width: 90px;
  }

  .logo-arrow {
    font-size: 16px;
  }

  .logo-switch {
    width: 22px;
    height: 60px;
    line-height: 60px;
    font-size: 14px;
    right: 0;
    top: 40%;
  }
}

@media (max-width: 480px) {
  .floating-logo {
    top: 40%;
    padding: 14px 4px;
  }

  .logo-images img {
    max-width: 72px;
  }

  .logo-arrow {
    font-size: 14px;
  }
}

/* ===== HOVER ZOOM SLIDER (DESKTOP ONLY) ===== */
@media (hover: hover) and (pointer: fine) {
  .modal-responsive .carousel-item img {
    transition: transform 0.6s ease;
    /* cursor: zoom-in; */
  }

  .modal-responsive .carousel-item.active img:hover {
    transform: scale(1.1);
  }
}

@media (hover: hover) and (pointer: fine) {
  .modal-responsive .carousel-item.active img:hover {
    transform: scale(1.1) translateY(-8px);
  }
}

@media (max-width: 768px) {
  .modal {
    align-items: center;
    justify-content: center;
  }

  .modal-responsive {
    width: 90%;
    max-width: 420px;
    max-height: 70vh;
    margin: auto;
    border-radius: 14px;
    z-index: 201 !important;
  }

  /* animasi mobile: scale lembut */
  .modal-content {
    transform: scale(0.85);
    opacity: 0;
    transition:
      transform 0.45s ease,
      opacity 0.35s ease;
  }

  .modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
  }

  /* gambar menyesuaikan ukuran, TIDAK FULL */
  .carousel-img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    background: #000;
  }

  /* tombol close */
  .close-modal {
    font-size: 20px;
    top: 6px;
    right: 10px;
    top: 6px;
    right: 10px;
    width: 20px;
    height: 20px;

    /* biar lebih kelihatan di gambar terang */
    background: rgba(0, 0, 0, 0.85);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
  }

  /* hover tidak relevan di mobile */
  .close-modal:hover {
    transform: none;
    background: #e53935;
  }

  /* ===== TAP ZOOM (MOBILE) ===== */
  @media (hover: none) and (pointer: coarse) {
    .modal-responsive .carousel-item img {
      transition: transform 0.35s ease;
    }

    /* saat disentuh */
    .modal-responsive .carousel-item.active img:active {
      transform: scale(1.08);
    }
  }

  @media (hover: none) and (pointer: coarse) {
    .modal-responsive .carousel-item.active img:active {
      transform: scale(1.08) translateY(-4px);
    }
  }
}

@media (min-width: 1024) {
  .carousel-img {
    height: 80vh;
    object-fit: cover;
  }

  .modal-content {
    transform: scale(0.7) translateY(-40px);
  }

  .modal-header {
    flex: 0 0 20px;
    background: #f4f0f0;
  }
}

@media (min-width: 769px) {
  .carousel-img {
    height: 80vh;
    object-fit: cover;
  }

  .modal-content {
    transform: scale(0.7) translateY(-40px);
  }

  .modal-header {
    flex: 0 0 20px;
    background: #f4f0f0;
  }
}