body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
}

.welcome-section {
  max-width: 100%;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center; /* Vertikal tengah */
  justify-content: flex-start; /* Kiri teks tetap ada di kiri */
  padding-left: 50px; /* Memberi padding kiri */
  font-family: "Times New Roman", Times, serif;
  background: #1167b1; /* Latar belakang cerah */
}

.text-box h1 {
  font-size: 100px;
  margin: 10px 0;
  color: white;
}

.text-box h4 {
  font-size: 60px;
  margin: 10px 0;
  color: white;
}

/* 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;
}

/* Section Styling */
section {
  padding: 4rem 2rem;
  background-color: white;
  margin-bottom: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: none; /* Pastikan section tidak punya border */
  outline: none; /* Pastikan section tidak punya outline */
}

section h2 {
  color: #1167b1;
  margin-bottom: 1.5rem;
}

/* Promo */
.promo-item {
  background-color: #d9ebff;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  border: none; /* Pastikan promo-item tidak punya border */
  outline: none; /* Pastikan promo-item tidak punya outline */
}

.kodfun-produk {
  display: flex;
  height: 20rem;
  gap: 1rem;
  overflow: hidden;
}

.kodfun-produk > div {
  flex: 1;
  border-radius: 1rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  cursor: pointer;
  transition: all 0.8s cubic-bezier(0.25, 0.4, 0.45, 1.4);
}

.kodfun-produk > div:hover {
  flex: 5;
}

.promo-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  text-align: center;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

.promo-text h2 {
  margin: 0;
  font-size: 1.2rem;
}

.promo-text p {
  margin: 0.5rem 0 0;
  font-size: 1rem;
}

.promo-text del {
  color: #ddd;
}

.promo-text span {
  color: #f39c12;
  font-weight: bold;
  margin-left: 0.5rem;
}

/* Produk */
.product-item {
  background-color: #f0f8ff;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  height: 100%;
  border: none; /* Pastikan product-item tidak punya border */
  outline: none; /* Pastikan product-item tidak punya outline */
}

/* Testimoni */
.testimonial {
  background-color: #e8f4ff;
  border-left: 5px solid #1167b1;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: none; /* Pastikan testimonial tidak punya border */
  outline: none; /* Pastikan testimonial tidak punya outline */
}

/* 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 */
}

/* Carousel image */
.carousel-item img {
  object-fit: cover;
  height: 400px;
  width: 100%;
}

/* 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 */
.slide-in,
.slide-in-t,
.slide-in-b1,
.slide-in-b2,
.slide-in-b3,
.slide-in-b4,
.slide-in-b5 {
  opacity: 0;
}

/* 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;
}

.container,
section,
footer,
.navbar {
  border: none;
  outline: none;
}

/* Menghapus border dari card */
.card {
  border: none !important;
  background-color: #f8f9fa; /* warna abu-abu terang, bisa diganti */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* opsional: biar ada efek mengambang */
}

.bestseller-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #1167b1;
  color: white;
  padding: 5px 10px;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 5px;
}

.new-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #1167b1;
  color: white;
  padding: 5px 10px;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 5px;
}

.promo-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #ff0000;
  color: white;
  padding: 5px 10px;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 5px;
}

.scrolling-text {
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
}

.scrolling-text p {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-text 15s linear infinite;
}

@keyframes scroll-text {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.testimoni-wrapper {
  overflow: hidden;
  white-space: nowrap;
  margin: 2rem 0;
  position: relative;
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 10px;
}

.testimoni-slider {
  display: flex;
  animation: slide-kanan 25s linear infinite alternate;
  transition: all 0.3s ease;
}

.testimoni-wrapper:hover .testimoni-slider {
  animation-play-state: paused;
}

.testimoni-item {
  flex: 0 0 30%; /* lebih kecil */
  max-width: 30%;
  box-sizing: border-box;
  padding: 15px;
  text-align: center;
  background-color: #ffffff;
  margin: 0 10px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

/* Selang-seling rotasi */
.testimoni-item:nth-child(odd) {
  transform: rotate(5deg);
}

.testimoni-item:nth-child(even) {
  transform: rotate(-5deg);
}

/* Saat hover / klik, jadi lurus */
.testimoni-item:hover,
.testimoni-item:active {
  transform: rotate(0deg);
}

.testimoni-item div {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Animasi bolak-balik */
@keyframes slide-kanan {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.location-section {
  background: #87ceeb; /* Latar belakang cerah */
}

/* Responsif untuk layar kecil (smartphone) */
@media (max-width: 768px) {
  .welcome-section {
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    text-align: center;
  }

  .text-box h1 {
    font-size: 50px;
  }

  .text-box h4 {
    font-size: 30px;
  }

  .testimoni-slider {
    flex-wrap: nowrap;
  }

  .testimoni-item {
    flex: 0 0 80%;
    max-width: 80%;
  }

  .promo-item,
  .product-item {
    padding: 0.5rem;
  }

  section {
    padding: 2rem 1rem;
  }

  .scrolling-text p {
    font-size: 0.9rem;
  }
}

/* Responsif untuk tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .text-box h1 {
    font-size: 70px;
  }

  .text-box h4 {
    font-size: 40px;
  }

  .testimoni-item {
    flex: 0 0 45%;
    max-width: 45%;
  }
}

.contact-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 2rem;
}

.contact-info {
  flex: 1 1 300px;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-container {
  flex: 1 1 400px;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .contact-section {
    flex-direction: column;
  }

  .contact-info,
  .map-container {
    flex: 1 1 100%;
  }
}
