:root {
  --color-primary: #FF2688;
  --color-secondary: #F7DAE7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #FF2688, #F7DAE7);
  min-height: 100vh;
  margin: 0;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: var(--color-secondary);
  padding: 10px 40px;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 45px;
}

.logo h1 {
  font-size: 18px;
}

.logo h1 span {
  color: var(--color-primary);
}

.nav-and-btn {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: black;
  font-weight: 500;
  padding: 5px 0;
}

.nav-underline {
  position: absolute;
  bottom: 0;
  height: 3px;
  width: 0;
  background-color: var(--color-primary);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.btn-contact {
  padding: 10px 18px;
  background-color: var(--color-primary);
  color: white;
  font-weight: bold;
  border-radius: 15px;
  text-decoration: none;
}

.btn-contact:hover {
  background-color: #e52177;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

/* Hero Section */
.hero-container {
  margin-top: 100px;
  margin-bottom: 50px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.hero-text {
  flex: 1;
  color: white;
}

.hero-text h2 {
  font-weight: 700;
  font-size: 36px;
}

.hero-text h1 {
  font-weight: 700;
  font-size: 48px;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 16px;
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 30px;
}

.hero-text button {
  background-color: #F7DAE7;
  color: #FF2688;
  border: none;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.hero-images {
  margin-left: 100px;
  margin-top: 40px;
}

/* About Us Section */
.about-us {
  background-color: #f7dae7;
  padding: 60px 20px;
  font-family: 'Poppins', sans-serif;
}

.section-title {
  text-align: center;
  color: #ff2688;
  font-size: 28px;
  margin-bottom: 30px;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

.about-text {
  flex: 1;
  min-width: 300px;
  border-left: 4px solid #ff2688;
  padding-left: 16px;
  color: #333;
}

.about-text p {
  width: 85%;
  text-align: justify;
  margin-bottom: 16px;
  line-height: 1.6;
}

.about-image img {
  width: 100%;
  max-width: 350px;
  border-radius: 12px;
}

.about-icons {
  margin-top: 75px;
  display: flex;
  justify-content: center;
  gap: 350px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.icon-box {
  text-align: center;
  max-width: 120px;
}

.icon-box img {
  width: 60px;
  height: 60px;
  margin-bottom: 5px;
}

.icon-box p {
  font-weight: bold;
  color: #ff2688;
}

.visi-misi-section {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

.visi-misi-text {
  flex: 1 1 55%;
}

.visi-misi-image {
  flex: 1 1 40%;
}

.visi-misi-image img {
  margin-top: 50px;
  margin-left: 145px;
  width: 100%;
  max-width: 350px;
  border-radius: 12px;
}

.heading-line {
  width: 450px;
  height: 4px;
  background-color: #ff2688;
  margin-bottom: 15px;
}

.visi h3,
.misi h3 {
  color: #ff2688;
  margin: 15px 0;
}

.visi p,
.misi ul {
  color: #222;
  line-height: 1.6;
}

.misi ul {
  padding-left: 20px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

.checklist li::before {
  content: '✓'; /* simbol ceklis */
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary); /* bisa diganti */
  font-weight: bold;
}

/* Produk Section */
.body-fasilitas {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--color-primary);
}

.fasilitas-container {
  max-width: 1020px;
  width: 90%;
}

.judul-section {
  font-size: 36px;
  margin-bottom: 50px;
  text-align: center;
  font-weight: 600;
}

.slider-wrapper {
  position: relative;
}

.slider-wrapper .slide-button {
  position: absolute;
  top: 50%;
  height: 50px;
  width: 50px;
  color: var(--color-primary);
  border: none;
  outline: none;
  background: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.slider-wrapper .slide-button:hover {
  background: #2196f3;
}

.slider-wrapper .slide-button#prev-slide {
  left: -20px;
  display: none;
}

.slider-wrapper .slide-button#next-slide {
  right: -20px;
}

.judul-section {
  font-size: 36px;
  color: #ffffff;
  margin-bottom: 50px;
}

.slider-wrapper .image-list {
  display: grid;
  gap: 18px;
  font-size: 0;
  margin-bottom: 30px;
  overflow-x: auto;
  scrollbar-width: none;
  grid-template-columns: repeat(12, 1fr);
}

.slider-wrapper .image-list::-webkit-scrollbar {
  display: none;
}

.slider-wrapper .image-list .image-wrapper {
  width: 325px; 
  height: 400px;
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.slider-wrapper .image-list .image-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease; 
}

.image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0); 
  transition: background-color 0.3s ease;
}

.image-wrapper::after {
  content: attr(data-description); 
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px;
  color: white;
  font-family: sans-serif;
  font-size: 16px;
  text-align: center;
  font-weight: 500;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); 
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}


.image-wrapper:hover .image-item {
  transform: scale(1.1);
}

.image-wrapper:hover::before {
  background-color: rgba(0, 0, 0, 0.4); 
}

.image-wrapper:hover::after {
  opacity: 1; 
  transform: translateY(0); 
}

.fasilitas-container .slider-scrollbar {
  height: 24px;
  width: 100%;
  display: flex;
  align-items: center;
}

.slider-scrollbar .scrollbar-track {
  height: 2px;
  width: 100%;
  background: #ccc;
  position: relative;
  border-radius: 4x;
  overflow: hidden;
}

.slider-scrollbar:hover .scrollbar-track {
  height: 4px;

}

.slider-scrollbar .scrollbar-thumb {
  position: absolute;
  height: 100%;
  width: 50%;
  background: #1f2937;
  border-radius: inherit;
  cursor: grab;
}

.slider-scrollbar .scrollbar-thumb:active {
  cursor: grabbing;
  height: 8px;
  top: -2px;
}

.slider-scrollbar .scrollbar-thumb::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  bottom: -10px;
}

/* Contact Dan Footer*/
.contact-section {
  background: url('../Assets/Bg\ Contact.png') center/cover no-repeat;
  padding: 60px 20px;
  color: white;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
}

.contact-info span {
  color: #f72585;
}

.contact-info .info-item {
  margin-bottom: 15px;
  font-size: 16px;
}

.contact-info .map-container {
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
}

.social-media a {
  color: white;
  margin-right: 15px;
  font-size: 20px;
  transition: color 0.3s;
}

.social-media a:hover {
  color: #f72585;
}

.map-container {
  margin-top: 15px;
  border-radius: 12px;
  overflow: hidden; /* biar iframe ikut melengkung */
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* bayangan */
  border: 3px solid #fff; /* biar kelihatan kaya frame */
  max-width: 320px; /* biar proporsional */
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 150px;
  border: none;
}

.contact-form {
  margin: 50px auto;
  flex: 1;
  background: white;
  padding: 35px;
  border-radius: 12px;
  color: black;
  max-width: 500px; /* batas lebar biar nggak kepanjangan */
  text-align: center;
  box-shadow: 0px 4px 20px rgba(0,0,0,0.15);
}

.contact-form h3 {
  color: #f72585;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 22px;
}

.contact-form input,
.contact-form textarea {
  width: 100%; /* biar full dalam form */
  padding: 15px;
  margin-bottom: 18px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form textarea {
  height: 120px;
  resize: none;
}

.contact-form button {
  width: 100%; /* full width dalam form */
  background: #f72585;
  color: white;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.contact-form button:hover {
  background: #d61c72;
  transform: scale(1.02);
}

.footer {
  background: white;
  padding: 20px;
  text-align: center;
  border-top: 1px solid #eee;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 25px auto;
}

.footer-logo img {
  height: 50px;
}

.footer-nav a {
  margin: 0 15px;
  color: black;
  font-weight: 500;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #f72585;
}

.copyright {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}

/* Container fixed di kanan bawah */
.testimonial-popup-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* POPUP styling */
.testimonial-popup {
  background: white;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  margin-bottom: 12px;
  max-width: 250px;
  display: none;
  animation: fadeIn 0.5s ease;
}

.testimonial-popup .popup-title {
  font-size: 14px;
  font-weight: bold;
  color: #f72585;
  margin-bottom: 5px;
  text-align: center;
}

.testimonial-popup .popup-message {
  font-size: 14px;
  color: #333;
  margin: 0;
  text-align: center;
}

.testimonial-popup .popup-author {
  font-size: 13px;
  color: #f72585;
  margin-top: 5px;
  text-align: right;
  font-style: italic;
}

/* ICON komentar */
.testimonial-icon {
  background: white;
  border-radius: 50%;
  width: 60px;   /* lingkaran lebih konsisten */
  height: 60px;
  display: flex; /* flexbox biar isi center */
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
}

.testimonial-icon img {
  width: 28px;   /* atur ukuran icon */
  height: 28px;
  object-fit: contain;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}


@media (max-width: 1023px) {
  .slider-wrapper .slide-button {
    display: none!important;
  }

  .slider-wrapper .image-list {
    gap: 10px;
    margin-bottom: 15px;
  }

  .slider-wrapper .image-list .image-item {
    width: 325px;
    height: 400px;
    object-fit: cover;
  }

  .slider-scrollbar .scrollbar-thumb {
    width: 50%;
  }
}



/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-and-btn {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background-color: var(--color-secondary);
    padding: 10px 20px;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 999;
    animation: slideDown 0.3s ease;
  }

  .nav-and-btn.show {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .nav-underline {
    display: none !important;
  }

  .btn-contact {
    margin-top: 10px;
  }

  /* Hero Section */
  .hero-container,
  .about-content,
  .visi-misi-section {
    max-width: 100%;
    flex-direction: column;
    padding: 20px;
    margin: 0;
  }

  .hero-container{
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 100px 20px;
    text-align: left;
    width: 100%;
    margin: 0;
  } 

  .hero-text {
    text-align: left;
  }

  .hero-text h2 {
    font-size: 28px;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .hero-text p {
    font-size: 14px;
    max-width: 100%;
  }

  .hero-text button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
  }

  .hero-images {
    margin-top: 20px;
    margin-left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-images img {
    width: 100%;
    max-width: 350px;
    height: auto;
  }

  /* About Us Section */

  .about-text {
    border-left: none;
    padding-left: 0;
  }

  .about-text p {
    width: 100%;
  }

  .about-icons {
    gap: 40px;
    justify-content: center;
    margin-bottom: 70px;
  }

  .visi-misi-text {
    text-align: left;
  }

  .visi-misi-image {
    margin-top: 20px;
    margin-left: 0;
    display: flex;
    justify-content: center;
  }

  .visi-misi-image img {
    margin: 0;
    max-width: 90%;
  }

  .heading-line {
    width: 100%;
    max-width: 375px;
    margin: 0 auto 20px auto;
  }

  .visi h3,
  .misi h3 {
    margin-top: 10px;
    text-align: center;
  }

  /* Contact & Footer */
  .contact-container {
    flex-direction: column; /* dari sejajar jadi vertikal */
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .contact-info {
    text-align: center;
  }

  .contact-info h2 {
    font-size: 22px;
    line-height: 1.4;
  }

  .map-container {
    margin: 20px auto;
    max-width: 100%;
  }

  .contact-form {
    padding: 25px;
    max-width: 100%;
  }

  .contact-form h3 {
    font-size: 20px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 14px;
    padding: 12px;
  }

  .contact-form textarea {
    height: 100px;
  }

  .contact-form button {
    font-size: 16px;
    padding: 12px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
  }

  .footer-nav a {
    display: inline-block;
    margin: 8px;
  }

  .footer-logo img {
    height: 35px;
  }

  .copyright {
    font-size: 12px;
  }
}

/* Animasi */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10%);
  }
  to {
    opacity: 1;
    transform: translateY(0%);
  }
  
}

/* ====== ANIMASI GLOBAL ====== */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* Variasi arah */
.fade-up {
  transform: translateY(30px);
}
.fade-right {
  transform: translateX(-30px);
}
.fade-left {
  transform: translateX(30px);
}
.fade-in {
  transform: scale(0.95);
}

/* Saat muncul */
.fade-up.show,
.fade-right.show,
.fade-left.show,
.fade-in.show {
  opacity: 1;
  transform: translate(0,0) scale(1);
}
