/* =================================================================
   TEMA: KHITANAN BATTLE ROYALE (Free Fire)
   Font: Bangers, Luckiest Guy, Poppins
   Warna: Orange, Yellow, Blue, Dark Grey
   ================================================================= */

/* --- Import Font --- */
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Luckiest+Guy&family=Poppins:wght@400;700&display=swap');

/* --- Global Reset & Styling --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background: linear-gradient(180deg, #87CEFA 0%, #FFA500 100%); /* Langit ke Senja */
    color: #333;
    overflow-x: hidden;
}
html.no-scroll, body.no-scroll { height: 100%; overflow: hidden; }
.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; border-bottom: 3px dashed rgba(0,0,0,0.2); }

/* --- Judul & Pembatas --- */
h1, h2, h3, h4, h5, h6 { color: #FFA500; /* Oranye */ }
h1 { font-family: 'Bangers', cursive; font-size: 5rem; color: #FFD700; -webkit-text-stroke: 2px #333; text-shadow: 4px 4px 0 #FFA500; }
h2 { font-family: 'Luckiest Guy', cursive; font-size: 2.8rem; text-align: center; margin-bottom: 10px; }
/* Pembatas gaya FF */
.ff-divider {
    height: 5px;
    width: 100px;
    background: linear-gradient(90deg, #FFA500, #FFD700);
    margin: -5px auto 40px auto;
    border-radius: 5px;
    box-shadow: 0 0 10px #FFA500;
}

/* --- [BARU] Kartu Gaya FF --- */
.ff-card {
    background: rgba(40, 40, 40, 0.85); /* Abu gelap transparan */
    border: 3px solid #FFA500; /* Border Oranye */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
    color: #FFFACD; /* Teks Kuning Pucat */
}

/* --- Hero Section --- */
.hero-section { height: 100vh; display: flex; justify-content: center; align-items: center; text-align: center; position: relative; }
.hero-content { z-index: 2; }
.hero-content p { font-size: 1.2rem; color: #FFFACD; }
.celebrant-name { font-family: 'Bangers', cursive; font-size: 4.5rem; color: #FFFACD; -webkit-text-stroke: 2px #FFA500; text-shadow: 4px 4px 0 #333; margin-bottom: 20px; }
.guest-container { margin-bottom: 30px; }
.guest-container p { color: #FFFACD; }
#guest-name { font-family: 'Luckiest Guy', cursive; font-size: 2rem; color: #FFD700; }

/* Tombol Gaya FF */
.ff-button {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(180deg, #FFD700, #FFA500);
    color: #333;
    text-decoration: none;
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.3rem;
    box-shadow: 0 5px 0 #E08E0B, 0 8px 10px rgba(0,0,0,0.3);
    transition: all 0.1s ease-out;
    text-align: center;
}
.ff-button:hover { background: linear-gradient(180deg, #FFE082, #FFB74D); transform: translateY(-2px); box-shadow: 0 7px 0 #E08E0B, 0 10px 12px rgba(0,0,0,0.2); }
.ff-button:active { transform: translateY(2px); box-shadow: 0 3px 0 #E08E0B, 0 5px 8px rgba(0,0,0,0.4); }
.ff-button.small { padding: 8px 15px; font-size: 1rem; }

/* Animasi Parachute */
.parachute-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 1; }
.parachute { position: absolute; top: -150px; left: 50%; transform: translateX(-50%); width: 100px; animation: parachute-drop 10s ease-in-out infinite; }
@keyframes parachute-drop {
    0% { top: -150px; transform: translateX(-50%) rotate(0deg); }
    50% { top: 50%; transform: translateX(-40%) rotate(-10deg); } /* Goyang */
    100% { top: 110vh; transform: translateX(-60%) rotate(10deg); }
}

/* --- Profile Section --- */
.profile-card { max-width: 450px; margin: 0 auto; text-align: center; }
.profile-photo {
    width: 150px; height: 150px;
    border-radius: 50%;
    border: 4px solid #FFD700; /* Border Kuning */
    padding: 5px; /* Jarak antara border dan foto */
    background: #4A4A4A;
    overflow: hidden;
    margin: 0 auto 20px auto;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-name { font-family: 'Luckiest Guy', cursive; font-size: 2rem; color: #FFFACD; }
.profile-rank { font-size: 1.2rem; color: #FFA500; font-weight: bold; }
.profile-desc { font-size: 1.1rem; margin-top: 10px; }

/* --- Details Section --- */
#countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 40px;
    font-family: 'Bangers', cursive;
    color: #FFFACD;
    font-size: 3rem;
    text-shadow: 2px 2px 0 #333;
}
.timer-box { text-align: center; background: rgba(30, 144, 255, 0.7); padding: 10px 15px; border-radius: 5px; border: 2px solid #1E90FF; }
.timer-box span { display: block; }
.timer-box span:last-child { font-size: 1rem; font-family: 'Poppins', sans-serif; text-shadow: none; color: #eee; }
.timer-separator { font-size: 2rem; padding: 0 5px; }
.event-card { max-width: 600px; margin: 0 auto; text-align: center; }
.event-card h3 { font-family: 'Luckiest Guy', cursive; font-size: 1.8rem; margin-bottom: 20px; color: #FFFACD;}
.event-card p { margin-bottom: 10px; }
.button-group { margin-top: 20px; }
.button-group .ff-button { margin: 5px; }

/* --- RSVP Section --- */
.rsvp-intro { text-align: center; margin: -30px auto 40px auto; }
.rsvp-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group > label { font-family: 'Luckiest Guy', cursive; display: block; margin-bottom: 5px; font-size: 1.1rem; }
.form-group input[type="text"], .form-group textarea {
    width: 100%; padding: 10px; border: 2px solid #FFA500; border-radius: 5px;
    font-family: 'Poppins', sans-serif; font-size: 1rem; background: #333; color: #FFFACD;
}
.radio-group { display: flex; align-items: center; margin-bottom: 10px; }
.radio-group input[type="radio"] { margin-right: 10px; width: auto; }
.radio-group label { margin-bottom: 0; }

/* --- Guestbook Section (Hall of Fame) --- */
.guestbook-container { max-width: 700px; margin: 0 auto; max-height: 400px; overflow-y: auto; padding: 10px 20px; }
.guestbook-card { padding: 15px 0; border-bottom: 1px dashed #FFA500; }
.guestbook-card:last-child { border-bottom: none; }
.guestbook-card h3 { font-family: 'Luckiest Guy', cursive; font-size: 1.2rem; color: #FFD700; margin-bottom: 5px; }
.guestbook-card p { font-size: 0.9rem; font-style: italic; color: #eee; }

/* --- Footer --- */
.footer-section { background: #333; color: #FFA500; padding: 40px 0; text-align: center; border-bottom: none; }
.footer-section h2 { font-family: 'Bangers', cursive; color: #FFD700; }

/* --- Music Button --- */
.music-btn { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; z-index: 9999; }
.music-btn.is-playing { animation: spin 4s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* --- Responsive --- */
@media (max-width: 768px) {
    h1 { font-size: 4rem; }
    h2 { font-size: 2.2rem; }
    .celebrant-name { font-size: 3.5rem; }
    #countdown { font-size: 2rem; }
    .timer-box { padding: 8px 10px; }
}
@media (max-width: 480px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    .celebrant-name { font-size: 2.8rem; }
    #countdown { flex-wrap: wrap; } /* Timer bisa turun */
    .profile-card, .event-card, .rsvp-form { padding: 20px; }
    .ff-button { padding: 10px 20px; font-size: 1.1rem; }
    .ff-button.small { padding: 6px 12px; font-size: 0.9rem; }
    .music-btn { bottom: 20px; right: 20px; }
}
/* =================================================================
   [BARU] TAMBAHAN ANIMASI FREE FIRE
   ================================================================= */

/* --- Animasi Pesawat Terbang --- */
.airplane-container {
    position: fixed;
    top: 5%; /* Ketinggian terbang */
    left: -20%; /* Mulai dari luar layar kiri */
    width: 150px; /* Ukuran pesawat */
    z-index: 9990;
    pointer-events: none;
    animation: fly-across 20s linear infinite;
    animation-delay: 5s; /* Mulai setelah beberapa detik */
}
.airplane { width: 100%; }

@keyframes fly-across {
    0% { left: -20%; transform: rotate(-5deg); } /* Sedikit miring */
    100% { left: 120%; transform: rotate(5deg); } /* Terbang ke luar layar kanan */
}

/* --- Animasi Mobil Ngebut --- */
.car-container {
    position: fixed;
    bottom: 2%; /* Posisi di bawah */
    right: -25%; /* Mulai dari luar layar kanan */
    width: 120px; /* Ukuran mobil */
    z-index: 9991;
    pointer-events: none;
    animation: drive-across 15s linear infinite;
    animation-delay: 2s;
}
.car { width: 100%; transform: scaleX(-1); } /* Balik arah mobil jika perlu */

@keyframes drive-across {
    0% { right: -25%; }
    100% { right: 125%; } /* Ngebut ke luar layar kiri */
}

/* --- Animasi Senjata Jatuh --- */
.gun-fall-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9989;
}
.gun-fall {
    position: absolute;
    top: -15%; /* Mulai dari atas */
    width: 40px; /* Ukuran senjata */
    opacity: 0.8;
    animation: gun-fall 25s linear infinite;
}
/* Atur posisi & delay berbeda untuk setiap senjata */
.gun-fall:nth-child(1) { left: 25%; animation-delay: -5s; }
.gun-fall:nth-child(2) { left: 55%; animation-delay: -15s; width: 45px; } /* Senjata ke-2 beda ukuran/delay */
.gun-fall:nth-child(3) { left: 85%; animation-delay: -10s; }

@keyframes gun-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.8; }
    100% { transform: translateY(115vh) rotate(1080deg); opacity: 0; } /* Jatuh sambil berputar cepat */
}

/* --- Styling Papan Seluncur di Profil --- */
.profile-surfboard {
    position: absolute;
    width: 80px; /* Ukuran papan */
    top: 20px;
    right: -30px; /* Sedikit keluar dari kartu */
    transform: rotate(15deg); /* Miring */
    z-index: 1;
}