/* === Reset & Global === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
  color: #333;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* === Header === */
header {
  background: #1a3a6c;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
}
.logo span {
  color: #f8c444;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: white;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover,
.nav-links a.active {
  color: #f8c444;
}

/* === Main Content === */
main {
  min-height: calc(100vh - 160px);
  padding: 2rem 0;
}


/* Gaya untuk slider */
.slider {
  position: relative;
  width: 100%;
  max-width: 1200px; /* Sesuaikan dengan lebar gambar */
  height: 400px;      /* Sesuaikan dengan tinggi gambar */
  margin: 0 auto;     /* Pusatkan slider jika lebar layar lebih besar */
  overflow: hidden;   /* Pastikan bagian luar gambar tidak terlihat */
  border-radius: 8px; /* Opsional: untuk tampilan lebih halus */
}


/* Gaya untuk setiap slide */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;      /* Ini penting agar gambar memenuhi area slide */
  background-position: center; /* Posisi gambar di tengah */
  background-repeat: no-repeat; /* Gambar tidak diulang */
  opacity: 0;                  /* Awalnya tidak terlihat */
  transition: opacity 1s ease; /* Animasi perpindahan slide */
  display: flex;
  align-items: center;         /* Pusatkan konten vertikal */
  justify-content: center;     /* Pusatkan konten horizontal */
}


/* Container dot di bawah tengah gambar */
.slider-dots {
    position: absolute;
    bottom: 15px;          /* Jarak dari bawah */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

/* Dot per halaman */
.slider-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

/* Dot aktif */
.slider-dot.active {
    background: #ff4444;
    width: 14px;
    height: 14px;
}


/* Gaya untuk konten slide */
.slide-content {
  text-align: center;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5); /* Latar belakang gelap transparan */
  padding: 20px;
  border-radius: 5px;
}

/* Slide pertama ditampilkan pertama kali */
.slider .slide:first-child {
  opacity: 1;
}

/* Contoh jika Anda ingin menggunakan JavaScript untuk mengganti slide */
/*
.slider .slide.active {
  opacity: 1;
}
*/

.slide-content {
  background: rgba(0,0,0,0.6);
  padding: 2rem;
  border-radius: 10px;
  color: white;
  text-align: center;
  max-width: 600px;
}
.slide-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

/* === Section Umum === */
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1a3a6c;
}
/*------------------------
/* === Produk Grid === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-card img {
  width: 100%;
  height: 200px; /* Atur tinggi tetap untuk konsistensi */
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #1a3a6c;
}

.product-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  .product-card img {
    height: 180px;
  }
}


/* === Produk Grid === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.product-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
}
.product-card:hover {
  transform: translateY(-5px);
}
.product-card i {
  font-size: 2.8rem;
  color: #1a3a6c;
  margin-bottom: 1rem;
}
.product-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}


/* === Tentang Kami === */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: justify;
  font-size: 1.1rem;
  line-height: 1.8;
}
.about-content p {
  margin-bottom: 1.2rem;
}

/* === Kontak === */
.kontak-container {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}
.map-info {
  flex: 1;
  min-width: 300px;
}
.map-info h3 {
  color: #1a3a6c;
  margin-bottom: 1rem;
}
.map-info p {
  margin-bottom: 0.8rem;
}
.google-map {
  width: 100%;
  height: 300px;
  margin-top: 1rem;
  border-radius: 8px;
  overflow: hidden;
}
.form-kontak {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 1.8rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.form-kontak input,
.form-kontak textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1.2rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}
.form-kontak textarea {
  height: 120px;
  resize: vertical;
}
.form-kontak button {
  background: #1a3a6c;
  color: white;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.05rem;
  width: 100%;
  transition: background 0.3s;
}
.form-kontak button:hover {
  background: #f8c444;
  color: #112240;
}

/* === Footer === */
footer {
  background: #112240;
  color: white;
  text-align: center;
  padding: 2rem 0;
}

/* === Live Chat Button === */
.live-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 999;
  font-size: 1.6rem;
  transition: background 0.3s;
}
.live-chat:hover {
  background: #128C7E;
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.95rem;
  }
  .slider {
    height: 300px;
  }
  .kontak-container {
    flex-direction: column;
  }
  .slide-content h2 {
    font-size: 1.8rem;
  }
}

/* === Logo Styling === */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-img {
  height: 50px;
  width: auto;
  border-radius: 4px;
}
.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
}
.logo-text span {
  color: #f8c444;
}

