/* =====================================================
   RESET & GLOBAL
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Poppins', sans-serif;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    transition: background 1.2s ease, filter 1s ease;
}

/* =====================================================
   ROOT
===================================================== */
:root {
    --bg-color: #0f0f0f;
    --text-color: #ffffff;
    --primary-color: #ff5f9e;
    --accent-color: #ffd6e8;
}

/* =====================================================
   SECTION
===================================================== */
.section {
    min-height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 64px 24px;
    text-align: center;
    position: relative;
}

.section.active {
    display: flex;
}

/* =====================================================
   TYPOGRAPHY
===================================================== */
h1 {
    font-size: clamp(32px, 6vw, 52px);
}

h2 {
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 20px;
}

/* =====================================================
   BUTTON
===================================================== */
button {
    padding: 14px 32px;
    border-radius: 999px;
    border: none;
    font-size: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    cursor: pointer;
    transition: all .3s ease;
}

button:hover {
    transform: translateY(-3px) scale(1.05);
}

/* =====================================================
   LOADING
===================================================== */
#loading {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* =====================================================
   COUNTDOWN
===================================================== */
#countdown {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

#countdown div {
    background: rgba(255,255,255,.15);
    padding: 26px;
    border-radius: 22px;
}

/* =====================================================
   MODE RINDU
===================================================== */
body.rindu {
    filter: grayscale(.35) brightness(.85);
}

/* =====================================================
   FIREWORK
===================================================== */
#fireworks-canvas {
    position: absolute;
    inset: 0;
    z-index: -1;
}

/* =====================================================
   LETTER
===================================================== */
.letter-box {
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(16px);
    padding: 42px;
    border-radius: 26px;
    max-width: 640px;
}

/* =====================================================
   MINI GAME
===================================================== */
#game-area {
    width: 420px;
    height: 420px;
    background: rgba(255,255,255,.12);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.game-heart {
    position: absolute;
    font-size: 32px;
    cursor: pointer;
    animation: pop .3s ease;
}

/* =====================================================
   TEPUK TANGAN VIRTUAL (DIPULIHKAN)
===================================================== */
.clap {
    font-size: 32px;
    cursor: pointer;
    animation: pulseSoft 1.2s infinite;
}

.clap-particle {
    position: absolute;
    font-size: 18px;
    animation: floatUp 1.4s ease forwards;
}

/* =====================================================
   ZONA ANEH (DIPULIHKAN)
===================================================== */
.weird-zone {
    margin-top: 24px;
    opacity: .85;
    animation: glitch 3s infinite;
}

/* ================= SIDEBAR FINAL BERSIH ================= */

#open-sidebar {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    padding: 10px 16px;
    font-size: 22px;
    border-radius: 50%;
}

/* Container utama */
#sidebar {
    position: fixed;
    top: 0;
    left: -300px;               /* SEMBUNYI KE KIRI */
    width: 300px;
    height: 100vh;

    background: rgba(15,15,15,0.95);
    backdrop-filter: blur(16px);

    display: flex;
    flex-direction: column;

    z-index: 9998;
    transition: left 0.4s ease;
}

/* Aktif */
#sidebar.active {
    left: 0;
}

/* ================= HEADER ================= */
.sidebar-header {
    flex-shrink: 0;
    padding: 18px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h3 {
    font-size: 18px;
}

#close-sidebar {
    background: none;
    box-shadow: none;
    font-size: 18px;
    padding: 6px;
}

/* ================= MENU (SCROLL AREA) ================= */
.sidebar-menu {
    flex: 1;
    list-style: none;

    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;

    overflow-y: auto;
}

/* Item */
.sidebar-menu li {
    background: rgba(255,255,255,0.1);
    padding: 14px;
    border-radius: 16px;
}

/* Judul fitur */
.sidebar-menu strong {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}

/* Deskripsi */
.sidebar-menu p {
    font-size: 13px;
    margin-top: 8px;
    opacity: 0.85;
}

/* ================= FOOTER ================= */
.sidebar-footer {
    flex-shrink: 0;
    padding: 12px 16px;

    text-align: center;
    font-size: 11px;
    opacity: 0.6;

    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ================= SCROLLBAR ================= */
.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}
.sidebar-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        var(--primary-color),
        var(--accent-color)
    );
    border-radius: 10px;
}
