:root {
  --bg-dark: #242D4C;
  --text-light: #F1EAD8;
  --accent: #f5d38c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  scroll-behavior: smooth;
}
img {
  max-width: 100%;
  display: block;
}

/* Navbar utama */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #242D4C; /* Midnight Indigo */
  color: #F1EAD8;      /* Vanilla Cream */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  z-index: 1000;
  animation: slideDown 0.8s ease-out; /* animasi muncul */
}

/* Logo */
.navbar .logo {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
}

.logo-img {
  height: 40px;
  margin-right: 10px;
}

/* Menu utama */
.navbar .nav-right {
  display: flex;
  gap: 20px;
}

.navbar .nav-right a {
  color: #F1EAD8;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

/* Animasi underline saat hover */
.navbar .nav-right a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -4px;
  background: #f5b860;
  transition: width 0.3s ease;
}

.navbar .nav-right a:hover {
  color: #f5b860;
}

.navbar .nav-right a:hover::after {
  width: 100%;
}

/* Tombol menu hamburger */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #F1EAD8;
}

/* ANIMASI muncul navbar */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsif untuk HP */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 20px;
  }

  .navbar .nav-right {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    background: #1b2038;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
  }

  .navbar .nav-right.active {
    display: flex;
    animation: fadeIn 0.4s ease-in-out;
  }

  .menu-toggle {
    display: block;
  }

  .nav-right a {
    padding: 10px;
    text-align: left;
  }
}

/* Animasi fade-in untuk menu mobile */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== HERO SLIDER ========== */
.hero-slider {
  margin-top: 60px;
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: none;
}
.slide.show {
  display: block;
  animation: fade 1.5s ease-in-out;
}
.hero-overlay {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: rgba(36, 45, 76, 0.6);
  padding: 2rem;
  border-radius: 12px;
  color: var(--text-light);
}
.hero-logo {
  width: 100px;
  margin-bottom: 1rem;
}

/* ========== SECTION: TENTANG ========== */
.intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  gap: 2rem;
}
.intro-text {
  flex: 1 1 300px;
}
.intro-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.intro-img {
  flex: 1 1 300px;
}
.intro-img img {
  border-radius: 10px;
}

/* ========== SECTION: BERITA ========== */
#berita {
  padding: 4rem 2rem;
}
#berita h2 {
  text-align: center;
  margin-bottom: 2rem;
}
#berita-list article {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #2f3a5a;
  border-radius: 10px;
}
#berita-list h3 {
  margin-bottom: 0.5rem;
  color: var(--accent);
}

/* ========== SECTION: GALERI ========== */
#galeri {
  padding: 4rem 2rem;
  text-align: center;
}
.galeri-slider {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0;
}
.galeri-slider {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
}
.galeri-slide {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.galeri-slide img {
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  aspect-ratio: 3/4;
}
#galeri button {
  margin-top: 1.5rem;
  padding: 0.5rem 1.2rem;
  background-color: var(--text-light);
  color: var(--bg-dark);
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}
#galeri button:hover {
  background-color: var(--accent);
}

/* ========== SECTION: JADWAL ========== */
#jadwal {
  padding: 4rem 2rem;
}
#jadwal h2 {
  text-align: center;
  margin-bottom: 1rem;
}
#jadwal-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #2a3552;
  padding: 1rem;
  border-radius: 10px;
  max-width: 600px;
  margin: auto;
  font-size: 1rem;
}

/* ========== FOOTER ========== */
footer {
  background: #1a1f36;
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-left img {
  height: 50px;
}
.footer-right {
  display: flex;
  gap: 1.5rem;
}
.footer-right a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
}
.footer-right a:hover {
  color: var(--accent);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav-right {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: var(--bg-dark);
    padding: 1rem;
    border-radius: 8px;
  }
  .nav-right.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .hero-overlay {
    padding: 1rem;
    font-size: 0.9rem;
  }
  .hero-logo {
    width: 80px;
  }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.berita-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  padding: 0 2rem;
}
.berita-card {
  background: #2f3a5a;
  padding: 1.5rem;
  border-radius: 10px;
  transition: transform 0.3s ease;
}
.berita-card:hover {
  transform: translateY(-5px);
}
.berita-card h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.jadwal-item {
  background-color: #2a3552;
  color: var(--text-light);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 500;
}

.galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 0 2rem;
}
.galeri-item img {
  border-radius: 10px;
  height: 240px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.galeri-item img:hover {
  transform: scale(1.05);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
}
.shop-card {
  background-color: #2a3552;
  border-radius: 10px;
  overflow: hidden;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease;
}
.shop-card:hover {
  transform: translateY(-5px);
}
.shop-card img {
  height: 180px;
  object-fit: cover;
  width: 100%;
  border-radius: 8px;
}
.shop-card h3 {
  margin-top: 1rem;
  color: var(--accent);
}
.shop-card p {
  font-size: 0.9rem;
  margin: 0.5rem 0 1rem;
}
.btn-shop {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-dark);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}
.btn-shop:hover {
  background-color: var(--text-light);
}

.construction-section {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}
.construction-animation {
  width: 320px;
  height: 320px;
  margin: 0 auto 2rem;
}
.construction-section h1 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.subtle-text {
  font-size: 1rem;
  color: var(--accent);
  opacity: 0.8;
}

<style>
  .burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
  }

  .burger div {
    width: 25px;
    height: 3px;
    background: #F1EAD8;
  }

  @media (max-width: 768px) {
    .burger {
      display: flex;
    }

    .nav-right {
      display: none;
      flex-direction: column;
      width: 100%;
      background: #1e2540;
      padding: 1rem;
    }

    .nav-right.show {
      display: flex;
    }

    .nav-right a {
      margin: 0.5rem 0;
    }
  }
</style>

.version-tag {
  color: #f5b860;
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}

.music-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #1e2540;
  border: 2px solid #f5b860;
  border-radius: 50%;
  padding: 12px;
  z-index: 999;
}

.music-player button {
  background: none;
  border: none;
  color: #f5b860;
  font-size: 20px;
  cursor: pointer;
}

<!-- Mini Music Player -->
<div class="music-player" id="musicPlayer">
  <button id="toggleMusic">🎵</button>
  <audio id="bgMusic" loop>
    <source src="audio/bgm.mp3" type="audio/mp3">
    Browser kamu tidak mendukung pemutar musik.
  </audio>
</div>

<script>
  const bgMusic = document.getElementById('bgMusic');
  const toggleBtn = document.getElementById('toggleMusic');
  let isPlaying = false;

  toggleBtn.addEventListener('click', () => {
    if (isPlaying) {
      bgMusic.pause();
      toggleBtn.textContent = '🎵';
    } else {
      bgMusic.play();
      toggleBtn.textContent = '⏸️';
    }
    isPlaying = !isPlaying;
  });
</script>

#partnership {
  padding: 50px 0;
  background: #1b2038;
  text-align: center; /* semua isi ke tengah */
}

#partnership h2 {
  color: #F1EAD8;
  margin-bottom: 30px;   /* kasih jarak ke logo */
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;    /* pastikan tulisan h2 center */
}

.partner-logos {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.logo-track {
  display: flex;
  gap: 50px;
  width: max-content;
  animation: scrollLeft 20s linear infinite;
}

.logo-track img {
  max-height: 100px; /* lebih besar & fleksibel */
  height: auto;
  width: auto;
  margin: 0 20px;
  transition: transform 0.3s ease;
}

.logo-track img:hover {
  transform: scale(1.2);
}

@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
