/* Reset & dasar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
  scroll-behavior: smooth;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

/* Navbar */
header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}
.nav-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px; 
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 20px; /* kasih jarak dari tepi kanan */
  padding-left: 20px;  /* biar kiri juga seimbang */
}
.nav-logo {
  max-width: 150px;
  height: auto;
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-menu li a {
  font-weight: 500;
  transition: color .3s;
}
.nav-menu li a:hover {
  color: #1964BE;
}

/* Tombol menu hp */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  margin-right: 10px;
}
.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #1964BE;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  /* background: linear-gradient(135deg, #1964BE, #0056d6); */
  background-color: #1964BE;
  color: white;
  padding: 80px 5%;
}

/* Flex Container untuk dua kolom */
.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap; /* Supaya responsif di HP */
}

/* Kolom kiri (teks) */
.hero-text {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Tombol */
.btn-primary {
  background-color: white;
  color: #00b4ff;
  border: none;
  border-radius: 30px;
  padding: 0.8rem 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary:hover {
  background-color: #E8F9FF;
}

/* Kolom kanan (video/gambar HP) */
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 50%;
}

.hero-image video {
  width: 90%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: contain;
}

/* Responsif di HP */
@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-text, .hero-image {
    max-width: 100%;
  }
  .hero-image video {
    width: 70%;
  }
}

/* Section Containers */
.section {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1rem;
}
.section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: #333;
}
.section p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

/* Features / Cards */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 1.5rem;
}
.feature {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.feature h3 {
  color: #007bff;
  margin-bottom: 1rem;
}

/* Section Layanan */
.layanan {
  background: #f8f9ff;
  padding: 100px 5%;
}

.layanan-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 50px;
}

/* Teks di kiri */
.layanan-text {
  flex: 1;
  max-width: 55%;
}

.layanan-text h2 {
  font-size: 2.3rem;
  margin-bottom: 15px;
  color: #0d47a1;
}

.layanan-text p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 30px;
}

/* Grid Layanan */
.layanan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.layanan-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.layanan-card:hover {
  transform: translateY(-8px);
  border-color: #007bff;
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
}

.layanan-card h3 {
  color: #007bff;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.layanan-card p {
  color: #555;
  font-size: 0.95rem;
}

/* Video di kanan */
.layanan-video {
  flex: 1;
  max-width: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.layanan-video video {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

/* Responsif */
@media (max-width: 900px) {
  .layanan-container {
    flex-direction: column;
    text-align: center;
  }

  .layanan-text, .layanan-video {
    max-width: 100%;
  }

  .layanan-video video {
    width: 80%;
  }
}

/* ==== COCOK UNTUK SIAPA ==== */
.cocok {
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
  padding: 100px 5%;
  text-align: center;
}

.cocok h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #0d47a1;
  margin-bottom: 15px;
}

.cocok p {
  color: #555;
  font-size: 1.15rem;
  max-width: 800px;
  margin: 0 auto 60px auto;
}

/* ==== GRID ==== */
.cocok-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  justify-items: stretch;
  align-items: stretch;
}

/* ==== CARD ==== */
.cocok-card {
  border-radius: 25px;
  padding: 40px 30px 15px 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 370px; /* biar seragam dan nggak terlalu pendek */

  /* Animasi fade-up */
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.6s ease forwards;
}

/* ==== ANIMASI ==== */
.cocok-card:nth-child(1) { animation-delay: 0.1s; }
.cocok-card:nth-child(2) { animation-delay: 0.2s; }
.cocok-card:nth-child(3) { animation-delay: 0.3s; }
.cocok-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==== EFEK HOVER ==== */
.cocok-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 123, 255, 0.15);
  border-color: rgba(0, 123, 255, 0.4);
}

/* ==== WARNA ==== */
.green { background: #e8fdf0; border-color: #c4f2d3; }
.blue { background: #edf3ff; border-color: #c8d9ff; }
.purple { background: #f7ebff; border-color: #e5ccff; }
.orange { background: #fff3e5; border-color: #ffd7a8; }

/* ==== KONTEN ==== */
.card-content {
  flex-grow: 1; /* biar isi atas fleksibel */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.cocok-card .icon {
  font-size: 2.8rem;
  margin-bottom: 15px;
  text-align: center;
}

.cocok-card h3 {
  color: #0d0d0d;
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: 600;
  text-align: center;
}

.cocok-card ul {
  list-style: none;
  padding-left: 0;
  color: #333;
  line-height: 1.6;
  flex-grow: 1; /* Biar bagian teks isiannya fleksibel */
}

.cocok-card ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 1rem;
}

.cocok-card ul li::before {
  content: "•";
  position: absolute;
  left: 5px;
  color: #007bff;
}

/* ==== BADGE / BAGIAN BAWAH ==== */
.badge {
  margin-top: 30px;
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
  text-align: left;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 1100px) {
  .cocok-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cocok-card {
    min-height: 400px;
  }
}

@media (max-width: 650px) {
  .cocok-grid {
    grid-template-columns: 1fr;
  }
  .cocok-card {
    text-align: center;
    align-items: center;
  }
  .cocok-card ul {
    text-align: left;
    display: inline-block;
  }
  .badge {
    text-align: center;
    align-self: center;
  }
}

/* ======== Pertanyaan Umum (FAQ) ======== */
.faq {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Setiap item FAQ */
.faq-item {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Efek hover pada item FAQ */
.faq-item:hover {
  background-color: #f0f0f0;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* Setiap pertanyaan */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 1.2rem;
  font-weight: 600;
  color: #0d47a1;
}

.faq-question .faq-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

/* Setiap jawaban (collapsed by default) */
.faq-answer {
  display: none;
  font-size: 1rem;
  color: #555;
  margin-top: 10px;
  margin-left: 0;
  line-height: 1.6;
  text-align: left;
  width: 100%;
  padding-left: 10px;
  border-left: 3px solid #0d47a1;
}

/* Set when item is active (question clicked) */
.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg); /* Rotating icon on active */
}

/* Animation on hover */
.faq-item:hover .faq-question h4 {
  color: #007bff;
}

.faq .faq-item .faq-answer {
  text-align: left !important;
  margin-left: 0 !important;
  width: 100%;
}

/* Kontak Section */
.kontak {
  background-color: #f4f4f4;
  color: #ddd;
  padding: 30px 10%;
  text-align: center;
}

.kontak-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.kontak-info {
  text-align: left;
  margin-bottom: 20px;
}

.kontak-info h3 {
  font-size: 1.5rem;
  color: black;
  margin-bottom: 10px;
}

.kontak-info p {
  font-size: 1rem;
  color: black;
}

.kontak-details {
  text-align: left;
}

.kontak-details h3 {
  font-size: 1.5rem;
  color: black;
  margin-bottom: 10px;
}

.kontak-details p {
  font-size: 1rem;
  color: black;
}

.kontak-details a {
  color: black;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.kontak-social {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
}

.kontak-social h3 {
  font-size: 1.5rem;
  color: black;
  margin-bottom: 10px;
}

.social-links {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  align-items: flex-start;
}

.social-links a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: black;
  margin: 0 15px;
  font-size: 1.1rem;
  gap: 6px;
  /* font-weight: 500; */
}

.social-links img {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.social-links a img {
  width: 20px;
  height: 20px;
}

.social-links span {
  font-size: 1rem;
}

.social-links a:hover img {
  transform: scale(1.1);
}

.social-links a:hover {
  color: black;
}

.footer-info {
  font-size: 0.9rem;
  color: black;
  margin-top: 20px;
}

.footer-info p {
  margin: 5px 0;
}

/* Responsif untuk mobile */
@media (max-width: 768px) {
  .kontak-content {
    text-align: center;
  }

  .kontak-info, .kontak-details {
    text-align: center;
  }

  .kontak-social {
    display: flex;
    align-items: flex-start;
    text-align: left;
    justify-content: center;
    gap: 15px;
  }

  .footer-info p {
    font-size: 0.8rem;
  }
  .nav-menu {
    position: absolute;
    top: 65px;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: none;
  }
  .nav-menu.active {
    display: flex;
  }
  .menu-toggle {
    display: flex;
    margin-right: 15px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .kontak-content {
    align-items: flex-start;
    text-align: left;
    padding: 20px;
  }

  .kontak-info, 
  .kontak-details,
  .kontak-social,
  .kontak-social p {
    text-align: left;
    width: 100%;
  }

  .social-links {
    justify-content: flex-start;
  }
}

/* ==== Perbaikan Scroll Anchor (Navbar offset) ==== */
section {
  scroll-margin-top: 100px; /* sesuaikan tinggi header kamu */
}

/* Kalau mau lebih presisi per section: */
#tentang, #faq, #kontak {
  scroll-margin-top: 120px; /* header tinggi sekitar 100px + jarak aman */
}

#layanan {
  scroll-margin-top: 0px; /* biar gak kejauhan pas scroll */
}