* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; line-height: 1.6; color: #333; overflow-x: hidden; }
a { text-decoration: none; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatBtn {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Header & Navbar */
header {
  color: white;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

nav {
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(rgba(13,84,140,0.9), rgba(0,0,0));
  position: relative;
  z-index: 1000;
}

.logo { font-size: 28px; font-weight: 700; }
.logo span { color: #f39c12; }

.hamburger {
  display: none;
  cursor: pointer;
  width: 36px;
  height: 28px;
  position: relative;
  z-index: 1002;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 5px;
  background: #ffffff;
  border-radius: 4px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: absolute;
  left: 0;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 22px; }

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
  background: #f39c12;
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
  background: #f39c12;
}

.hamburger:hover span { background: #f39c12; }

nav ul.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

nav ul li a {
  color: white;
  font-weight: 500;
  transition: 0.3s;
}
nav ul li a:hover { color: #f39c12; }

/* Cart Icon */
.cart-icon {
  position: relative;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}
.cart-icon:hover { color: #f39c12; }
.cart-count {
  position: absolute;
  top: -8px;
  right: -12px;
  background: #f39c12;
  color: white;
  font-size: 0.8rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
}

/* Slideshow Hero */
.slideshow-container {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
}

.mySlides {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.mySlides.active { opacity: 1; }

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  background: linear-gradient(rgba(30, 62, 98, 0.1), rgba(0,0,0,1));
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease 0.3s forwards;
}
.hero-content p {
  font-size: 1.3rem;
  max-width: 700px;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.6s forwards;
}
.btn {
  background: #f39c12;
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s;
  animation: fadeInUp 1s ease 0.9s forwards, floatBtn 3s ease-in-out infinite;
}
.btn:hover { background: #e67e22; transform: scale(1.1); }

.dots-container {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: #f39c12;
  transform: scale(1.3);
}

section { padding: 80px 5%; }
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #2c3e50;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.section-title.visible { opacity: 1; transform: translateY(0); }
.section-title span { color: #f39c12; }

#tentang { background: #f8f9fa; }
.tentang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.tentang-img img { width: 80%; border-radius: 15px; opacity: 0; transform: translateX(-50px); transition: all 1s ease; }
.tentang-img img.visible { opacity: 1; transform: translateX(0); }
.visi-misi { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.card.visible { opacity: 1; transform: translateY(0); }

.produk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.produk-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(40px);
}
.produk-card.visible { opacity: 1; transform: translateY(0); }
.produk-card:hover { transform: translateY(-15px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.produk-card img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.5s ease; }
.produk-card:hover img { transform: scale(1.1); }
.produk-info { padding: 20px; text-align: center; }
.add-to-cart {
  background: #f39c12;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  margin-top: 10px;
  font-weight: 600;
  transition: 0.3s;
}
.add-to-cart:hover { background: #e67e22; }

/* Section Legalitas */
#legalitas {
  background: #f8f9fa;
  text-align: center;
}
.legalitas-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.legalitas-logos img {
  max-width: 250px;
  height: auto;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.legalitas-logos img.visible {
  opacity: 1;
  transform: translateY(0);
}

#kontak { background:#1E3E62; color: white; }
.kontak-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.kontak-info i { color: #f39c12; font-size: 1.5rem; margin-right: 15px; }
.kontak-info p { margin-bottom: 20px; font-size: 1.1rem; }

footer { background:#0B192C; color: #ddd; text-align: center; padding: 40px 20px; }
.social-icons a { color: #ddd; font-size: 1.5rem; margin: 0 10px; transition: all 0.3s; }
.social-icons a:hover { color: #f39c12; transform: translateY(-5px); }

/* Modal Keranjang */
.cart-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cart-content {
  background: white;
  width: 100%;
  max-width: 600px;
  border-radius: 15px;
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
}
.cart-header {
  background: #1E3E62;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-header h2 { margin: 0; }
.close-cart { cursor: pointer; font-size: 1.8rem; }
.cart-items { padding: 20px; }
.cart-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.cart-empty { text-align: center; padding: 40px; color: #999; }
.cart-form { padding: 20px; background: #f8f9fa; }
.cart-form input, .cart-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.cart-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}
.cart-form small {
  color: #e74c3c;
  font-weight: 600;
  display: block;
  margin-top: -10px;
  margin-bottom: 15px;
}
#paymentProofPreview {
  max-width: 100%;
  max-height: 300px;
  margin: 15px 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: none;
}
.cart-total {
  padding: 15px 20px;
  background: #1E3E62;
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: right;
}
.cart-actions {
  padding: 20px;
  display: flex;
  gap: 15px;
}
.btn-wa {
  background: #25d366;
  flex: 1;
  text-align: center;
  padding: 15px;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  display: block;
}
.btn-cancel {
  background: #e74c3c;
  flex: 1;
  text-align: center;
  padding: 15px;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.rekening-info {
  background: #e8f5e9;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 600;
  color: #2e7d32;
  text-align: center;
  border: 2px solid #4caf50;
}

@media (max-width: 768px) {
  .hamburger { display: block; }
  .hero-content h1 { font-size: 3rem; }
  .tentang-grid, .kontak-grid, .visi-misi { grid-template-columns: 1fr; }
  .tentang-img img { width: 100%; }

  nav ul.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    max-width: 300px;
    background: rgba(30, 62, 98, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    padding: 80px 20px 20px;
  }

  .nav-links.active { right: 0; }
  .nav-links li { margin: 25px 0; }
  .nav-links li a { font-size: 1.5rem; font-weight: 600; }
  .menu-backdrop.active { display: block; }
  .dots-container { bottom: 20px; }
  .legalitas-logos { gap: 40px; }
  .legalitas-logos img { max-width: 200px; }
}
/* Tombol Scroll to Top */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #f39c12;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 1000;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background:  #e74c3c;
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }
}
/* Peta Kontak */
.kontak-map {
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .kontak-grid {
    grid-template-columns: 1fr;
  }
  .kontak-map {
    order: -1; /* Peta muncul di atas pada mobile */
    margin-bottom: 30px;
  }
  .kontak-map iframe {
    height: 300px;
  }
}