/* --- Pengaturan Dasar & Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #121212; /* Latar belakang hitam pekat */
    color: #e0e0e0; /* Teks putih pudar */
    line-height: 1.7;
    /* PENTING: Membuat scroll dari tombol "Ulang" menjadi mulus */
    scroll-behavior: smooth;
}

/* --- Latar Belakang Partikel --- */
#particles-js {
    position: fixed; /* Tetap di layar */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1; /* Posisikan di paling belakang */
}

/* --- Efek Vignette (Tepi Gelap) --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Bayangan gelap di tepi layar */
    box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.7);
    z-index: 1; /* Di atas partikel, di bawah konten */
    pointer-events: none; /* Agar tidak bisa di-klik */
}

/* --- Halaman Cerita Individual --- */
.story-page {
    /* Setiap halaman akan setinggi 1 layar penuh */
    min-height: 100vh; 
    width: 100%;
    
    /* Memusatkan konten di tengah layar */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    padding: 40px 20px;
    position: relative;
    z-index: 2; /* Di atas vignette */
    
    /* EFEK ANIMASI: Sembunyikan halaman secara default */
    opacity: 0;
    transform: translateY(30px); /* Posisi awal sedikit di bawah */
    transition: opacity 1.2s ease-out, transform 1s ease-out;
}

/* KELAS BARU: Diterapkan oleh JS saat halaman terlihat */
.story-page.is-visible {
    opacity: 1;
    transform: translateY(0); /* Kembali ke posisi normal */
}

/* --- Elemen Teks Cerita --- */
.story-page h1 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.story-page h2 {
    font-size: 1.8rem;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.story-page p {
    font-size: 1.1rem;
    color: #cccccc;
    min-height: 100px; /* Beri ruang agar layout tidak lompat */
    max-width: 500px; /* Batasi lebar teks di desktop */
}

/* Kursor dari Typed.js */
.typed-cursor {
    color: #cccccc;
    font-size: 1.2rem;
}

/* --- Indikator Scroll di Halaman 1 --- */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

.scroll-indicator .arrow {
    width: 1px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 5px auto 0;
}

/* Animasi untuk indikator scroll */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* --- Tombol Ulang di Halaman Terakhir --- */
.reset-btn {
    display: inline-block;
    background-color: #007bff;
    color: #ffffff;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    text-decoration: none; /* Hilangkan garis bawah dari tag <a> */
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 40px; /* Jarak dari teks di atasnya */
}

.reset-btn:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}