html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.section-hero {
    min-height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.glass-card-yellow {
    background: rgba(18, 24, 38, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 230, 0, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.05);
}




.glass-card-grey {
    background: rgba(18, 24, 38, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.glass-header {
    background: rgba(11, 15, 23, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 230, 0, 0.3);
}

.crt::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 230, 0, 0.01), rgba(0, 255, 0, 0.01), rgba(0, 243, 255, 0.01));
    z-index: 30;
    background-size: 100% 3px, 6px 100%;
    pointer-events: none !important;
}

.nav-title {
    justify-content: end;
}

.text-glow-cyan {
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.8), 0 0 15px rgba(0, 243, 255, 0.4);
}

.text-glow-yellow {
    text-shadow: 0 0 8px rgba(255, 230, 0, 0.8), 0 0 15px rgba(255, 230, 0, 0.4);
}

.shutter-panel {
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.sidebar-closed .shutter-left {
    transform: translateX(-100%);
}

.arcade-grid {
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(255, 230, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 230, 0, 0.03) 1px, transparent 1px);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #080c14;
}

::-webkit-scrollbar-thumb {
    background: #ffe600;
    border-radius: 4px;
}

.arcade-btn {
    position: relative;
    transition: all 0.1s ease;
    box-shadow: 0 4px 0 #b3a200;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.arcade-btn:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #b3a200;
}

/* ANIMASI SMOOTH BUKA-TUTUP ABOUT ME (MENCEGAH BACKGROUND TARIK/REFLOW ANCUR) */
.about-desc-collapsed {
    max-height: 95px; /* Kira-kira tinggi 4 baris teks */
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.about-desc-expanded {
    max-height: 500px; /* Cukup besar untuk menampung seluruh paragraf panjang */
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

#aboutMeText {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

#aboutMeText:hover {
    opacity: 0.85;
}

#minigame {
    position: relative;
    padding-bottom: 7em;
}

.cursor-blink {
    animation: blink 1s infinite;
}

.quest_div {
    transition: all 0.3s ease;
    border: rgba(255, 255, 255, 0.1) solid 1px;
}

.quest_div:hover {
    border: #39ff14 solid 1px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.about-desc-wrapper {
    max-height: 400px;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.about-desc-expanded {
    max-height: 600px;
}

.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    pointer-events: none;
}

.wave-container svg {
    display: block;
    width: 100%;
    height: 90px;
    filter: drop-shadow(0px 10px 25px rgba(0, 0, 0, 1));
}

.footer {
    display: flex;
    justify-content: center;
    gap: 5%;
}

.f-item {
    display: block;
    position: relative;
    border-radius: 12px;
    transition: all 0.1s ease;
    background-color: #ffe600;
    box-shadow: 0 4px 0 #b3a200;
    cursor: pointer !important;
    pointer-events: auto !important;
    color: #000;
    width: 150px;
}

.f-item:hover {
    background-color: #e6cf00;
}

.f-item:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #b3a200;
}

.f-item i {
    font-size: 2em;
    padding-bottom: 0.2em;
}

@media (width <= 40rem) {
    .f-item {
        width: 50px;
    }

    .canvas-css {
        height: 1000px;
    }

}
