/* ========== Reset & Font ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #f9fafb;
  color: #222;
  line-height: 1.6;
}

/* ========== Header ========== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #0077ff, #00bfff);
  padding: 15px 50px;
  color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

header .logo h1 {
  font-size: 24px;
  letter-spacing: 2px;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 25px;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover,
nav a.active {
  border-bottom: 2px solid white;
}

/* ========== Hero Section ========== */
.hero {
  position: relative;
  height: 450px;
  width: 100%;
  overflow: hidden;
  border-bottom: 5px solid #0077ff;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(75%);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 25px 35px;
  border-radius: 15px;
  animation: fadeIn 1.5s ease;
}

.hero-text h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 18px;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  background: #00bfff;
  color: white;
  text-decoration: none;
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background: #0077ff;
  transform: scale(1.05);
}

/* ========== Produk Section ========== */
.produk {
  padding: 60px 30px;
  text-align: center;
  background-color: white;
}

.produk h2 {
  font-size: 28px;
  color: #0077ff;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.produk-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.produk-grid img {
  width: 400px;
  height: 260px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.produk-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* ========== Kontak Section ========== */
.kontak {
  text-align: center;
  padding: 50px 20px;
  background: #eaf4ff;
}

.kontak h2 {
  font-size: 26px;
  color: #0077ff;
  margin-bottom: 15px;
}

.kontak p {
  font-size: 18px;
  margin: 8px 0;
}

/* ========== Footer ========== */
footer {
  background: #0077ff;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 14px;
  margin-top: 30px;
}

/* ========== Animations ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -40%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
  header {
      flex-direction: column;
      text-align: center;
  }
  nav a {
      display: block;
      margin: 8px 0;
  }
  .produk-grid img {
      width: 90%;
      height: auto;
  }
  .hero-text h2 {
      font-size: 24px;
  }
}
