/* === RESET DASAR === */
body {
  font-family: 'Orbitron', sans-serif;
  background-color: #0d0d0d;
  color: white;
  margin: 0;
  padding: 0 20px;
  transition: all 0.3s ease;
  overflow-x: hidden;
}

/* === LIGHT MODE === */
body.light-mode {
  background-color: #f4f4f4;
  color: black;
}
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6,
body.light-mode p,
body.light-mode span,
body.light-mode label,
body.light-mode a,
body.light-mode li,
body.light-mode .card,
body.light-mode .layanan .card,
body.light-mode .kontak-info,
body.light-mode .footer,
body.light-mode .galeri,
body.light-mode form {
  color: inherit !important;
}
body.light-mode .card,
body.light-mode .card.expanded,
body.light-mode .kontak input,
body.light-mode .kontak textarea {
  background-color: #fff;
  color: #000;
  border-color: #000;
}
body.light-mode .hero {
  background-color: #fff;
  color: #000;
}
body.light-mode .hero * {
  color: #000 !important;
}
body.light-mode header {
  background-color: #fff;
  border-bottom: 1px solid #ccc;
}

/* === SCROLLBAR NEON === */
body::-webkit-scrollbar {
  width: 10px;
}
body::-webkit-scrollbar-thumb {
  background-color: #00ff00;
  border-radius: 10px;
}
body::-webkit-scrollbar-track {
  background-color: transparent;
}

/* === HEADER === */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #000;
  position: sticky;
  top: 0;
  z-index: 999;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

/* Tambahkan ini untuk mengatur gaya link navigasi */
header nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.logo img {
  height: 50px;
}

nav {
  margin-left: 2rem;
}
nav a {
  margin: 0 15px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s ease;
}
nav a:hover {
  color: #00ff00;
  transform: scale(1.1);
}

#modeToggle {
  background: none;
  border: 2px solid #00ff00;
  padding: 5px 10px;
  border-radius: 5px;
  color: #00ff00;
  cursor: pointer;
  transition: background 0.3s ease;
}
#modeToggle:hover {
  background-color: #00ff00;
  color: #000;
}

/* === HERO === */
.hero {
  text-align: center;
  padding: 100px 20px;
  background-color: #111;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.hubungi-btn {
  background-color: #00ff00;
  color: #000;
  padding: 10px 25px;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  transition: transform 0.2s ease;
}
.hubungi-btn:hover {
  transform: scale(1.1);
}

section {
  padding: 80px 0;
}

/* === LAYANAN KAMI === */
.layanan-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.layanan {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.card {
  background-color: #1a1a1a;
  border: 1px solid #00ff00;
  border-radius: 10px;
  padding: 20px;
  width: 250px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  color: white;
}
.card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 10px #00ff00;
}
.card h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.toggle-icon {
  font-size: 1rem;
  transition: transform 0.3s;
}
.card.expanded .toggle-icon {
  transform: rotate(180deg);
}
.card .hint {
  font-size: 0.8em;
  color: #aaa;
  margin-top: 5px;
  font-style: italic;
}

/* Detail (Tertutup) */
.card .detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

/* Detail (Expanded + Scroll) */
.card.expanded .detail {
  max-height: 220px;
  overflow-y: auto;
  padding: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 1;
}
.card .detail::-webkit-scrollbar {
  width: 6px;
}
.card .detail::-webkit-scrollbar-thumb {
  background-color: #00ff00;
  border-radius: 10px;
}
.card .detail::-webkit-scrollbar-track {
  background-color: transparent;
}

/* === GALERI === */
.galeri-container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 20px;
  padding-bottom: 10px;
}
.galeri-container::-webkit-scrollbar {
  height: 8px;
}
.galeri-container::-webkit-scrollbar-thumb {
  background-color: #00ff00;
  border-radius: 5px;
}
.galeri-container::-webkit-scrollbar-track {
  background-color: transparent;
}
.galeri img {
  height: 150px;
  width: auto;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.galeri img:hover {
  transform: scale(1.05);
}

/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
  cursor: zoom-out;
  flex-direction: column;
}
.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  animation: zoomIn 0.4s ease;
  box-shadow: 0 0 20px #00ff00;
  transition: transform 0.3s ease;
}
.lightbox .caption {
  color: #fff;
  margin-top: 10px;
  font-size: 1rem;
  text-align: center;
  font-weight: bold;
}
@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes fadeIn {
  from { background: rgba(0, 0, 0, 0); }
  to { background: rgba(0, 0, 0, 0.85); }
}

/* === KONTAK === */
.kontak form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
  max-width: 600px;
  margin-inline: auto;
}
.kontak input,
.kontak textarea {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #00ff00;
  background-color: #1a1a1a;
  color: #fff;
}
.kontak button {
  background-color: #00ff00;
  color: #000;
  padding: 10px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.kontak-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
  align-items: stretch;
}
.kontak-wrapper form {
  width: 100%;
}
.kontak-info-maps {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.kontak-info {
  margin-bottom: 20px;
}
.maps iframe {
  width: 100%;
  height: 100%;
  min-height: 250px;
  border: none;
}

/* === FOOTER & WHATSAPP === */
footer {
  background-color: #000;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  border-top: 1px solid #00ff00;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  padding: 10px 15px;
  border-radius: 50px;
  box-shadow: 0 0 10px #00ff00;
  z-index: 1000;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.whatsapp-float img {
  width: 30px;
  height: 30px;
}
.whatsapp-float span {
  font-weight: bold;
  color: white;
  font-size: 0.9rem;
  white-space: nowrap;
}
.whatsapp-float::after {
  content: "Hubungi Kami Untuk Survey Gratis";
  margin-left: 10px;
  font-size: 0.9rem;
  font-weight: bold;
  color: white;
}
.whatsapp-float:hover {
  transform: scale(1.1);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  nav {
    margin-left: 2rem;
  }
  nav a {
    display: inline-block;
    margin: 10px 5px;
  }
  .kontak-wrapper {
    grid-template-columns: 1fr;
  }
  .whatsapp-float::after {
    display: none;
  }
  .layanan-container {
    flex-direction: column;
    align-items: center;
  }
}
