/* === Font dan Reset Dasar === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Quicksand', sans-serif;
  
  background: url('pexels-njeromin-18124007.jpg') no-repeat center center fixed;
  background-size: cover;
  color: white;
  
  overflow-x: hidden;
}

/* === Background Bintang === */
.stars::before {
  content: '';
  position: fixed;
  width: 100%;
  height: 100%;
  background: url('images/stars.png') repeat;
  z-index: -2;
  animation: twinkling 20s linear infinite;
}

@keyframes twinkling {
  from { background-position: 0 0; }
  to { background-position: -1000px 500px; }
}

/* === Header dan Navigasi === */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0,0,0,0.4);
  padding: 10px 0;
  z-index: 10;
  text-align: center;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 1.2em;
  font-family: 'Playfair Display', serif;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: white;
  bottom: -5px;
  left: 0;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* === Section === */
.section {
  min-height: 100vh;
  padding: 120px 20px 40px;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.section.active {
  display: flex;
}

.no-bg {
  background: transparent;
}

h1.fancy-text {
  font-family: 'Dancing Script', cursive;
  font-size: 3em;
  animation: floatText 4s ease-in-out infinite;
  color: white;
}

@keyframes floatText {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5em;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Media Section === */
.media-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.media-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(255,255,255,0.2);
  max-width: 300px;
}

.media-box iframe {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  border: none;
}

/* === Album Cover Animasi === */
.album-cover {
  width: 100px;
  height: 100px;
  background: url('images/cover.png') no-repeat center/cover;
  margin: 0 auto 10px;
  border-radius: 50%;
  animation: spin 6s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* === Homework Buttons === */
.button-container {
  margin-bottom: 20px;
}

.sub-btn {
  background: rgba(255,255,255,0.1);
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 5px;
  font-size: 1em;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.sub-btn:hover {
  background: rgba(255,255,255,0.3);
}

.sub-content {
  display: none;
}

.sub-content a.btn {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 10px;
  background: rgba(255,255,255,0.1);
  color: white;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.3s ease;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-family: 'Playfair Display', serif;
  margin: 40px 0 20px;
  color: #fff;
}

.box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.font-box {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  text-align: center;
  transition: transform 0.3s ease;
  padding: 10px;
}

.font-box:hover {
  transform: scale(1.05);
  background-color: rgba(255, 255, 255, 0.2);
}

/* Galeri format gambar */
.image-box-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.image-box {
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 16px;
  padding: 15px;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.image-box:hover {
  transform: scale(1.05);
}

.image-box img {
  max-width: 100%;
  height: 150px;
  object-fit: contain;
  border-radius: 12px;
}

.image-box p {
  margin-top: 10px;
  font-family: 'Quicksand', sans-serif;
  font-size: 16px;
  color: #fff;
  font-weight: bold;
}
.audio-box {
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  color: white;
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.audio-box audio {
  width: 100%;
  border-radius: 8px;
  outline: none;
}

.audio-box p {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: bold;
  background-color: rgba(0,0,0,0.7);
  padding: 6px 0;
}

.audio-box:hover {
  transform: scale(1.05);
}


.video-showcase {
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.video-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: white;
  margin-bottom: 40px;
  text-shadow: 2px 2px #000;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-items: center;
}

.video-box {
  background-color: rgba(255, 255, 255, 0.07);
  padding: 15px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.video-box:hover {
  transform: translateY(-5px);
}

.video-box video {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.video-box p {
  margin-top: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  font-family: 'Quicksand', sans-serif;
  text-shadow: 1px 1px #000;
}
