/* --- 1. VARIABLES & RESET --- */
:root {
    --neon-yellow: #FFFF00;
    --neon-pink: #FF00FF;
    --neon-green: #00FF00;
    --neon-cyan: #00FFFF;
    --void-black: #000000;
    --white: #ffffff;
}

* { box-sizing: border-box; cursor: crosshair; }

body {
    margin: 0; padding: 0;
    background-color: var(--neon-yellow);
    font-family: 'Rubik Glitch', cursive;
    color: var(--void-black);
    overflow-x: hidden;
}

/* --- 2. BACKGROUND SPAM --- */
.bg-spam {
    position: fixed; top: 0; left: 0; width: 200%; height: 200%;
    background-image: url('LMAO.jpg'); 
    background-size: 100px;
    opacity: 0.15;
    z-index: -5;
    animation: panBackground 8s linear infinite;
    filter: contrast(150%) hue-rotate(45deg);
}
@keyframes panBackground {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-100px, -100px) rotate(10deg); }
}

/* --- 3. CUSTOM ALERT --- */
#custom-alert {
    position: fixed; top: -100px; left: 50%; transform: translateX(-50%);
    background: var(--neon-green); border: 5px solid var(--void-black);
    padding: 20px 40px; box-shadow: 10px 10px 0px var(--void-black);
    z-index: 1000000; transition: top 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center; pointer-events: none;
}
#custom-alert.show { top: 30px; }
.alert-text { font-family: 'Press Start 2P', cursive; font-size: 1rem; color: var(--void-black); margin: 0; }

/* --- 4. INTRO SCREEN --- */
#intro-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--void-black); z-index: 99999; display: flex;
    flex-direction: column; justify-content: center; align-items: center;
    color: var(--neon-green); font-family: 'Press Start 2P', cursive; text-align: center;
}
.glitch-btn {
    margin-top: 30px; padding: 20px 40px; font-size: 2rem;
    background: var(--neon-pink); color: var(--neon-yellow);
    border: 5px solid var(--white); cursor: pointer;
    font-family: 'Rubik Glitch'; animation: shake 0.2s infinite;
    text-shadow: 2px 2px 0px black; box-shadow: 5px 5px 0px var(--neon-cyan);
}
.glitch-btn:hover { background: var(--white); color: black; transform: scale(1.1); }

/* --- 5. MAIN CONTAINER & VISIBILITY UPDATES --- */
.main-container {
    max-width: 900px; margin: 0 auto;
    padding: 50px 20px; 
    text-align: center; position: relative; z-index: 10;
}

/* JUDUL UTAMA: KOTAK PUTIH SOLID (VISIBILITAS MAKSIMAL) */
.title-box-wrapper {
    display: inline-block;
    background: var(--white); /* Background Putih */
    border: 6px solid var(--void-black); /* Border Hitam Tebal */
    padding: 15px 50px;
    transform: skew(-5deg) rotate(-2deg);
    box-shadow: 15px 15px 0px var(--neon-pink); /* Shadow Pink Besar */
    margin-bottom: 20px;
    /* Animasi mengambang dihapus agar lebih fokus dan jelas */
}

.glitch-title {
    font-size: 9rem; 
    color: var(--void-black); /* Teks Hitam */
    margin: 0; line-height: 0.9;
    /* Hapus semua efek teks agar bersih dan jelas */
    text-shadow: none;
    -webkit-text-stroke: 0px;
}

/* SUBTITLE: KOTAK CYAN NEON */
.subtitle {
    background: var(--neon-cyan); color: var(--void-black);
    padding: 10px 25px; font-size: 2rem; transform: rotate(2deg);
    display: inline-block; margin-top: 15px; border: 4px solid var(--void-black);
    font-family: 'Bangers', cursive; box-shadow: 8px 8px 0px var(--void-black);
    font-weight: bold;
}

/* --- GAMBAR UTAMA --- */
.hero-wrapper {
    position: relative; width: 320px; height: 320px; margin: 60px auto;
    cursor: pointer;
}

#hero-image {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: 50%; 
    border: 8px solid var(--void-black);
    box-shadow: 0px 0px 0px 5px var(--white), 15px 15px 0px var(--neon-pink);
    background: white;
    transition: transform 0.1s;
}

#hero-image:hover { transform: scale(1.05); }

/* CLASS ANIMASI BARU: GLITCH TELEPORT (CANDU & CEPAT) */
.glitch-active {
    /* Animasi sangat cepat (0.4 detik) agar terasa eksplosif */
    animation: glitchTeleportAnim 0.4s steps(5) !important;
}

/* --- CONTENT & FOOTER --- */
.wall-section, .lore-section { margin-top: 120px; }

/* SECTION HEADER BOX (KOTAK HITAM) */
.section-header-box {
    background: var(--void-black); color: var(--neon-yellow);
    display: inline-block; padding: 10px 30px;
    border: 4px solid var(--neon-pink); transform: rotate(1deg);
    box-shadow: 8px 8px 0px var(--white); margin-bottom: 30px;
}
.wall-title {
    font-size: 3rem; margin: 0; font-family: 'Rubik Glitch';
    text-shadow: none; -webkit-text-stroke: 0;
}

/* Grid & Cards */
.chaos-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-top: 10px; }
.chaos-card {
    background: var(--white); border: 5px solid var(--void-black);
    width: 250px; padding: 10px; box-shadow: 8px 8px 0px var(--neon-green);
    transition: 0.1s; position: relative;
}
.chaos-card:hover { transform: scale(1.1) rotate(0deg) !important; z-index: 100; box-shadow: 15px 15px 0px var(--neon-pink);}
.chaos-card img { width: 100%; border: 2px solid black; display: block;}
.card-caption { font-family: 'Bangers'; font-size: 1.5rem; margin-top: 5px; background: var(--neon-yellow); display: inline-block; padding: 2px 5px; border: 2px solid black; }

/* Lore Cards */
.lore-container { display: flex; flex-direction: column; gap: 20px; align-items: center; margin-top: 10px; }
.lore-card {
    background: var(--void-black); color: var(--neon-green);
    border: 4px solid var(--neon-pink); padding: 20px;
    width: 90%; max-width: 600px; text-align: left;
    font-family: 'Press Start 2P', monospace; font-size: 0.8rem;
    box-shadow: 8px 8px 0px var(--neon-cyan); transform: rotate(-1deg);
}

/* Footer */
.main-footer { margin-top: 100px; padding-bottom: 50px; border-top: 5px dashed black; padding-top: 50px; background: rgba(0,0,0,0.1); text-align: center;}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 20px; }
.footer-btn {
    padding: 15px 25px; font-family: 'Bangers'; font-size: 1.5rem;
    text-decoration: none; color: black; border: 4px solid black;
    box-shadow: 6px 6px 0px black; text-transform: uppercase;
}
.footer-btn:hover { transform: scale(1.1); box-shadow: 10px 10px 0px var(--neon-pink); }
.x-btn { background: var(--white); } .dex-btn { background: var(--neon-cyan); } .pump-btn { background: var(--neon-green); }

/* --- FLOATING SPAM --- */
#spam-layer {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; 
    z-index: 99; /* UBAH JADI 99 AGAR MUNCUL DI DEPAN KONTEN */
    overflow: hidden;
}

.spam-item {
    position: absolute; font-size: 3rem;
    animation: flyUpRandom 4s linear forwards;
    filter: drop-shadow(3px 3px 0px black);
}

/* --- ANIMATIONS --- */
@keyframes shake { 0% { transform: translate(1px, 1px); } 100% { transform: translate(-1px, -1px); } }
@keyframes flyUpRandom { 0% { transform: translateY(110vh) rotate(0deg) scale(0.5); opacity: 1; } 100% { transform: translateY(-10vh) rotate(720deg) scale(1.5); opacity: 0; } }

/* ANIMASI BARU: GLITCH TELEPORT (Patah-patah, berubah warna, bergeser cepat) */
@keyframes glitchTeleportAnim {
    0% { transform: translate(0) scale(1) skew(0deg); filter: none; }
    25% { transform: translate(-15px, 10px) scale(1.2) skew(5deg); filter: invert(1) hue-rotate(90deg); }
    50% { transform: translate(15px, -10px) scale(0.9) skew(-5deg); filter: contrast(200%); }
    75% { transform: translate(-10px, -5px) scale(1.1) skew(2deg); filter: sepia(1) hue-rotate(180deg); }
    100% { transform: translate(0) scale(1) skew(0deg); filter: none; }
}

/* Responsive */
@media (max-width: 768px) {
    .glitch-title { font-size: 5rem; }
    .hero-wrapper { width: 250px; height: 250px; }
    .title-box-wrapper { padding: 10px 20px; }
}

/* --- TEAM SECTION STYLES (HORIZONTAL SCROLL MODE) --- */
.team-section { margin-top: 120px; position: relative; }

/* Container Grid Horizontal */
.team-grid {
    display: flex;
    flex-wrap: nowrap;       /* KUNCI: Mencegah kartu turun ke bawah */
    overflow-x: auto;        /* Mengaktifkan scroll samping */
    gap: 40px;               /* Jarak antar kartu */
    padding: 40px 20px;      /* Padding besar biar efek hover/rotate tidak kepotong */
    justify-content: flex-start;
    align-items: center;     /* Ratakan tengah vertikal */
    
    /* Agar scroll halus di HP */
    -webkit-overflow-scrolling: touch; 
    
    /* Background tipis biar area scroll terlihat jelas (Opsional) */
    background: rgba(0,0,0,0.05);
    border-top: 4px solid var(--void-black);
    border-bottom: 4px solid var(--void-black);
}

/* Custom Scrollbar Keren (Neon Style) */
.team-grid::-webkit-scrollbar {
    height: 15px; /* Tinggi scrollbar */
    background: var(--void-black);
}

.team-grid::-webkit-scrollbar-thumb {
    background: var(--neon-pink); /* Warna pegangan scroll */
    border: 2px solid var(--white); /* Border putih biar kontras */
    border-radius: 0;
}

.team-grid::-webkit-scrollbar-track {
    background: var(--void-black);
    border-top: 2px solid var(--neon-green);
}

/* Kartu Tim */
.team-card {
    flex: 0 0 auto;          /* PENTING: Agar kartu tidak gepeng/mengecil */
    width: 280px;            /* Lebar tetap */
    background: var(--white);
    border: 6px solid var(--void-black);
    text-align: center;
    box-shadow: 10px 10px 0px var(--neon-cyan); /* Shadow Cyan */
    transition: 0.2s;
    position: relative;
    overflow: hidden;
    /* Margin kanan extra agar kartu terakhir tidak mepet */
    margin-right: 10px;
}

.team-card:hover {
    transform: scale(1.05) rotate(0deg) !important;
    box-shadow: 15px 15px 0px var(--neon-green); /* Shadow berubah jadi hijau saat hover */
    z-index: 50;
    border-color: var(--neon-pink);
}

/* (Sisa CSS di bawah ini tetap sama seperti sebelumnya) */
.img-box {
    width: 100%;
    height: 200px;
    border-bottom: 6px solid var(--void-black);
    background: var(--neon-yellow);
    overflow: hidden;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(120%);
    transition: 0.2s;
}

.team-card:hover .img-box img {
    filter: grayscale(0%) contrast(100%) saturate(150%);
    transform: scale(1.1);
}

.card-info {
    padding: 15px;
    background: var(--void-black);
    color: var(--white);
}

.card-info h3 {
    margin: 0;
    font-family: 'Rubik Glitch', cursive;
    font-size: 1.8rem;
    color: var(--neon-cyan);
    text-shadow: 2px 2px 0px var(--neon-pink);
}

.role {
    display: inline-block;
    background: var(--neon-pink);
    color: var(--neon-yellow);
    padding: 5px 10px;
    font-family: 'Bangers', cursive;
    font-size: 1.2rem;
    border: 3px solid var(--white);
    transform: rotate(-2deg);
    margin: 10px 0;
}

.quote {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    line-height: 1.5;
    color: var(--neon-green);
    margin-top: 10px;
    border-top: 2px dashed var(--white);
    padding-top: 10px;
}

/* --- UPDATE: SECTION TITLE (HIGH VISIBILITY) --- */
.wall-section, .team-section, .lore-section { 
    margin-top: 100px; 
}

/* Kotak Judul Solid */
.header-block {
    display: inline-block;
    background: var(--void-black);      /* Background Hitam */
    border: 5px solid var(--neon-pink); /* Border Pink Tebal */
    padding: 15px 40px;
    box-shadow: 10px 10px 0px var(--neon-green); /* Shadow Hijau */
    transform: rotate(-1deg);
    margin-bottom: 30px;
    transition: transform 0.2s;
}

.header-block:hover {
    transform: scale(1.05) rotate(1deg);
}

.wall-title {
    font-size: 3.5rem; 
    color: var(--white); /* Teks Putih */
    margin: 0; 
    font-family: 'Rubik Glitch', cursive;
    text-shadow: 4px 4px 0px var(--neon-cyan); /* Shadow Teks Biru */
    -webkit-text-stroke: 0px; /* Hapus stroke biar tebal */
    letter-spacing: 2px;
}

/* --- TAMBAHAN BARU: HYPER SPIN ANIMATION --- */
@keyframes hyperSpin {
    0% { transform: scale(1) rotate(0deg); filter: none; }
    25% { transform: scale(1.3) rotate(15deg); filter: invert(1); }
    50% { transform: scale(0.8) rotate(-15deg); filter: hue-rotate(90deg); }
    75% { transform: scale(1.2) rotate(360deg); filter: contrast(200%); }
    100% { transform: scale(1) rotate(0deg); filter: none; }
}

/* Class untuk memicu animasi */
.super-active {
    animation: hyperSpin 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) !important;
}

/* --- 4. INTRO SCREEN (AUTO ANIMATION) --- */
#intro-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--void-black); z-index: 99999; display: flex;
    flex-direction: column; justify-content: center; align-items: center;
    color: var(--neon-green); font-family: 'Press Start 2P', cursive; text-align: center;
    transition: opacity 1s ease-out; /* Efek menghilang perlahan */
}

/* Teks Berkedip Cepat */
.blink-warning {
    color: var(--neon-yellow);
    font-size: 2rem;
    margin-bottom: 20px;
    animation: warningBlink 0.1s infinite;
    text-shadow: 4px 4px 0px red;
}

.loading-text {
    font-size: 0.8rem;
    margin-bottom: 20px;
    color: var(--neon-cyan);
    animation: glitchText 0.3s infinite;
}

/* Loading Bar Retro */
.loading-bar {
    width: 300px;
    height: 30px;
    border: 4px solid var(--neon-pink);
    padding: 3px;
    box-shadow: 5px 5px 0px var(--neon-green);
}

.bar-fill {
    height: 100%;
    background: var(--neon-yellow);
    width: 0%;
    animation: fillBar 3s linear forwards; /* Animasi loading 3 detik */
}

/* Animasi Keyframes */
@keyframes warningBlink {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fillBar {
    0% { width: 0%; }
    20% { width: 10%; } /* Jeda sebentar biar realistis */
    50% { width: 60%; }
    100% { width: 100%; }
}

/* --- NEW: CHAOS BUBBLES --- */
.chaos-bubble {
    position: fixed;
    font-family: 'Rubik Glitch', cursive;
    font-weight: bold;
    color: var(--void-black);
    background: var(--neon-yellow);
    border: 3px solid var(--neon-pink);
    padding: 5px 15px;
    border-radius: 50%; /* Bentuk bulat/gelembung */
    pointer-events: none; /* Biar bisa ditembus klik */
    z-index: 200; /* Di atas segalanya */
    box-shadow: 5px 5px 0px var(--neon-cyan);
    white-space: nowrap;
    
    /* Animasi: Gabungan muncul, terbang acak, dan menghilang */
    animation: bubbleFly 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes bubbleFly {
    0% {
        opacity: 0;
        transform: scale(0.1) translate(0, 0) rotate(0deg);
    }
    20% {
        opacity: 1;
        transform: scale(1.2) translate(0, 0) rotate(10deg);
    }
    100% {
        opacity: 0;
        /* Terbang ke koordinat acak yang ditentukan JS */
        transform: scale(0.5) translate(var(--tx), var(--ty)) rotate(720deg); 
    }
}

/* --- NEW: MOUSE TRAIL (JEJAK MOUSE) --- */
.mouse-trail {
    position: fixed;
    pointer-events: none; /* Biar gak ganggu klik */
    font-size: 1.5rem;
    z-index: 9999; /* Paling atas */
    animation: trailAnim 0.6s linear forwards;
    text-shadow: 2px 2px 0px black;
}

@keyframes trailAnim {
    0% { transform: scale(1) rotate(0deg); opacity: 1; }
    100% { transform: scale(0.2) rotate(180deg); opacity: 0; top: -50px; } /* Terbang ke atas dikit saat hilang */
}

/* --- NEW: BACKGROUND RAIN (HUJAN EMOJI) --- */
.rain-item {
    position: fixed;
    top: -10vh; /* Mulai dari atas layar */
    z-index: -1; /* Di belakang konten (background) */
    font-family: 'Rubik Glitch', cursive;
    color: rgba(255, 255, 255, 0.3); /* Transparan dikit biar gak nutupin teks */
    pointer-events: none;
    animation: fallDown linear forwards;
    filter: blur(1px); /* Efek blur biar kayak depth of field */
}

@keyframes fallDown {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(120vh) rotate(360deg); }
}