@import url('https://fonts.googleapis.com/css2?family=Anton&family=Exo:ital,wght@0,100..900;1,100..900&family=Lilita+One&family=Spicy+Rice&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Exo', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    color: white;
    text-align: center;
    background: radial-gradient(ellipse at center, #007acc 30%, #1a1a1a 100%);
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 30px;
    background: transparent;
    color: white;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 50px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 50px;
}

.nav-links a:hover {
    color: black;
    background: white;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle div {
    width: 30px;
    height: 3px;
    background: white;
    margin: 5px;
    transition: 0.3s;
}

.login-btn {
    padding: 8px 16px;
    background-color: transparent;
    color: white;
    border: 3px solid white;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    margin-left: 10px;
    font-weight: bold;
}

.login-btn:hover {
    color: #000000;
    background-color: #ffffff;
}

.container {
    display: flex;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 50px;
    text-align: left;
}

#viewHome {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
}

.text-container {
    flex: 1;
    margin-left: 90px;
}

.text-container h1 {
    font-size: 5rem;
    margin-bottom: 5px;
    animation-name: slide-up;
    animation-duration: 1s;
}

.text-container p {
    font-size: 1.2em;
    line-height: 30px;
    margin-bottom: 30px;
    animation-name: slide-up;
    animation-duration: 1s;
}

.image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container img {
    max-width: 80%;
    height: auto;
    animation-name: slide-left;
    animation-duration: 1s;
    transition: transform 0.3s ease;
}

.image-container img:hover {
    transform: scale(1.1);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background: transparent;
    border: 3px solid white;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.2s ease-in-out, transform 0.2s ease-in-out;
    text-decoration: none;
    animation-name: slide-up;
    animation-duration: 1s;
}

.btn:hover {
    color: #1d2124;
    background: #ffffff;
    transform: scale(1.15);
}

.btn:active {
    color: #1d2124;
    background: #ffffff;
    transform: scale(1.15);
}

#userFormRegistrasi,
#userFormLogin {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    color: #000000;
    background: rgb(255, 255, 255);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    width: 350px;
    text-align: center;
    animation-name: slide-down;
    animation-duration: 1s;
}

.modal-content h2 {
    margin: 15px 10px;
    font-size: 24px;
}

.input-container {
    position: relative;
    width: 90%;
    margin: 20px auto;
}

input {
    width: 100%;
    padding: 12px 10px 8px;
    font-size: 16px;
    border: 1px solid #888;
    border-radius: 5px;
    outline: none;
    background: transparent;
}

label {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-size: 14px;
    color: #888;
    transition: 0.3s ease-in-out;
    pointer-events: none;
    background: white;
    padding: 0 5px;
}

input:focus + label,
input:not(:placeholder-shown) + label {
    top: 0;
    font-size: 14px;
    color: #888;
    transform: translateY(-50%);
}

.modal-content span {
    font-size: 14px;
}

#submitFormRegistrasi,
#submitFormLogin {
    background: rgb(0, 175, 0);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 10px;
}

#submitFormRegistrasi:hover,
#submitFormLogin:hover {
    background: rgb(0, 100, 0);
}

#closeModalRegistrasi,
#closeModalLogin {
    background: rgb(175, 0, 0);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-left: 5px;
}

#closeModalRegistrasi:hover,
#closeModalLogin:hover {
    background: rgb(100, 0, 0);
}

.panduan-container {
    text-align: center;
    margin-top: 30px;
}

.panduan-container h2 {
    margin-bottom: 10px;
    font-size: 26px;
}

.panduan {
    display: flex;
    justify-content: center;
    gap: 15px;
    text-align: center;
}

.step {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    max-width: 450px;
}

.step img {
    margin-top: 30px;
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.step img:hover {
    transform: scale(1.2);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 100px;
}

.faq-container h2 {
    font-size: 26px;
    margin-top: 60px;
    margin-bottom: 40px;
}

.faq-container div {
    margin-bottom: 10px;
}

.faq-container button {
    width: 100%;
    background-color: transparent;
    border: 3px solid white;
    padding: 15px;
    color: white;
    text-align: left;
    font-size: 20px;
    cursor: pointer;
    border-radius: 10px;
}

.faq-container button:hover {
    background-color: white;
    color: black;
}

.faq-container p {
    background: #ffffff;
    color: #000000;
    padding: 20px;
    display: none;
    border-radius: 0px 0px 10px 10px;
    text-align: left;
    margin: 0;
}

.faq-container div.active p {
    display: block;
    animation-name: slide-down;
    animation-duration: 0.12s;
}

footer {
    background: #ffffff;
    color: rgb(0, 0, 0);
    padding: 15px;
}

#typing-text::after {
    content: "|";
    display: inline-block;
    animation: blink 0.8s infinite;
}

.wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.count-container {
    color: #ffffff;
    background: transparent;
    padding: 15px;
    border-radius: 20px;
    border: 2px solid #ffffff;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    margin: 0px 30px;
}

.counter span {
    font-size: 30px;
}

.divider {
    width: 2px;
    height: auto;
    background-color: #ffffff;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100px;
        left: 0;
        width: 100%;
        background: rgb(255, 255, 255);
        text-align: center;
        padding: 10px 0;
        gap: 20px;
    }

    .nav-links a:hover {
        color: white;
        background: black;
    }

    .nav-links.active {
        display: flex;
        animation-name: slide-down;
        animation-duration: 0.3s;
    }

    .nav-links a {
        color: black;
        padding: 15px;
        display: block;
    }

    .nav-links button {
        margin-bottom: 25px;
    }

    .login-btn {
        color: black;
        border: 3px solid black;
    }

    .login-btn:hover {
        color: white;
        background-color: black;
    }

    .menu-toggle {
        display: flex;
    }

    .container {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 20px;
    }

    .text-container {
        margin: 0;
        text-align: center;
    }

    .text-container h1 {
        font-size: 2.5em;
        margin-bottom: 25px;
    }

    .text-container p {
        margin-bottom: 35px;
    }

    .image-container {
        margin-top: 15px;
    }

    .image-container img {
        max-width: 90%;
        animation-name: slide-up;
        animation-duration: 1s;
    }

    .btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    .modal-content {
        width: 85%;
        padding: 15px;
    }

    .modal-content h2 {
        font-size: 18px;
    }

    .panduan-container div {
        flex-direction: column;
        font-size: 14px;
    }

    .panduan-container {
        flex-direction: column;
        align-items: center;
    }

    .step {
        margin: 0 auto;
        text-align: center;
        max-width: 300px;
    }

    .step img {
        margin-top: 20px;
    }

    .faq-container {
        width: 90%;
    }

    .faq-container button {
        font-size: 16px;
        max-width: 300px;
    }

    .faq-container div.active p {
        font-size: 16px;
        display: block;
        max-width: 300px;
        margin: 0 auto;
    }

    footer {
        text-align: center;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes slide-left {
    from {
        transform: translateX(25%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-right {
    from {
        transform: translateX(-25%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-up {
    from {
        transform: translateY(25%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slide-down {
    from {
        transform: translateY(-25%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-left {
    animation: slide-left 0.3s ease-out forwards;
}

.slide-right {
    animation: slide-right 0.3s ease-out forwards;
}

.slide-up {
    animation: slide-up 0.3s ease-out forwards;
}

.slide-down {
    animation: slide-down 0.3s ease-out forwards;
}