/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background-color: #0a192f;
  color: #fff;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* NAVBAR */
header {
  background: rgba(9, 35, 70, 0.98);
  padding: 0.5rem 3%;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(238, 235, 235, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  color: #ffffff;
  font-weight: bold;
  font-size: 0.9rem;
}

.nav-search {
  flex: 1;
  max-width: 200px;
  margin: 0 10px;
}

#searchInput {
  width: 100%;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #ddd;
  outline: none;
  font-size: 0.75rem;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li a {
  margin-left: 10px;
  text-decoration: none;
  color: #fdf7f7;
  font-weight: 600;
  font-size: 0.75rem;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #2ed573;
}
nav ul li a:active {
  transform: scale(0.9);
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("images/background1.jpg") no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 60px;
}

.hero-content h1 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 10px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* --- UPDATE TOMBOL LIHAT PRODUK --- */
.hero-content .btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #2ed573;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(46, 213, 115, 0.3);
}

.hero-content .btn:hover {
  background-color: transparent;
  color: #2ed573;
  border-color: #2ed573;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(46, 213, 115, 0.4);
}

.hero-content .btn:active {
  transform: translateY(-1px);
}

/* PRODUK SECTION */
.container {
  padding: 80px 5% 40px;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.5rem;
}

.grid-separator {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0 20px;
  font-size: 1.5rem;
  font-weight: bold;
  width: 100%;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.product-card {
  background: #112240;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  transition: 0.3s;
  max-width: 250px;
  margin: 0 auto;
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.product-info {
  padding: 12px;
  text-align: center;
}

.product-info h3 {
  font-size: 0.85rem;
  margin-bottom: 5px;
}
.product-info p {
  color: #2ed573;
  font-weight: bold;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.buy-btn,
.desc-btn {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  border: none;
  margin-bottom: 8px;
  font-size: 0.75rem;
}

.buy-btn {
  background: #2ed573;
  color: white;
}
.desc-btn {
  background: transparent;
  border: 1px solid #2ed573;
  color: #2ed573;
}

/* --- PERBAIKAN BAGIAN KONTAK & FORM WA --- */

.container-contact {
  padding: 60px 5%;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

.contact-form .form-instruction {
  color: #2ed573 !important;
  font-size: 1.8rem !important;
  text-align: center !important;
  width: 100% !important;
  display: block !important;
  margin-top: -10px !important;
  margin-bottom: 30px !important;
  font-weight: bold !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 10px;
  outline: none;
  font-size: 1rem;
}

.submit-btn {
  background: #ff4757;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: 0.3s;
}

.submit-btn:hover {
  background: #ff6b81;
}

.contact-info-text {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info-text h3 {
  color: #fff;
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 15px;
}

.info-item .icon {
  font-size: 1.4rem;
}

/* RESPONSIVE HP */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product-card img {
    height: 130px;
  }
  .contact-container {
    grid-template-columns: 1fr;
  }
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}
.modal-content {
  background: #112240;
  margin: 15vh auto;
  padding: 25px;
  width: 85%;
  max-width: 350px;
  border-radius: 15px;
  text-align: center;
  border: 1px solid #2ed573;
  position: relative;
}
.close-btn {
  position: absolute;
  right: 15px;
  top: 5px;
  color: white;
  font-size: 22px;
  cursor: pointer;
}

/* ==========================================
   TAMBAHAN BACKGROUND SERAGAM (UPDATE)
   ========================================== */
.hero,
.container,
.container-contact {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("images/background1.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
}

/* Menghapus background solid agar foto terlihat */
.product-card,
.contact-form,
.contact-info-text {
  background: rgba(
    17,
    34,
    64,
    0.8
  ) !important; /* Transparansi agar background utama terlihat */
  backdrop-filter: blur(5px); /* Efek blur kaca */
}
