/* IMPORT FONT VT323 */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

body {
    font-family: 'VT323', monospace;
    background: transparent; /* Latar belakang akan diatur oleh canvas */
    color: #facc15; /* Tailwind yellow-400 */
    overflow-x: hidden; /* Mencegah scroll horizontal yang tidak diinginkan */
}

/* Custom scrollbar for sidebar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-thumb {
    background: #fbbf24; /* yellow-400 */
    border-radius: 4px;
}

/* Header sticky */
header {
    backdrop-filter: blur(10px);
    background: rgba(0,0,0,0.6);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 10px rgba(255, 196, 0, 0.3);
}

/* Navigation links */
nav a {
    transition: color 0.3s ease;
}
nav a:hover {
    color: #fbbf24;
}

/* Hero animations */
.hero-cta {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-cta:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px #fbbf24;
}

/* Cards */
.card {
    background: rgba(0, 0, 0, 0.7); /* Tailwind slate-800 with opacity */
    border: 1px solid #fbbf24;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px #fbbf24;
}

/* Timeline */
.timeline-line {
    position: relative;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #fbbf24 0%, #fbbf24 20%, transparent 20%, transparent 40%, #fbbf24 40%, #fbbf24 60%, transparent 60%, transparent 80%, #fbbf24 80%, #fbbf24 100%);
    background-size: 40px 6px;
    margin: 1.5rem 0 3rem 0;
    border-radius: 3px;
}
#timeline {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
}
.timeline-item {
    position: relative;
    width: 50%;
    padding: 1rem 2rem;
    box-sizing: border-box;
}
.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}
.timeline-item.left {
    left: 0;
    text-align: right;
}
.timeline-item.right {
    left: 50%;
    text-align: left;
}
.timeline-dot {
    position: absolute;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    background: #fbbf24;
    border-radius: 50%;
    box-shadow: 0 0 10px #fbbf24;
}
.timeline-item.left .timeline-dot {
    right: -8px;
}
.timeline-item.right .timeline-dot {
    left: -8px;
}

/* FAQ */
.faq-question {
    cursor: pointer;
    position: relative;
    padding-right: 2rem;
}
.faq-question::after {
    content: '\f107'; /* FontAwesome chevron-down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}
.faq-question.active::after {
    transform: translateY(-50%) rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    color: #d1d5db; /* Tailwind gray-300 */
    margin-top: 0.5rem;
}
.faq-answer.open {
    max-height: 500px; /* large enough */
}

/* Footer */
footer a {
    transition: color 0.3s ease;
}
footer a:hover {
    color: #fbbf24;
}

/* Documentation section image border and spacing improvements */
#dokumentasi img {
    border: 2px solid #fbbf24;
    border-radius: 0.75rem; /* match rounded-lg */
    padding: 0.25rem;
    transition: box-shadow 0.3s ease;
    width: 100%;
    height: 200px;
    object-fit: cover;
}
#dokumentasi img:hover {
    box-shadow: 0 0 15px #fbbf24;
}

/* Increase spacing between main sections for professional look */
main > section {
    margin-bottom: 8rem; /* increased bottom margin for looser spacing */
}
main > section:last-child {
    margin-bottom: 0;
}

/* Increase futuristic logo size */
.futuristic-logo {
    width: 25rem; /* increased from 12rem */
    filter: drop-shadow(0 0 10px #fbbf24) drop-shadow(0 0 20px #fbbf24);
    animation: neonPulse 3s ease-in-out infinite;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.futuristic-logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px #fbbf24) drop-shadow(0 0 30px #fbbf24);
}

section {
    padding: 2rem; /* increased padding for more space */
}

/* --- START: Sidebar and Menu Button Styling (GLOBAL) --- */
/* Ini akan menggantikan definisi sidebar di bagian bawah file Anda sebelumnya */

/* Styling untuk tombol menu (hamburger) */
.menu-btn {
    position: fixed;
    top: 1rem; /* top-4 */
    left: 1rem; /* left-4 */
    z-index: 10000; /* Nilai sangat tinggi agar selalu di atas */
    cursor: pointer;
    color: #FFFF00; /* text-yellow-400 */
    font-size: 2.25rem; /* text-3xl */
    user-select: none; /* select-none */
    text-shadow: 0 0 5px rgba(255, 255, 0, 0.7); /* Efek glow kuning */
}

/* Styling untuk Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%; /* h-full */
    width: 16rem; /* w-64 */
    background-color: rgba(0, 0, 0, 0.8); /* bg-black bg-opacity-80 */
    backdrop-filter: blur(8px); /* backdrop-blur-md */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
    transform: translateX(-100%); /* transform -translate-x-full (sembunyikan) */
    transition: transform 0.3s ease-in-out; /* transition-transform duration-300 */
    z-index: 1000; /* z-40 */
    overflow-y: auto;
    padding-top: 4rem; /* Ruang untuk tombol tutup */
    display: flex;
    flex-direction: column;
}

/* Styling saat sidebar terbuka */
.sidebar.open {
    transform: translateX(0); /* Geser ke dalam tampilan */
}
.sidebar.active {
    left: 0;
}
/* Styling untuk tombol tutup sidebar */
.close-btn {
    position: absolute;
    top: 1rem; /* top-4 */
    right: 1rem; /* p-4 (kanan) */
    display: block; /* block */
    text-align: right; /* text-right */
    color: #FFFF00; /* text-yellow-400 */
    font-size: 2.25rem; /* text-3xl */
    cursor: pointer;
    user-select: none; /* select-none */
    text-decoration: none; /* Hapus underline default link */
}

/* Styling untuk tautan navigasi di dalam sidebar */
.sidebar nav {
    display: flex; /* flex */
    flex-direction: column; /* flex-col */
    gap: 1rem; /* space-y-4 */
    padding: 1.5rem; /* p-6 */
    color: #FFFF00; /* text-yellow-400 */
    font-weight: 600; /* font-semibold */
    font-size: 1.125rem; /* text-lg */
}

.sidebar nav a {
    padding: 0.5rem 0; /* Padding vertikal untuk setiap link */
    transition: color 0.2s ease-in-out; /* Transisi warna saat hover */
}

.sidebar nav a:hover {
    color: #FACC15; /* hover:text-yellow-300 */
}

/* --- END: Sidebar and Menu Button Styling (GLOBAL) --- */

/* Penting: Mencegah kanvas latar belakang menangkap event klik */
#matrixCanvas, #glitchCanvas {
    pointer-events: none; /* Mencegah kanvas menangkap event mouse */
}
/* REGISTRATION FORM */
.form-container {
    background: rgba(0, 0, 0, 0.7); /* Dark transparent background */
    padding: 25px;
    border-radius: 15px;
    width: 80%;
    max-width: 400px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); /* Neon glow effect */
    text-align: center;
}

.form-title {
    font-family: 'VT323', monospace;
    font-size: clamp(30px, 6vw, 50px);
    font-weight: 700;
    color: #FFD700; /* Neon Yellow */
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 0px 0px 20px rgba(255, 215, 0, 1); /* Glow effect */
}

.form-subtitle {
    font-family: 'VT323', monospace;
    font-size: 16px;
    color: #bbb;
    margin-bottom: 8px;
}

/* FORM INPUTS */
input {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: none;
    border-radius: 10px;
    background-color: #222;
    color: black;
    font-family: 'VT323', monospace;
    font-size: 16px;
}

input::placeholder {
    color: black;
}

/* BUTTON */
button {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: none;
    border-radius: 10px;
    background-color: #FFD700;
    color: black;
    font-size: 18px;
    cursor: pointer;
}

button:hover {
    background-color: #ffcc00;
}

/* LOGIN REDIRECT */
.login-redirect {
    margin-top: 3px;
    color: #bbb;
}

.login-redirect a {
    color: #FFD700;
    text-decoration: none;
}

.login-redirect a:hover {
    text-decoration: underline;
}

