@import url('https://fonts.googleapis.com/css2?family=Bitcount+Prop+Single:wght@100..900&family=SN+Pro:ital,wght@0,200..900;1,200..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SN Pro', sans-serif;
    text-decoration: none;
}

html::-webkit-scrollbar {
    display: none;
}

html {
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body {
    width: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #000;
}

/* Menutupi seluruh layar */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
    /* Efek memudar saat selesai */
}

/* Wadah pembungkus progress bar */
.progress-wrapper {
    width: 80%;
    max-width: 400px;
    /* Lebar maksimal progress bar di tengah layar */
    height: 12px;
    /* Lebih tebal agar terlihat jelas di tengah */
    background-color: #e0e0e0;
    /* Warna bar saat kosong */
    border-radius: 10px;
    overflow: hidden;
}

/* Progress bar dengan 3 warna gradien */
#loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #00c6ff, #8e44ad, #ff007f);
    box-shadow: 0 0 15px rgba(142, 68, 173, 0.4);
    transition: width 0.3s ease;
    border-radius: 10px;
}

/* Teks tambahan opsional */
.loading-text {
    margin-top: 15px;
    font-family: sans-serif;
    color: #333;
    font-size: 14px;
}

.background {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

.background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


header {
    position: fixed;
    top: 15px;
    width: 98%;
    border-radius: 20px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
}

header::before {
    border-radius: 20px;
}

header .left a {
    font-size: 23px;
    font-weight: 700;
}

.text-animation {
    animation: lights 5s 750ms linear infinite;
    color: hsl(230, 40%, 80%);
    text-shadow:
        0 0 1em hsla(320, 100%, 50%, 0.2),
        0 0 0.125em hsla(320, 100%, 60%, 0.3),
        -1em -0.125em 0.5em hsla(40, 100%, 60%, 0),
        1em 0.125em 0.5em hsla(200, 100%, 60%, 0);
}

@keyframes lights {
    0% {
        color: hsl(230, 40%, 80%);
        text-shadow:
            0 0 1em hsla(320, 100%, 50%, 0.2),
            0 0 0.125em hsla(320, 100%, 60%, 0.3),
            -1em -0.125em 0.5em hsla(40, 100%, 60%, 0),
            1em 0.125em 0.5em hsla(200, 100%, 60%, 0);
    }

    30% {
        color: hsl(230, 80%, 90%);
        text-shadow:
            0 0 1em hsla(320, 100%, 50%, 0.5),
            0 0 0.125em hsla(320, 100%, 60%, 0.5),
            -0.5em -0.125em 0.25em hsla(40, 100%, 60%, 0.2),
            0.5em 0.125em 0.25em hsla(200, 100%, 60%, 0.4);
    }

    40% {
        color: hsl(230, 100%, 95%);
        text-shadow:
            0 0 1em hsla(320, 100%, 50%, 0.5),
            0 0 0.125em hsla(320, 100%, 90%, 0.5),
            -0.25em -0.125em 0.125em hsla(40, 100%, 60%, 0.2),
            0.25em 0.125em 0.125em hsla(200, 100%, 60%, 0.4);
    }

    70% {
        color: hsl(230, 80%, 90%);
        text-shadow:
            0 0 1em hsla(320, 100%, 50%, 0.5),
            0 0 0.125em hsla(320, 100%, 60%, 0.5),
            0.5em -0.125em 0.25em hsla(40, 100%, 60%, 0.2),
            -0.5em 0.125em 0.25em hsla(200, 100%, 60%, 0.4);
    }

    100% {
        color: hsl(230, 40%, 80%);
        text-shadow:
            0 0 1em hsla(320, 100%, 50%, 0.2),
            0 0 0.125em hsla(320, 100%, 60%, 0.3),
            1em -0.125em 0.5em hsla(40, 100%, 60%, 0),
            -1em 0.125em 0.5em hsla(200, 100%, 60%, 0);
    }

}

header .right {
    display: flex;
    gap: 1rem;
}

header .right a {
    color: #fff;
    border-bottom: 3px solid hsla(309, 100%, 50%, 0.329);
    padding: 5px 15px;
    text-align: center;
    border-radius: 15px;
    font-size: 15px;
    font-weight: 500;
    background: hsla(309, 100%, 50%, 0.011);
    transition: all 0.3s ease;
}

header .right a:hover {
    background: hsla(309, 100%, 50%, 0.219);
}

main {
    z-index: 2;
    width: 98%;
    margin-top: 7rem;
}

@media (max-width: 620px) {
    header {
        width: 95%;
    }

    main {
        width: 95%;
    }
}