/* --- 1. VARIABLES & RESET --- */
:root {
  --bg-color: #050505; /* Hitam Pekat */
  --text-color: #ffffff; /* Putih */
  --accent-color: #2c8acb; /* Biru Holyland */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --card-radius: 16px; /* Sudut Melengkung Konsisten */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- 2. UTILITIES & ANIMATIONS --- */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--accent-color);
  font-weight: 700;
}

.fade-in-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-in-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- 3. HERO SECTION --- */
.hero {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* Menggunakan gambar lokal */
  background: url("../img/hero-bg.jpg") no-repeat center center/cover;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

/* LOGO STYLE */
.hero-logo {
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  display: inline-block;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #e0e0e0;
}

.btn-scroll {
  padding: 12px 30px;
  border: 2px solid var(--accent-color);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  transition: 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.btn-scroll:hover {
  background: var(--accent-color);
  box-shadow: 0 0 15px var(--accent-color);
}

/* --- 4. GLASSMORPHISM CARD --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--glass-border);
  border-radius: var(--card-radius);
  padding: 30px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* --- 5. ABOUT SECTION & MAIN VIDEO STYLE --- */
.event-desc {
  text-align: justify;
  font-size: 1rem;
  color: #e0e0e0;
  margin-bottom: 40px;
  line-height: 1.8;
}

.date-highlight {
  text-align: center;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 20px;
  display: block;
}

/* Container Video Utama (Full Width & Rounded) */
.main-video-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 30px 0 0 0;

  border-radius: var(--card-radius);
  overflow: hidden;

  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);

  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--card-radius);
}

.video-actions {
  padding: 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.video-caption {
  font-size: 0.9rem;
  color: #ccc;
  font-style: italic;
}

.btn-primary {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(44, 138, 203, 0.3);
}

.btn-primary:hover {
  background: #1a6aa0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 138, 203, 0.5);
}

/* --- 6. GALLERY GRID (PHOTO) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  cursor: pointer;
  border-radius: var(--card-radius);
  overflow: hidden;
  height: 250px;
  border: var(--glass-border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: 20px;
  opacity: 0;
  transition: 0.3s;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

/* --- 7. VIDEO GRID --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.video-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.video-thumb {
  position: relative;
  height: 180px;
  background: #000;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.video-thumb:hover img {
  opacity: 1;
}

.btn-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(44, 138, 203, 0.9);
  border: none;
  color: white;
  font-size: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
}

.btn-play:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--accent-color);
}

.video-info {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
}

.video-info h3 {
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.btn-sm {
  font-size: 0.8rem;
  color: var(--accent-color);
  text-decoration: none;
  border: 1px solid var(--accent-color);
  padding: 5px 12px;
  border-radius: 6px;
  transition: 0.2s;
}

.btn-sm:hover {
  background: var(--accent-color);
  color: white;
}

/* --- 8. FOOTER --- */
footer {
  text-align: center;
  padding: 40px;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #888;
  font-size: 0.9rem;
}

/* --- 9. MODAL / LIGHTBOX --- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  object-fit: contain;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 1001;
  transition: 0.3s;
}

.close-btn:hover {
  color: var(--accent-color);
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  padding: 15px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  transition: 0.3s;
  z-index: 1001;
}

.nav-btn:hover {
  background: var(--accent-color);
}

.prev {
  left: 20px;
}
.next {
  right: 20px;
}

/* Styles untuk Download Button di Modal */
.lightbox-footer {
  text-align: center;
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1002;
}

#caption {
  color: #ccc;
  font-size: 1.1rem;
}

.video-modal-footer {
  text-align: center;
  margin-top: 15px;
}

.btn-download-modal {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.3s;
  border: 1px solid transparent;
}

.btn-download-modal:hover {
  background-color: transparent;
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: scale(1.05);
}

/* Video Modal */
.video-container {
  width: 90%;
  max-width: 900px;
}

.video-container video {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

/* --- 10. RESPONSIVE --- */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .gallery-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .nav-btn {
    padding: 10px;
    font-size: 18px;
  }

  .hero-logo {
    max-width: 100px;
  }
  .main-video-wrapper {
    margin-top: 20px;
  }
  .lightbox-content {
    max-height: 70vh;
  }
}
