/* Navbar */
.navbar {
  background-color: #1167b1 !important;
  border: none; /* Pastikan navbar tidak punya border */
  outline: none; /* Pastikan navbar tidak punya outline */
}

.navbar-brand,
.nav-link {
  color: white !important;
}

.nav-link:hover {
  color: #cce6ff !important;
}

/* Animasi slide in dari kiri*/
@keyframes slideInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Animasi slide in dari atas*/
@keyframes slideInTop {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Animasi slide in dari bawah*/
@keyframes slideInBottom {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Default state sebelum terlihat */
/* Nonaktifkan efek scroll di navbar agar teks tidak hilang */
.navbar .slide-in,
.navbar .slide-in-b1,
.navbar .slide-in-b2,
.navbar .slide-in-b3,
.navbar .slide-in-b4,
.navbar .slide-in-b5 {
  opacity: 1 !important;
}

/* Aktifkan animasi saat terlihat */
.slide-in.show {
  animation: slideInLeft 1.2s ease-out forwards;
}

/* Aktifkan animasi saat terlihat */
.slide-in-t.show {
  animation: slideInTop 1.2s ease-out forwards;
}

/* Aktifkan animasi saat terlihat */
.slide-in-b1.show {
  animation: slideInBottom 0.8s ease-out forwards;
}

/* Aktifkan animasi saat terlihat */
.slide-in-b2.show {
  animation: slideInBottom 0.9s ease-out forwards;
}

/* Aktifkan animasi saat terlihat */
.slide-in-b3.show {
  animation: slideInBottom 1s ease-out forwards;
}

/* Aktifkan animasi saat terlihat */
.slide-in-b4.show {
  animation: slideInBottom 1.1s ease-out forwards;
}

/* Aktifkan animasi saat terlihat */
.slide-in-b5.show {
  animation: slideInBottom 1.2s ease-out forwards;
}

.produk-wrapper {
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 2rem;
  position: relative;
}

.produk-slider {
  display: flex;
  animation-duration: 20s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.slide-kanan .produk-slider {
  animation-name: slide-kanan;
}

.slide-kiri .produk-slider {
  animation-name: slide-kiri;
}

.produk-item {
  flex: 0 0 20%;
  max-width: 20%;
  box-sizing: border-box;
  padding: 10px;
  text-align: center;
  background-color: #fff;
  margin: 0 5px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.produk-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  background-color: #fff;
}

.produk-item p {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #333;
  font-weight: bold;
}

.produk-item:hover {
  transform: scale(1.05);
  animation-play-state: paused;
}

/* Pause animation saat hover */
.produk-wrapper:hover .produk-slider {
  animation-play-state: paused;
}

/* Animasi sliding */
@keyframes slide-kanan {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .produk-item {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.produk-item {
  background: linear-gradient(135deg, #e6f0ff, #ffffff);
  /* biru muda ke putih */
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  height: 100%;
  border: 1px solid #007bff30;
  /* biru transparan */
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
  /* shadow biru muda */
  transition: transform 0.3s, background-color 0.3s;
}

.produk-item:hover {
  background: #d0e7ff;
  /* biru lebih kuat pas hover */
  transform: scale(1.05);
}

.container {
  max-width: 1140px;
  /* Maksimal lebar container */
  margin: 0 auto;
  /* Centering container */
  padding: 0 15px;
  /* Padding kiri dan kanan */
  background-color: #f0f8ff;
  /* Menambahkan warna latar belakang pada container (warna biru muda) */
  border-radius: 8px;
  /* Menambahkan sudut membulat jika diinginkan */
  padding-top: 2rem;
  /* Jarak atas untuk memberi ruang di atas slider */
  padding-bottom: 2rem;
  /* Jarak bawah untuk memberi ruang di bawah slider */
}

.hero-section {
  min-height: 20vh;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  font-family: "Poppins", sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  /* biar teks makin stand out */
}

.hero-section h1 {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero-section h4 {
  font-size: 1.5rem;
  font-weight: 400;
}

.hero-section p {
  font-size: 1.1rem;
  max-width: 600px;
}

.search-bar-wrapper {
  margin-top: 1.5rem;
  width: 100%;
  max-width: 400px;
}

.search-input {
  padding: 12px 20px;
  border-radius: 30px;
  border: none;
  outline: none;
  font-size: 1rem;
  width: 100%;
  transition: box-shadow 0.3s ease;
}

.search-input:focus {
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* Maps */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 1rem;
  border: none;
  /* Pastikan map-container tidak punya border */
  outline: none;
  /* Pastikan map-container tidak punya outline */
}

/* Kontak & Medsos */
.contact a {
  color: #1167b1;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: #1167b1;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
  border: none;
  /* Pastikan footer tidak punya border */
  outline: none;
  /* Pastikan footer tidak punya outline */
}

.btn-gradient {
  background: linear-gradient(135deg, #87cefa, #00bfff);
  color: white;
  border: none;
  padding: 10px 20px;
  font-weight: 600;
  border-radius: 25px;
  transition: background 0.3s ease;
}

.btn-gradient:hover {
  background: linear-gradient(135deg, #00bfff, #87cefa);
  color: white;
}

body {
  background-image: url("1.png");
  /* Ganti dengan path gambar kamu */
  background-size: cover;
  /* Menyesuaikan ukuran gambar dengan layar */
  background-position: center center;
  /* Memastikan gambar terpusat */
  background-attachment: fixed;
  /* Membuat gambar tetap saat scroll */
  height: 100vh;
  /* Membuat body memiliki tinggi 100% layar */
  margin: 0;
  /* Menghilangkan margin default */
  padding: 0;
  /* Menghilangkan padding default */
}

.animate__animated.animate__bounce {
  --animate-duration: 2s;
}

/* This changes all the animations globally */
:root {
  --animate-duration: 800ms;
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 1s;
  /* delay biar muncul setelah title & subtitle */
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.6s;
}

.delay-3 {
  animation-delay: 1s;
}
