/* 🔹🔹🔹 HALAMAN HOME 🔹🔹🔹 */
/* ==========================
   Home - CSS
============================= */
/* Carousel */
.carousel-container {
  width: 100%;
  max-width: 1000px;
  height: 580px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  background: #000;
  margin-bottom: var(--global-margin);
}

.carousel-slide .carousel-item {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: 0.5s ease;
  border-radius: 15px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.carousel-slide .carousel-item .carousel-label {
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  font-size: 11px;
  color: var(--text-color-dark);
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 4px;
  font-weight: bold;
  border-radius: 0 0 8px 8px;
  text-shadow: 1px 1px 3px #000;
}

.carousel-slide .carousel-item:nth-child(1),
.carousel-slide .carousel-item:nth-child(2) {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(0);
  border-radius: 0;
}

.carousel-slide .carousel-item:nth-child(3) {
  left: 58%;
  width: 140px;
  height: 200px;
  z-index: 3;
  transform: translateY(-50%) scale(0.95);
}

.carousel-slide .carousel-item:nth-child(4) {
  left: 70%;
  width: 130px;
  height: 190px;
  z-index: 2;
  transform: translateY(-50%) scale(0.9);
}

.carousel-slide .carousel-item:nth-child(5) {
  left: 81%;
  width: 120px;
  height: 180px;
  z-index: 1;
  transform: translateY(-50%) scale(0.85);
}

.carousel-slide .carousel-item:nth-child(n+6) {
  opacity: 0;
  pointer-events: none;
}

.carousel-item .carousel-content {
  position: absolute;
  top: 50%;
  left: 40px;
  max-width: 300px;
  color: var(--text-color-dark);
  transform: translateY(-50%);
  display: none;
  text-shadow: 1px 1px 3px #000;
}

.carousel-slide .carousel-item:nth-child(2) .carousel-content {
  display: block;
}

.carousel-content .carousel-name {
  font-size: 36px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 10px;
  animation: fadeInUp 0.8s ease forwards;
}

.carousel-content .carousel-des {
  font-size: 13px;
  text-align: justify;
  line-height: 1.4;
  animation: fadeInUp 1s ease 0.2s forwards;
  margin-bottom: 12px;
  max-width: 250px;
}

.carousel-content a button {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: bold;
  border: 1px solid #000;
  background: yellow;
  color: #000;
  cursor: pointer;
  animation: fadeInUp 1s ease 0.4s forwards;
  border-radius: 5px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(3px);
  }
  
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.carousel-button {
  position: absolute;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.carousel-button button {
  width: 40px;
  height: 40px;
  margin: 0 3px;
  margin-bottom: 12px;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition, all 0.3s ease);
  outline: none;
}
.carousel-button button:hover {
    background-color: #000;
    color: #fff;
  }

  .carousel-button button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }


 .carousel-button button:active {
   outline: none;
   box-shadow: none;
   
 }

@media (max-width:768px) {
  .carousel-container {
    height: 280px;
  }

  .carousel-item .carousel-content {
    left: 20px;
    max-width: 80%;
  }

  .carousel-content .carousel-name {
    font-size: 22px;
  }

  .carousel-content .carousel-des {
    font-size: 11px;
    max-width: 200px;
  }

  .carousel-slide .carousel-item:nth-child(3) {
    left: 70%;
    top: 65%;
    width: 75px;
    height: 105px;
  }

  .carousel-slide .carousel-item:nth-child(4) {
    left: 78%;
    top: 68%;
    width: 65px;
    height: 95px;
  }

  .carousel-slide .carousel-item:nth-child(5) {
    left: 85%;
    top: 71%;
    width: 60px;
    height: 85px;
  }

  .carousel-button {
    justify-content: flex-start;
    padding-left: 15px;
    bottom: 10px;
  }

  .carousel-slide .carousel-item .carousel-label {
    font-size: 10px;
  }
}

/* Paket Wisata Terbaik */
.popular-packages-section {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 20px;
  padding: 20px;
  height: 400px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin: 0 auto;
  margin-bottom: var(--global-margin);
  position: relative;
  text-align: left;
}

.flip-card {
  background-color: transparent;
  width: 250px;
  height: 360px;
  perspective: 1000px;
  flex: 0 0 auto;
  position: relative;
  scroll-snap-align: center;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
  filter: blur(8px);
  transition: filter 0.5s ease;
}

.flip-card-front img.loaded {
  filter: blur(0);
}

.flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-radius: var(--border-radius);
  background-color: white;
  color: var(--primary-color);
  text-align: center;
  border: var(--card-border-width) solid #e0e0e0;
  box-shadow: var(--card-box-shadow);
}

.flip-card-back p {
  font-size: var(--body-font-size);
  margin: 10px 0;
}

.flip-card-back a {
  display: inline-block;
  padding: 8px 16px;
  margin: 4px;
  border-radius: var(--border-radius);
  background-color: var(--accent-color);
  color: var(--primary-button-text-color);
  text-decoration: none;
  font-size: 14px;
}

/* Spinner & Shimmer */
.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid #d1d5db;
  border-top: 4px solid var(--accent-color);
  border-radius: 50%;
  z-index: 2;
  opacity: 1;
  animation: spin 0.4s linear infinite;
  transition: opacity 0.6s ease;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  z-index: 1;
  opacity: 1;
  animation: shimmer 1.5s infinite;
  transition: opacity 0.6s ease;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* Efek Lain-lain */
.fade-out {
  opacity: 0;
  pointer-events: none;
}

.about-us p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  text-align: justify;
}

/* Kendaraan */
.vehicle-container {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  margin-top: 12px;
  padding-bottom: 12px;
}

.vehicle-card {
  width: 300px;
  flex-shrink: 0;
  border-radius: var(--border-radius);
  border: var(--card-border-width) solid #e6e7eb;
  padding: 12px;
  background: #fff;
  box-shadow: var(--card-box-shadow);
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.vehicle-title {
  font-weight: 700;
  margin: 8px 0 4px;
}

.vehicle-meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
}

.vehicle-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.vehicle-badge {
  padding: 6px 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vehicle-available {
  background: #dcfce7;
  color: #065f46;
}

.vehicle-booked {
  background: #fee2e2;
  color: #7f1d1d;
}

.vehicle-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
  background: #fff;
  padding-top: 8px;
}

.vehicle-btn-wa {
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 8px 10px;
  text-decoration: none;
  border-radius: 6px;
}

.vehicle-btn-detail {
  background: var(--primary-button-color);
  color: var(--primary-button-text-color);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.vehicle-no-result {
  color: #9ca3af;
  margin-top: 20px;
  font-style: italic;
}

/* Modal Kendaraan */
.vehicle-detailModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.vehicle-detailModalContent {
  background: #fff;
  border: var(--card-border-width) solid #888;
  border-radius: var(--border-radius);
  padding: 20px;
  width: 90%;
  max-width: 500px;
}

.vehicle-detailModal .close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

/* Shimmer & Spinner */
.image-wrapper {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 8px;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  filter: blur(8px);
  transition: filter 0.5s ease;
}

.image-wrapper img.loaded {
  filter: blur(0);
}

.image-wrapper .shimmer,
.image-wrapper .spinner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CSS untuk Promo Terbaru */
.promo-container {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  margin-top: 12px;
  padding-bottom: 12px;
  text-align: left;
}

.promo-card {
  width: 300px;
  flex-shrink: 0;
  border-radius: var(--border-radius);
  border: var(--card-border-width) solid #e6e7eb;
  padding: 12px;
  background: #fff;
  box-shadow: var(--card-box-shadow);
  display: flex;
  flex-direction: column;
}

.promo-card h3 {
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  margin: 8px 0 4px;
  color: var(--primary-color);
}

.promo-card p {
  font-size: var(--body-font-size);
  line-height: 1.4em;
  color: #6b7280;
  margin-bottom: 8px;
}

.promo-card button {
  margin-top: auto;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--primary-button-text-color);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: var(--font-weight-bold);
  background-color: var(--primary-button-color);
}

.event-date {
  font-style: italic;
  color: #555;
}

/* Style untuk indikator scroll */
.scroll-indicator {
  z-index: 20;
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  font-size: 20px;
  color: rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  pointer-events: none;
  /* Efek fade+animasi tarik kiri */
  opacity: 1;
  transition: opacity var(--scroll-indicator-fade-duration) var(--scroll-indicator-fade-ease), visibility var(--scroll-indicator-fade-duration) var(--scroll-indicator-fade-ease);
  animation: pullLeft 2s ease-in-out infinite;
  transition-delay: 0.5s;
  /* delay default saat muncul */
}

.scroll-indicator.hidden {
  opacity: 0;
  visibility: hidden;
  animation: none;
  /* stop animasi saat disembunyikan */
  transition-delay: 0s;
  /* langsung hilang */
}

/* Animasi tarik kiri */
@keyframes pullLeft {
  0% {
    transform: translateY(-50%) translateX(0);
  }

  10% {
    transform: translateY(-50%) translateX(-8px);
  }

  20% {
    transform: translateY(-50%) translateX(0);
  }

  30% {
    transform: translateY(-50%) translateX(-8px);
  }

  40% {
    transform: translateY(-50%) translateX(0);
  }

  100% {
    transform: translateY(-50%) translateX(0);
  }
}

/* Perbaikan wrapper scroller supaya tidak merusak layout */
.scroller-wrap {
  position: relative;
  width: 100%;
  /* ikut lebar parent */
  overflow: hidden;
  /* cegah konten meluber */
}

.scroller-wrap>*:first-child {
  width: 100%;
  /* scroller utama tetap pakai 100% */
}

/* CSS untuk Layanan Driver On Call */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  /* Mengatur agar responsif */
  gap: 9px;
}

.service-item {
  display: flex;
  align-items: flex-start;
  background: #fff;
  padding: 16px;
  border-radius: var(--border-radius);
  border: var(--card-border-width) solid #e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  text-align: left;
}

.service-item:hover {
  background: #f5f9ff;
}

.service-icon {
  font-size: 1.5rem;
  color: var(--primary-button-color);
  margin-right: 15px;
  min-width: 30px;
  text-align: center;
  transition: all 0.4s ease;
}

.service-info {
  flex: 1;
  transition: all 0.3s ease;
}

.service-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.service-description {
  font-size: 0.9rem;
  color: #555;
  max-height: 0;
  overflow: hidden;
  line-height: 1.4;
  margin-top: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: max-height 0.5s ease, margin-top 0.3s ease;
  white-space: pre-wrap;
}

/* Aktif */
.service-item.active {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  background: #f0f8ff;
  border-color: var(--primary-button-color);
}

.service-item.active .service-icon {
  font-size: 2rem;
  margin: 0 0 10px 0;
  color: var(--accent-color);
  animation: spinOnce 0.6s ease;
}

@keyframes spinOnce {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(20deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.service-item.active .service-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service-item.active .service-description {
  max-height: 500px;
  margin-top: 10px;
  opacity: 1;
  transform: translateY(0);
}

/* Animasi per kata/span */
.service-description span {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  white-space: pre;
}

.service-item.active .service-description span {
  animation: fadeUp 0.5s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CTA */
.cta-container {
  text-align: center;
  margin-top: 25px;
}

.cta-btn {
  display: inline-block;
  padding: 10px 22px;
  font-size: 0.95rem;
  border-radius: var(--border-radius);
  background: var(--primary-button-color);
  color: var(--primary-button-text-color);
  text-decoration: none;
  font-weight: var(--font-weight-bold);
  transition: background 0.2s ease;
}

.cta-btn:hover {
  background: #003580;
}

/* Mengapa Memilih Kami Section */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: var(--global-margin);
}

.feature-item {
  width: calc(33.333% - 20px);
  text-align: center;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  border-radius: 12px;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.6s ease;
}

.feature-item:hover img {
  transform: scale(1.1);
}

.feature-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  transition: all 0.4s ease;
}

.feature-item p {
  margin-top: 10px;
  font-size: 14px;
  font-weight: bold;
  font-family: var(--primary-font);
  transition: opacity 0.3s ease;
}

.feature-item.selected {
  background-color: #fff;
  transform: scale(1.1) translateY(8px);
  z-index: 2;
  padding: 5px;
}

.feature-item.selected p {
  opacity: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
}

/* Popup bubble */
.popup-bubble {
  display: none;
  position: absolute;
  z-index: 9999;
  max-width: 220px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fff;
  color: var(--primary-color);
  text-align: center;
  word-wrap: break-word;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  animation: slideUpIn 0.3s ease forwards;
}

.popup-title {
  margin: 0;
  font-size: 14px;
  font-weight: bold;
  font-family: 'Segoe UI', sans-serif;
}

.popup-text {
  margin-top: 6px;
  font-size: 13px;
  font-family: 'Segoe UI', sans-serif;
}

.popup-bubble::after {
  content: '';
  position: absolute;
  border-width: 6px;
  border-style: solid;
}

.popup-top::after {
  top: -12px;
  left: 30px;
  border-color: transparent transparent #fff transparent;
}

.popup-left::after {
  top: 10px;
  right: -12px;
  border-color: transparent transparent transparent #fff;
}

.popup-right::after {
  top: 10px;
  left: -12px;
  border-color: transparent #fff transparent transparent;
}

/* Animasi baru */
@keyframes slideUpIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDownOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(15px);
  }
}

.slide-out {
  animation: slideDownOut 0.3s ease forwards;
}

@media screen and (max-width:768px) {
  .feature-item {
    width: calc(50% - 15px);
  }

  .feature-item img {
    width: 60px;
    height: 60px;
  }

  .feature-item p {
    font-size: 13px;
  }

  .section-wrapper h3 {
    font-size: 22px;
  }

  .popup-bubble {
    font-size: 13px;
    max-width: 160px;
    padding: 8px 10px;
  }

  .feature-item.selected {
    transform: scale(1.05) translate(6px, 8px);
    padding: 5px;
  }
}

/* ===== Gallery Section ===== */
.gallery-section {
  margin-top: var(--section-spacing);
  margin-bottom: var(--section-spacing);
  text-align: center;
  max-width: 1000px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: var(--section-padding);
}

/* Gallery wrapper full-bleed */
.gallery-wrapper {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  border-radius: 25px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.gallery-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  height: clamp(250px, 50vw, 500px);
}

.gallery-slide {
  position: relative;
  flex: 0 0 100%;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.5s ease;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-position: center center;
  object-fit: cover;
  border-radius: 25px;
  display: block;
  transition: transform 4s ease;
  pointer-events: none;
  will-change: transform;
}

/* Overlay atas */
.overlay-top {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: clamp(0.65rem, 1vw, 0.8rem);
  font-weight: bold;
  opacity: 0;
  transition: opacity 1s ease;
  backdrop-filter: blur(3px);
  pointer-events: none;
}

/* Overlay bawah */
.overlay-bottom {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 0.65rem;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity .6s ease, transform .6s ease;
  backdrop-filter: blur(4px);
}

.overlay-bottom.active {
  opacity: 1;
  transform: translateY(0);
}

.overlay-bottom i {
  font-size: 14px;
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 4px rgba(255, 75, 92, 0.6));
  margin-right: 4px;
  margin-top: 4px;
  animation: markerSpin 3s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes markerSpin {
  0% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}

.overlay-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.overlay-text .destination {
  font-size: 0.55rem;
  opacity: 0.9;
}

.overlay-text .city {
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}

.gallery-slide.active .overlay-text .city {
  opacity: 1;
  transform: translateY(0);
}

/* Tombol navigasi */
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 12px 18px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
  transition: background 0.3s;
}

.gallery-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

.gallery-btn.prev {
  left: 15px;
}

.gallery-btn.next {
  right: 15px;
}

/* Dots */
.dots {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  z-index: 2;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: rgba(255, 255, 255, 0.9);
}

/* Placeholder untuk slide kosong */
.gallery-slide img.placeholder {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  width: 100%;
  height: 100%;
  border-radius: 25px;
  object-fit: cover;
}

/* Tombol hanya di desktop */
@media (max-width:767px) {
  .gallery-btn {
    display: none;
  }
}

/* ===== Testimonial Section ===== */
.testimonial-section {
  margin: 60px auto;
  max-width: 1000px;
  padding: 0 20px;
  text-align: center;
}

.testimonial-container {
  width: 100vw;
  max-width: 220px;
  height: 200px;
  perspective: 1200px;
  position: relative;
  margin: 0 auto 40px auto;
}

.korsel-wrapper {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s ease-in-out;
  position: relative;
  transform-origin: center;
}

.korsel-face {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 15px;
  border-radius: 12px;
  border-left: 3px solid var(--primary-color);
  background: var(--card-bg, #fff);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  opacity: 0.3;
  transform: scale(0.9);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: all 0.6s ease;
}

.korsel-face.active {
  opacity: 1;
  transform: scale(1);
}

/* Header */
.testi-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

.testimonial-content img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.testi-header h4 {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3em;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.testi-header span {
  font-size: 11px;
  color: #666;
  display: block;
}

.korsel-face p {
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 6px;
  color: #444;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

/* Rating info */
.rating-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #555;
  margin-top: auto;
}

.rating-info .stars i {
  color: #f5a623;
  margin-right: 2px;
}

.rating-info .meta i {
  margin-right: 4px;
  color: #0073e6;
}

/* Korsel Buttons */
.korsel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.15);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  z-index: 2;
  transition: 0.3s;
}

.korsel-btn:hover {
  background: rgba(0, 0, 0, 0.3);
}

.korsel-btn.prev {
  left: -16px;
}

.korsel-btn.next {
  right: -16px;
}

@media(min-width:768px) {
  .korsel-btn {
    display: flex;
  }
}

/* Dots */
#testi-dots {
  position: absolute;
  bottom: 12px;
  width: 100%;
  text-align: center;
}

.testi-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: 0.3s;
}

.testi-dot.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* Media Query untuk Desktop */
@media (min-width:768px) {
  .testimonial-container {
    width: 80vw;
    max-width: 600px;
    height: 350px;
    margin: 50px auto;
    /* Margin atas dan bawah */
  }

  .korsel-face {
    padding: 25px;
    transition: all 0.6s ease;
    /* Pastikan ada transisi */
  }

  .korsel-face:not(.active) {
    transform: scale(0.7) translateX(150px);
    /* Contoh:Sesuaikan nilai */
    opacity: 0.5;
    /* Contoh:Sesuaikan nilai */
  }

  .korsel-face.active {
    transform: scale(1);
    /* Pastikan skala aktif adalah 1 */
    opacity: 1;
    /* Pastikan opacity aktif adalah 1 */
  }

  .testi-header h4 {
    font-size: 16px;
  }

  .testi-header span {
    font-size: 13px;
  }

  .korsel-btn {
    display: flex;
  }

  .korsel-btn.prev {
    left: 10px;
  }

  .korsel-btn.next {
    right: 10px;
  }
}

/* Formulir Testimoni section */
.testimonial-form {
  width: 100%;
  background: var(--card-bg);
  padding: 30px 20px;
  box-shadow: 0 4px 12px var(--shadow);
  border-radius: 12px;
}

/* User profile */
.user-profile {
  display: none;
  margin-bottom: 15px;
  text-align: center;
}

.user-profile img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-bottom: 8px;
}

.user-profile p {
  margin: 0;
}

#userName {
  font-weight: bold;
}

#userEmail {
  font-size: 13px;
  color: #666;
}

/* Buttons */
.auth-btn {
  text-align: center;
  margin-bottom: 20px;
}

.google-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.google-btn img {
  width: 18px;
  height: 18px;
}

.google-btn:hover {
  background: #f7f7f7;
}

.logout-btn {
  display: none;
  background: #d9534f;
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.logout-btn:hover {
  background: #c9302c;
}

/* Input & textarea */
.form-textbox,
.form-textarea,
select {
  width: 100%;
  padding: 10px;
  margin: 10px 0 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}

textarea.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-label-top {
  font-weight: bold;
  margin-bottom: 6px;
  display: block;
}

/* Rating form */
.rating {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 16px 0;
  cursor: pointer;
  user-select: none;
}

.rating i {
  font-size: 42px;
  color: transparent;
  -webkit-text-stroke: 1.5px #aaa;
  transition: color 0.25s ease, transform 0.15s ease;
}

.rating i.fas {
  color: #f1c40f;
  -webkit-text-stroke: 1.5px #f1c40f;
}

.rating i:hover {
  transform: scale(1.15);
}

.rating i.clicked {
  animation: bounce 0.3s ease;
}

@keyframes bounce {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.3);
  }

  60% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
}

.rating-text {
  text-align: center;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--primary-color);
  min-height: 20px;
}

/* Submit button */
.submit-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 8px var(--shadow);
  transition: background 0.3s ease;
  width: 100%;
}

.submit-btn:disabled {
  background: #999;
  cursor: not-allowed;
  box-shadow: none;
}