/* === STYLE GLOBAL === */
body {
    background-color: black;
    color: white;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

/* === KANVAS PARTIKEL === */
canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

/* === SIDEBAR MENU === */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.95);
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1002;
}

#sidebar.active {
    transform: translateX(0);
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
}

/* === HEADER === */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: rgb(20, 20, 20);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
}

#toggleSidebar, #toggleTheme {
    padding: 10px;
    background-color: rgb(63, 63, 63);
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

#toggleSidebar:hover, #toggleTheme:hover {
    transform: scale(1.1);
}

/* === KONTEN UTAMA === */
main {
    text-align: center;
    margin-top: 100px;
    position: relative;
    z-index: 10;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* === GAMBAR PROFIL === */
img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* === ANIMASI MARQUEE MENU === */
.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    margin-bottom: 20px;
}

.marquee-content {
    display: flex;
    gap: 2rem;
    animation: marquee 10s linear infinite;
}

.marquee-content a {
    color: rgb(0, 236, 185);
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s ease-in-out;
}

.marquee-content a:hover {
    transform: scale(1.1);
}

@keyframes marquee {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

/* === ANIMASI CURSOR UNTUK TYPING === */
.typing::after {
    content: "|";
    display: inline-block;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    #sidebar {
        width: 200px;
    }

    img {
        width: 100px;
        height: 100px;
    }
}
