/* ======================== VARIABEL ======================== */
:root {
  --primary: #2A9D8F;
  --secondary: #264653;
  --accent: #E9C46A;
  --text: #2d2d2d;
}

/* ======================== RESET & GLOBAL ======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* ======================== HEADER ======================== */
header {
  position: fixed;
  width: 100%;
  padding: 20px 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 30px;
  transition: all 0.3s ease-in-out;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transition: 0.3s;
  padding: 5px 10px;
  border-radius: 5px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
  display: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ======================== HERO SECTION ======================== */
.hero {
  height: 100vh;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('https://images.unsplash.com/photo-1555041469-a586c61ea9bc') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.cta-btn {
  padding: 15px 40px;
  background: var(--accent);
  color: var(--secondary);
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 600;
}

.cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ======================== PRODUK SECTION ======================== */
.products {
  padding: 100px 50px;
  background: #f8f9fa;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  color: var(--secondary);
  font-size: 2.5rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.product-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-img {
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Label Produk */
.product-label {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #3CB371; /* Warna hijau default */
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}

.product-label:hover {
  background: var(--primary);
  color: white;
}

.product-info {
  padding: 20px;
}

.product-info .product-title {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--secondary);
}

/* Revisi styling harga produk */
.product-info .product-price {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  background-color: #e63946; /* Warna merah yang kontras */
  color: #fff; /* Teks putih */
  padding: 8px 12px;
  border-radius: 10px;
  display: inline-block;
  margin: 10px auto;
}

.product-info .product-price i {
  font-size: 1rem;
  color: #fff;
}

/* ======================== DROPDOWN KATEGORI ======================== */
.dropdown-container {
  text-align: center;
  margin-bottom: 30px;
}

.dropdown-container select {
  padding: 10px 20px;
  border-radius: 30px;
  border: none;
  background: var(--accent);
  color: var(--secondary);
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

/* ======================== TENTANG KAMI SECTION ======================== */
.about {
  padding: 100px 50px;
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin: 50px 0;
}

.about-item {
  text-align: center;
  padding: 30px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.about-item:hover {
  transform: translateY(-10px);
}

.about-item i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-item h3 {
  color: var(--secondary);
  margin: 15px 0;
}

/* ======================== PROSES SECTION ======================== */
.process {
  padding: 100px 50px;
  background: #f8f9fa;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 50px;
}

.process-flow {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.process-step {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: 20px;
  background: rgba(233, 196, 106, 0.1);
  border-radius: 15px;
  transition: 0.3s;
}

.process-step:hover {
  transform: translateY(-5px);
  background: rgba(233, 196, 106, 0.2);
}

.step-icon {
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--secondary);
}

.process-step p {
  color: var(--text);
  font-size: 0.9rem;
  margin-top: 10px;
}

.process-cta {
  text-align: center;
  margin-top: 50px;
}

/* ======================== CONTACT SECTION ======================== */
.contact {
  padding: 100px 50px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  text-align: center;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 50%;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--secondary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-card h3 {
  color: var(--accent);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.contact-card p {
  line-height: 1.6;
  opacity: 0.9;
}

/* ======================== FOOTER ======================== */
footer {
  background: var(--secondary);
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 30px;
}

.social-link {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: 0.3s;
  color: white;
  text-decoration: none;
}

.social-link:hover {
  background: var(--accent);
  color: var(--secondary);
  transform: translateY(-5px);
}

/* ======================== RESPONSIVE DESIGN ======================== */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: var(--secondary);
    flex-direction: column;
    width: 100%;
    padding: 20px;
    display: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 15px;
    text-align: center;
    margin: 5px 0;
  }

  .menu-toggle {
    display: block;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .products,
  .about,
  .process,
  .contact {
    padding: 50px 20px;
  }

  .section-title {
    font-size: 2rem;
  }

  .process-flow {
    flex-direction: column;
  }

  .process-step {
    width: 100%;
    margin-bottom: 15px;
  }

  .contact-grid {
    gap: 25px;
  }

  .contact-card {
    padding: 30px;
  }

  .dropdown-container select {
    width: 80%;
  }

  /* Penyesuaian pagination untuk mobile */
  .pagination {
    flex-direction: column;
    gap: 10px;
  }

  .pagination button {
    width: 100%;
  }

  #products {
    padding-top: 120px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .product-price {
    font-size: 1rem;
  }

  .process-step h4 {
    font-size: 1rem;
  }

  .process-step p {
    font-size: 0.8rem;
  }
}

/* ======================== MODAL GAMBAR ======================== */
.image-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.image-modal.active {
  display: flex;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  transition: transform 0.2s ease;
  touch-action: none;
}

.image-modal .close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 2100;
}

/* ======================== TOMBOL PESAN ======================== */
.order-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 20px);
  margin: 10px auto;
  padding: 10px 0;
  background: #1F8A65;
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.order-button:hover {
  background: #176E57;
}
