/* TEMA TERANG (LIGHT MODE): BIRU & PUTIH */
:root {
    --primary: #000; /* Biru Gelap (Navy) */
    --primary2: #000; /* Biru Terang */
    --primary-light: #DBEAFE; /* Biru Sangat Muda */
    --bg: #F8FAFC;
    --card: #FFFFFF;
    --soft: #EFF6FF; /* Background Aksen Biru Muda */
    --text: #1E293B;
    --muted: #64748B;
    --border: #BFDBFE;
    --success: #16A34A;
    --shadow: 0 10px 30px rgba(30, 58, 138, 0.08); /* Bayangan kebiruan */
    --radius: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Poppins", sans-serif; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); overflow-x: hidden; padding-bottom: 85px; transition: background 0.3s, color 0.3s; }

.view { display: none; animation: fadeIn 0.4s ease-in-out; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* LOADING SCREEN */
#loader { position: fixed; inset: 0; background: white; display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 99999; transition: .8s; }
.hide-loader { opacity: 0; visibility: hidden; pointer-events: none; }

.dots-loader { display: flex; gap: 12px; }
.dots-loader div { width: 22px; height: 22px; background-color: var(--primary); border-radius: 50%; animation: wave 1.2s ease-in-out infinite; }
.dots-loader div:nth-child(1) { animation-delay: 0s; }
.dots-loader div:nth-child(2) { animation-delay: 0.2s; }
.dots-loader div:nth-child(3) { animation-delay: 0.4s; }

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

/* HERO & BANNER */
.banner { width: 100%; height: 250px; overflow: hidden; position: relative; }
.banner-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero { width: 92%; max-width: 900px; margin: auto; text-align: center; padding-bottom: 35px; }
.logo-circle { width: 145px; height: 145px; background: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; margin: -72px auto 20px; box-shadow: var(--shadow); position: relative; z-index: 5; border: 4px solid var(--primary-light); overflow: hidden; }
.logo-img { width: 100%; height: 100%; object-fit: cover; }

.hero h1 { font-size: 34px; font-weight: 700; color: var(--primary);}
.subtitle { margin-top: 8px; color: var(--muted); }

.status { margin: 18px auto; background: #DCFCE7; width: fit-content; padding: 10px 20px; border-radius: 40px; display: flex; align-items: center; gap: 8px; color: var(--success); font-weight: 600; }
.status-dot { width: 10px; height: 10px; background: var(--success); border-radius: 50%; animation: pulse 1.3s infinite; }

/* COUNTDOWN */
.countdown { margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.time-box { background: white; border: 1px solid var(--border); border-radius: 20px; padding: 25px 15px; box-shadow: var(--shadow); transition: .35s; }
.time-box:hover { transform: translateY(-8px); border-color: var(--primary2); }
.time-box h2 { font-size: 34px; color: var(--primary); font-weight: 800;}
.time-box span { font-size: 13px; color: var(--muted); font-weight: 500;}

/* TOMBOL UTAMA */
.hero-button { display: flex; justify-content: center; gap: 15px; margin-top: 28px; flex-wrap: wrap; }
.btn-primary, .btn-secondary { padding: 15px 30px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: .35s; border: none; cursor: pointer; display: inline-block;}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 10px 20px rgba(30,58,138,.2); }
.btn-primary:hover { background: var(--primary2); transform: translateY(-4px); box-shadow: 0 15px 25px rgba(37,99,235,.3); }
.btn-secondary { background: white; color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--soft); }

/* PENGUMUMAN & MENU */
.announcement { width: 92%; max-width: 1100px; margin: 40px auto; }
.announcement-box { background: white; border-radius: 20px; padding: 18px; display: flex; align-items: center; gap: 15px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.announcement-box i { font-size: 24px; color: var(--primary2); }

.menu-grid { width: 92%; max-width: 1100px; margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 40px;}
.menu-card { background: white; border-radius: 20px; padding: 25px 15px; text-align: center; text-decoration: none; color: var(--text); box-shadow: var(--shadow); border: 1px solid var(--border); transition: .35s; cursor: pointer; display: block;}
.menu-card:hover { transform: translateY(-8px); background: var(--primary); color: white; border-color: var(--primary); }
.menu-card i { font-size: 32px; color: var(--primary2); margin-bottom: 12px; display: block; transition: .3s;}
.menu-card:hover i { color: white; }
.menu-card span { font-weight: 600; font-size: 14px;}

@keyframes pulse { 50% { transform: scale(1.35); } }

/* HEADER HALAMAN KEDUA */
.page-header { display: flex; align-items: center; gap: 15px; padding: 20px; background: white; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border-bottom: 1px solid var(--border);}
.back-btn { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--soft); color: var(--primary); text-decoration: none; font-size: 18px; border: none; cursor: pointer; transition: .3s;}
.back-btn:hover { background: var(--primary); color: white; }
.page-header h2 { font-size: 20px; color: var(--text); font-weight: 600;}
.page-title { text-align: center; padding: 30px 20px 10px; }
.page-title h1 { font-size: 32px; color: var(--primary); margin-bottom: 8px; font-weight: 700; }
.page-title p { color: var(--muted); }

/* TIMELINE */
.timeline { position: relative; margin: 30px auto; padding-left: 35px; max-width: 800px; width: 90%;}
.timeline::before { content: ""; position: absolute; left: 12px; top: 0; bottom: 0; width: 4px; background: var(--primary-light); border-radius: 10px; }
.timeline-item { position: relative; margin-bottom: 35px; }
.dot { position: absolute; left: -32px; top: 22px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary2); border: 4px solid white; box-shadow: 0 0 0 3px var(--primary-light); z-index: 2;}
.timeline-card { background: white; padding: 20px; border-radius: 20px; box-shadow: var(--shadow); border: 1px solid var(--border); transition: .3s;}
.timeline-card:hover { transform: translateX(5px); border-color: var(--primary2); }
.timeline-card span { display: inline-block; padding: 4px 12px; background: var(--soft); border-radius: 20px; font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 8px;}
.timeline-card h3 { margin: 5px 0 8px; color: var(--text); font-size: 18px;}
.timeline-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.timeline-item.active .dot { background: var(--success); box-shadow: 0 0 0 3px #DCFCE7;}
.timeline-item.active .timeline-card { border-left: 4px solid var(--success); }

/* GALERI POSTER */
.gallery-container { max-width: 1000px; margin: 0 auto 40px auto; padding: 0 20px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.gallery-item { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: white; border: 1px solid var(--border); transition: .3s; position: relative;}
.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(30,58,138,.15);}
.gallery-item img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.5s; display: block; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-info { padding: 15px; background: white; position: relative; z-index: 2;}
.gallery-info h4 { color: var(--primary); font-size: 16px; margin-bottom: 4px;}
.gallery-info p { color: var(--muted); font-size: 13px;}

/* FAQ */
.faq-wrapper { max-width: 800px; margin: 0 auto 50px auto; padding: 0 20px; }
.faq-item { background: white; margin-bottom: 16px; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; transition: .3s; }
.faq-item:hover { border-color: var(--primary2); }
.faq-btn { width: 100%; padding: 22px; text-align: left; background: none; border: none; font-size: 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; cursor: pointer; color: var(--text); }
.faq-btn span { padding-right: 20px; line-height: 1.4;}
.faq-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--soft); display: flex; align-items: center; justify-content: center; color: var(--primary); transition: transform 0.3s; flex-shrink: 0;}
.faq-content { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease; background: var(--bg); color: var(--muted); font-size: 14.5px; line-height: 1.6;}
.faq-content p { padding-bottom: 15px; }

.faq-item.active { border-color: var(--primary); box-shadow: 0 10px 25px rgba(37,99,235,.15); }
.faq-item.active .faq-btn { color: var(--primary); }
.faq-item.active .faq-icon { background: var(--primary); color: white; transform: rotate(180deg); }
.faq-item.active .faq-content { max-height: 500px; padding-top: 10px; padding-bottom: 20px; }

/* GUIDEBOOK */
.guidebook-container { max-width: 800px; margin: 0 auto 50px auto; padding: 0 20px; }
.rule-card { background: white; border-radius: 20px; padding: 22px; margin-bottom: 16px; box-shadow: var(--shadow); border: 1px solid var(--border); display: flex; gap: 18px; align-items: flex-start; transition: .3s;}
.rule-card:hover { border-color: var(--primary2); transform: translateY(-4px); box-shadow: 0 15px 30px rgba(30,58,138,.1); }
.rule-icon { width: 50px; height: 50px; background: var(--soft); color: var(--primary); border-radius: 14px; display: flex; justify-content: center; align-items: center; font-size: 22px; flex-shrink: 0;}
.rule-text { flex: 1; }
.rule-text h4 { color: var(--text); font-size: 17px; margin-bottom: 6px; font-weight: 600;}
.rule-text p, .rule-text ul { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.rule-text ul { padding-left: 20px; margin-top: 8px; list-style-type: disc; }
.rule-text li { margin-bottom: 4px; }
.download-box { background: var(--primary); color: white; padding: 20px; border-radius: 20px; text-align: center; margin-top: 30px; box-shadow: 0 10px 25px rgba(30,58,138,.2);}
.download-box p { color: var(--primary-light); margin-bottom: 15px; font-size: 14px;}

/* KOMPONEN FLOATING & TOAST */
.dark-btn { position: fixed; left: 20px; bottom: 90px; width: 55px; height: 55px; border: none; border-radius: 50%; background: var(--primary); color: white; font-size: 22px; cursor: pointer; box-shadow: 0 10px 25px rgba(30,58,138,.3); z-index: 999; transition: .3s; }
.dark-btn:hover { transform: scale(1.1); background: var(--primary2);}

.bottom-nav { position: fixed; left: 0; bottom: 0; width: 100%; background: white; display: flex; justify-content: space-around; padding: 12px 0 15px; box-shadow: 0 -5px 20px rgba(0,0,0,.05); z-index: 999; border-top: 1px solid var(--border);}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--muted); font-size: 12px; transition: .3s; cursor: pointer; width: 33.33%;}
.bottom-nav a:hover, .bottom-nav a.active { color: var(--primary2); }
.bottom-nav i { font-size: 22px; margin-bottom: 2px;}
.bottom-nav a.active i { transform: translateY(-3px); color: var(--primary); }

.toast { position: fixed; top: 25px; left: 50%; transform: translateX(-50%); background: var(--text); color: white; padding: 15px 25px; border-radius: 40px; box-shadow: 0 8px 25px rgba(0,0,0,.2); opacity: 0; transition: .4s; z-index: 99999; pointer-events: none; font-weight: 500; font-size: 14px;}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(10px); }

