:root {
  --font-cinzel: 'Cinzel', serif;
  --font-sans: 'Inter', sans-serif;
  --color-gold: #D4AF37;
  --color-gold-light: #E6CA65;
  --color-bg-dark: #0B111E;
  --color-card-bg: #121B2D;
}

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

body {
  font-family: var(--font-cinzel);
  background-color: var(--color-bg-dark);
  color: #FFFFFF;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Background Image & Gradient Overlay */
.bg-hero {
  position: fixed;
  inset: 0;
  background-image: url('bg-hero.webp');
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.bg-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Warna gelap transparan dikombinasikan dengan efek blur */
  background: rgba(11, 17, 30, 0.7); 
  backdrop-filter: blur(3px); /* Efek frosted glass / kaca buram */
  -webkit-backdrop-filter: blur(3px); /* Support untuk Safari */
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  background: rgba(11, 17, 30, 0.9);
  backdrop-filter: blur(8px);
  padding: 15px 24px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-gold-light);
  letter-spacing: 1px;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-gold);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: #D1D5DB;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 2px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--color-gold-light);
}

/* Mobile Hamburger Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background-color: var(--color-gold-light);
  transition: all 0.3s;
}

/* Hero Content */
.hero-section {
  text-align: center;
  padding: 130px 20px 60px;
  max-width: 800px;
  margin: 0 auto;
}

.subtitle-top {
  color: var(--color-gold-light);
  font-size: 0.85rem;
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.title-festival {
  font-size: 3rem;
  color: var(--color-gold-light);
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
  margin-bottom: 4px;
}

.year {
  font-size: 1.1rem;
  color: #D1D5DB;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.tagline {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--color-gold-light);
  margin-bottom: 35px;
}

/* CTA Buttons */
.cta-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 24px;
  font-family: var(--font-cinzel);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 2px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background-color: var(--color-gold);
  color: var(--color-bg-dark);
  border: none;
}

.btn-primary:hover {
  background-color: var(--color-gold-light);
}

.btn-outline {
  background: transparent;
  color: var(--color-gold-light);
  border: 1px solid var(--color-gold);
}

.btn-outline:hover {
  background-color: rgba(212, 175, 55, 0.1);
}

/* Interactive Location Link */
.location {
  display: inline-block;
  font-size: 0.8rem;
  color: #D1D5DB;
  text-decoration: none;
  letter-spacing: 1px;
  margin-bottom: 30px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.location:hover {
  color: var(--color-gold-light);
  background: rgba(212, 175, 55, 0.15);
}

/* Countdown */
.countdown-title {
  font-size: 0.75rem;
  color: var(--color-gold-light);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.countdown-box {
  background: rgba(11, 17, 30, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 450px;
  margin: 0 auto;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-val {
  font-size: 1.6rem;
  font-weight: 700;
}

.time-lbl {
  font-size: 0.6rem;
  color: var(--color-gold-light);
  letter-spacing: 1px;
}

/* ============================================================================
   BACKGROUND GRID KOTA-KOTA & GRADASI DINAMIS (UNTUK SECTION TANPA GAMBAR)
   ============================================================================ */

@keyframes dynamicGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.about-section, .competition-section {
  position: relative;
  padding: 80px 20px;
  background-color: var(--color-bg-dark);
  background-image: 
    linear-gradient(135deg, rgba(11, 17, 30, 0.95), rgba(21, 32, 54, 0.9), rgba(11, 17, 30, 0.95)),
    linear-gradient(to right, rgba(212, 175, 55, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(212, 175, 55, 0.05) 1px, transparent 1px);
  background-size: 200% 200%, 40px 40px, 40px 40px;
  animation: dynamicGradient 15s ease infinite;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  overflow: hidden;
}

.about-section::before, .competition-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.about-section .section-container, 
.competition-section .section-container {
  position: relative;
  z-index: 1;
}

.section-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: 1.8rem;
  color: var(--color-gold-light);
  letter-spacing: 3px;
}

.gold-divider {
  width: 60px;
  height: 2px;
  background: var(--color-gold);
  margin: 12px auto 24px;
}

.about-description {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.8;
  color: #D1D5DB;
  max-width: 750px;
  margin: 0 auto;
}

/* Competition Cards */
.comp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.comp-card {
  background: var(--color-card-bg);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
}

.comp-header {
  background: rgba(212, 175, 55, 0.15);
  color: var(--color-gold-light);
  padding: 14px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.comp-list {
  list-style: none;
  padding: 20px;
  font-family: var(--font-sans);
}

.comp-list li {
  padding: 8px 0;
  color: #E5E7EB;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comp-list span {
  color: var(--color-gold);
}

/* Footer */
.footer {
  text-align: center;
  padding: 24px;
  background: #070B14;
  font-size: 0.7rem;
  color: #6B7280;
  letter-spacing: 1px;
}

/* Modal Contact */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-content {
  background-color: var(--color-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  padding: 24px;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-header h2 {
  font-size: 1.1rem;
}

.btn-back {
  background: none;
  border: none;
  color: var(--color-gold);
  cursor: pointer;
}

.modal-subtitle {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #9CA3AF;
  margin: 4px 0 20px 36px;
}

.cp-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cp-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(11, 17, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: white;
  transition: border-color 0.2s;
}

.cp-card:hover {
  border-color: var(--color-gold);
}

.cp-info h3 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.cp-info p {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: #9CA3AF;
}

.wa-icon { color: #9CA3AF; }
.cp-card:hover .wa-icon { color: var(--color-gold); }

/* Mobile Responsive Optimization */
@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(11, 17, 30, 0.98);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  }

  .nav-links.active {
    display: flex;
  }

  .title-festival { font-size: 2.1rem; }
  .comp-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
  .time-val { font-size: 1.2rem; }
  
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
}