* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: #2f2f2f;
  background: #fdfcf9;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

h2,
h3 {
  margin-bottom: 0.5em;
  color: #3b2f2f;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5em;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin: 0.5em auto 0;
  background: linear-gradient(90deg, #0f2027, #203a43, #2c5364);
  border-radius: 2px;
}

/* === Navbar === */
header {
  position: sticky;
  top: 0;
  background: rgba(15, 32, 39, 0.9);
  backdrop-filter: blur(6px);
  z-index: 1000;
}

nav {
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  color: #fff;
  font-weight: 600;
  font-size: 1.2rem;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #d1cfcf;
}

/* Language Switcher di Navbar */
#lang-switch {
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

#lang-switch:hover {
  border-color: #555;
  background: #f3f3f3;
}

#lang-switch:focus {
  outline: none;
  border-color: #007bff;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
}

/* === Hero Section === */
.hero {
  background: url("../image/hero1.webp");
  background-size: cover;
  position: relative;
  color: #fff;
  text-align: center;
  /* padding: 120px 20px; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 100vh;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 600;
}

.hero p {
  font-size: 1.2rem;
  margin-top: 10px;
}

.cta-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: linear-gradient(90deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}

.cta-btn:hover {
  opacity: 0.85;
}

/* === About Section === */
#about {
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
  text-align: center;
}

/* === Product Section === */
#product {
  padding: 60px 20px;
  background: #faf6f0;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.product {
  max-width: 350px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.product img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product h3 {
  margin: 15px 0 10px;
}

.product p {
  padding: 0 15px;
  font-size: 0.9rem;
  flex-grow: 1;
}

.product a{
  margin: 15px;
  padding: 10px;
  background: linear-gradient(90deg, #0f2027, #203a43, #2c5364);
  border: none;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: opacity 0.3s;
}

.product a {
  opacity: 0.85;
}

.product:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* === Gallery Section === */
#gallery {
  padding: 60px 20px;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.gallery img,
.gallery video {
  width: 100%;
  min-width: 350px;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s, filter 0.3s;
}

.gallery img:hover,
.gallery video:hover {
  transform: scale(1.05);
  filter: brightness(0.9);
  -webkit-transform: scale(1.05);
  -moz-transform: scale(1.05);
  -ms-transform: scale(1.05);
  -o-transform: scale(1.05);
}

/* Modal dasar */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0; /* sama dengan top:0; right:0; bottom:0; left:0 */
  padding: 20px;
  background: rgba(0, 0, 0, 0.85);
  text-align: center;
}

/* Aktifkan modal */
.modal:target {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal img,
.modal video {
  max-width: 90%;
  max-height: 80%;
  margin-top: 5%;
  border-radius: 10px;
}

/* Wrapper video responsif */
.video-wrapper {
  position: relative;
  width: 90%;
  max-width: 900px; /* batas lebar di desktop */
  aspect-ratio: 16 / 9; /* jaga rasio */
  background: #000; /* biar ada background hitam saat loading */
  border-radius: 10px;
  overflow: hidden;
}

/* Video isi modal */
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* isi dengan proporsional */
  border-radius: 10px;
}

/* Tombol close */
.video-modal .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 2rem;
  color: #fff;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
}

/* === Contact Section === */
#contact {
  padding: 80px 20px;
  background: linear-gradient(135deg, #faf6f0, #fff);
}

.contact-subtitle {
  max-width: 600px;
  margin: 0 auto 50px;
  color: #555;
  font-size: 1rem;
  text-align: center;
}

/* Layout 2 Kolom */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  max-width: 1100px;
  margin: auto;
  align-items: flex-start;
  justify-content: center;
}

.contact-info {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
}

.contact-info h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: #203a43;
}

/* Form Styling */
.contact-form {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form label {
  text-align: left;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #203a43;
  outline: none;
}

.contact-form button {
  padding: 12px;
  background: linear-gradient(90deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.3s;
}

.contact-form button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* === Footer === */
footer {
  background: linear-gradient(90deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  font-size: 0.9rem;
  padding: 30px 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: auto;
}

.footer-brand h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
}

.footer-brand p {
  margin: 5px 0 0;
  font-size: 0.8rem;
  color: #ddd;
}

.footer-links a {
  margin: 0 10px;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #f0c674;
}

.footer-social a {
  margin: 0 8px;
  font-size: 1.2rem;
  text-decoration: none;
  color: #fff;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #f0c674;
}

footer .copyright {
  text-align: center;
  margin-top: 20px;
  font-size: 0.8rem;
  color: #aaa;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(15, 32, 39, 0.95);
    flex-direction: column;
    width: 200px;
    padding: 20px;
    display: none;
    border-radius: 0 0 8px 8px;
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero {
    padding: 80px 20px;
  }
  .contact-container {
    grid-template-columns: 1fr;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 15px; /* kasih jarak antar elemen */
  }

  .footer-links {
    margin: 10px 0;
  }

  .footer-links a {
    display: inline-block;
    margin: 5px 8px; /* biar lebih rapih */
  }

  .footer-social {
    margin-top: 5px;
  }
}
