/* --- Import Font Lucu Tapi Rapi --- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&family=Patrick+Hand&display=swap');

/* --- HIERARKI VISUAL & TEMA KUCING ---
Ini adalah "Variabel" warna kita. Ganti di sini, semua halaman berubah!
*/
:root {
    --bg-color: #FFFBF7;      /* Krem / Putih gading (background utama) */
    --card-bg: #FFFFFF;     /* Putih bersih (untuk kartu/konten) */
    --text-color: #4E4A47;  /* Coklat tua (teks utama, lebih lembut dari hitam) */
    --heading-color: #D9899A; /* Pink-peach (untuk judul) */
    --primary-color: #FFC0CB; /* Pink pastel (tombol & link) */
    --secondary-color: #A0E7E5; /* Mint pastel (aksen & highlight) */
    --border-color: #F0F0F0;  /* Abu-abu muda (garis & border) */

    --font-body: 'Nunito', sans-serif;
    --font-heading: 'Patrick Hand', cursive;
}

/* --- Style Global (Berlaku di Semua Halaman) --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    
    /* Trik biar footer nempel di bawah walau konten dikit */
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    /* Background kucing lucu yang samar-samar */
    /* Ganti 'images/bg-kucing.png' dengan file background-mu */
    background-image: url('images/bg-kucing.png');
    background-size: 300px;
    background-repeat: repeat;
    background-attachment: fixed;
}

/* Wrapper utama untuk konten di tengah */
.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    flex: 1; /* Biar konten mengisi ruang */
}

/* Style Kartu Konten Utama */
.content-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 30px 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    /* Efek animasi masuk */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease-out forwards;
}

/* Judul Utama di tiap Halaman */
h1 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-size: 3.5em;
    text-align: center;
    margin-bottom: 20px;
}
h1::after { /* Garis bawah lucu */
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    margin: 10px auto 0;
}

p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* Tombol Navigasi Antar Halaman */
.nav-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.5em;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--heading-color);
}
.nav-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(217, 137, 154, 0.3);
}

/* Wrapper tombol biar di tengah atau di kanan */
.button-wrapper {
    text-align: center;
    margin-top: 30px;
}

/* Navigasi "Next" dan "Previous" */
.page-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

/* Footer Lucu dengan Jejak Kaki */
footer {
    text-align: center;
    padding: 20px;
    color: var(--heading-color);
    font-family: var(--font-heading);
    font-size: 1.2em;
    margin-top: 20px;
}
footer::before {
    content: '🐾';
    font-size: 1.5em;
    display: block;
    margin-bottom: 5px;
}

/* Animasi Fade-In */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Style Khusus Halaman Galeri (gallery.html) --- */
.photo-gallery {
    display: grid;
    /* Ini yang bikin rapi: 3 kolom di desktop */
    grid-template-columns: repeat(3, 1fr);
    gap: 15px; /* Jarak antar gambar */
}

.photo-item {
    width: 100%;
    height: 300px; /* Bikin semua kotak sama tinggi */
    border-radius: 15px;
    overflow: hidden; /* Biar gambar nggak keluar kotak */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.photo-item:hover {
    transform: scale(1.03); /* Efek zoom kecil */
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Biar gambar pas di kotak tanpa penyet */
}

/* Bikin jadi 2 kolom di tablet */
@media (max-width: 768px) {
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Bikin jadi 1 kolom di HP */
@media (max-width: 480px) {
    .photo-gallery {
        grid-template-columns: 1fr;
    }
    .photo-item {
        height: 250px;
    }
}

/* --- Style Khusus Halaman Video (videos.html) --- */
.video-gallery {
    gap: 20px;
}

.video-item {
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #000;
}

.video-item video {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
}

/* --- Style Khusus Halaman Peta (map.html) --- */

.map-container {
    position: relative; /* INI KUNCI UTAMA! */
    width: 100%;
    max-width: 800px; /* Batasi lebar peta biar nggak aneh */
    margin: 20px auto;
    border: 3px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden; /* Biar rapi */
}

.map-container img {
    width: 100%;
    height: auto;
    display: block; /* Menghilangkan spasi aneh di bawah gambar */
}

/* Style untuk Titik Hotspot */
.hotspot {
    position: absolute; /* Kunci kedua! Nempel di atas map-container */
    width: 40px;
    height: 40px;
    font-size: 2em; /* Ukuran emoji 🐱 */
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    /* Ini buat posisinya pas di tengah kursor, bukan di pojok kiri atas */
    transform: translate(-50%, -50%); 
    transition: transform 0.3s ease;
    
    /* Animasi berdenyut biar interaktif! */
    animation: pulse 2s infinite;
}

.hotspot:hover {
    transform: translate(-50%, -50%) scale(1.3); /* Membesar saat disentuh */
    animation-play-state: paused; /* Berhenti berdenyut pas di-hover */
}

/* Animasi Denyut */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        text-shadow: 0 0 5px rgba(255, 192, 203, 0.5);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        text-shadow: 0 0 15px rgba(217, 137, 154, 0.9);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        text-shadow: 0 0 5px rgba(255, 192, 203, 0.5);
    }
}

/* --- Style Modal (Pop-up) --- */

.modal {
    display: none; /* Sembunyi secara default */
    position: fixed; /* Tampil di atas segalanya */
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Latar belakang gelap transparan */
    
    /* Pakai flexbox biar pop-upnya pas di tengah layar */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    /* Animasi muncul */
    animation: zoomIn 0.5s ease-out;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 2.5em;
    font-weight: bold;
    cursor: pointer;
}
.modal-close:hover {
    color: var(--heading-color);
}

.modal-content h2 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.modal-content p {
    font-size: 1.1em;
    color: var(--text-color);
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Style Khusus Halaman Penutup (final.html) --- */

body.halaman-final {
    /* Background paling spesial, mungkin putih bersih */
    background-color: #fff;
    /* Kita hilangkan background pola kucing di halaman ini biar fokus */
    background-image: none; 
}

/* Ini adalah canvas untuk confetti, menutupi seluruh layar */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001; /* Di atas segalanya, tapi di belakang modal */
    pointer-events: none; /* Biar bisa klik tembus */
}

.halaman-final .content-card {
    /* Bikin kartu di halaman final lebih menonjol */
    border: 3px solid var(--primary-color);
    box-shadow: 0 10px 40px rgba(217, 137, 154, 0.3);
}

/* Foto utama di halaman final */
.final-photo {
    width: 100%;
    max-width: 400px; /* Batasi ukuran foto biar proporsional */
    height: auto;
    border-radius: 20px;
    margin: 0 auto 25px; /* Taruh di tengah dan kasih jarak bawah */
    display: block;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.halaman-final h1 {
    font-size: 4em;
    color: var(--heading-color);
}

.halaman-final p.final-message {
    font-size: 1.4em;
    line-height: 1.8;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 30px;
}