/* Pengaturan dasar dan latar belakang */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #0f172a; /* Latar belakang biru gelap */
    font-family: 'Segoe UI', 'Inter', Arial, sans-serif;
    overflow: hidden; /* Mencegah scrollbar */
    color: #e2e8f0;
}

/* Penampung utama untuk efek 3D dan konten */
.scene {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
    z-index: 2; /* Pastikan konten di atas partikel */
    text-align: center;
    perspective: 1000px; /* Jarak pandang untuk efek 3D */
    padding: 0 20px; /* Padding untuk layar kecil */
}

/* Latar belakang partikel */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Judul dan Subjudul */
.title-container {
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out;
}

.title-container h1 {
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #3b82f6, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-container p {
    font-size: 1.2rem;
    margin: 5px 0 0;
    color: #94a3b8;
}

/* Pembungkus kubus untuk interaksi mouse */
.cube-wrapper {
    width: 100px;
    height: 100px;
    margin-bottom: 30px;
}

/* Kubus 3D */
.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-25deg) rotateY(30deg);
    transition: transform 0.5s ease-out;
}

.face {
    position: absolute;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Ubah background untuk memastikan logo terlihat bagus */
    background-color: rgba(29, 41, 59, 0.8); 
    border: 1px solid #3b82f6;
    backdrop-filter: blur(5px);
    overflow: hidden; /* Pastikan logo tidak keluar dari sisi */
}

/* Styling untuk gambar di dalam sisi kubus */
.face img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Membuat gambar menutupi seluruh area tanpa distorsi */
}


.face.front  { transform: translateZ(50px); }
.face.back   { transform: rotateY(180deg) translateZ(50px); }
.face.right  { transform: rotateY(90deg) translateZ(50px); }
.face.left   { transform: rotateY(-90deg) translateZ(50px); }
.face.top    { transform: rotateX(90deg) translateZ(50px); }
.face.bottom { transform: rotateX(-90deg) translateZ(50px); }

/* Kontainer Deskripsi dan Fitur */
.description-container {
    max-width: 600px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.description-container h2 { color: #e2e8f0; font-size: 1.8rem; margin-bottom: 10px; }
.description-container p { color: #94a3b8; line-height: 1.6; }

.features-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 800px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.feature { background: rgba(29, 41, 59, 0.4); padding: 20px; border-radius: 10px; border: 1px solid #3b82f630; flex: 1; }
.feature h3 { margin: 0 0 10px; color: #e2e8f0; }
.feature p { margin: 0; color: #94a3b8; }

/* Tombol Masuk */
#enter-button {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    color: #f0f0f0;
    background: #3b82f6;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

#enter-button:hover { background: #2563eb; transform: scale(1.05) translateY(-2px); box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6); }
#enter-button:active { transform: scale(0.98); }

/* Animasi untuk elemen masuk */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Penyesuaian untuk layar kecil */
@media (max-width: 768px) {
    .features-container { flex-direction: column; }
    .title-container h1 { font-size: 3rem; }
}

/* --- Tombol Sakelar Tema dengan Ikon --- */
#theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    border: 1px solid #475569;
    background-color: #1e293b;
    color: #e2e8f0;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

#theme-toggle:hover {
    background-color: #334155;
}

#theme-toggle:active {
    transform: scale(0.9);
}

/* === GAYA UNTUK LIGHT MODE === */
body.light-mode { background-color: #f1f5f9; color: #0f172a; }
body.light-mode #theme-toggle { background-color: #e2e8f0; color: #1e293b; border: 1px solid #cbd5e1; }
body.light-mode #theme-toggle:hover { background-color: #cbd5e1; }
body.light-mode .title-container p { color: #475569; }
body.light-mode .face { background-color: rgba(226, 232, 240, 0.8); border: 1px solid #94a3b8; }
body.light-mode .description-container h2 { color: #1e293b; }
body.light-mode .description-container p { color: #475569; }
body.light-mode .feature { background: rgba(226, 232, 240, 0.6); border: 1px solid #cbd5e1; }
body.light-mode .feature h3 { color: #1e293b; }
body.light-mode .feature p { color: #475569; }

/* Efek Glow saat hover pada Fitur */
.feature:hover {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.8), 0 0 30px rgba(59, 130, 246, 0.5);
    transform: translateY(-5px); /* Sedikit naik ke atas */
    transition: all 0.3s ease; /* Transisi halus untuk semua properti */
    border-color: #818cf8; /* Perubahan warna border */
}

/* Efek Glow untuk Light Mode */
body.light-mode .feature:hover {
    box-shadow: 0 0 15px rgba(131, 145, 170, 0.6), 0 0 30px rgba(131, 145, 170, 0.3);
    border-color: #94a3b8;
}