/* Styling dasar untuk navigasi */
nav {
    font-family: "Avenir Book", sans-serif;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    /* gap: 20px; */
    /* Memberikan jarak antar item menu */
}

nav ul li {
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s, background-color 0.3s;
    /* Animasi untuk perubahan warna */
}

/* Efek hover untuk item menu utama */
nav ul li:hover {
    color: white;
    /* Mengubah warna teks menjadi putih saat hover */
    background-color: #ff0000;
    /* Mengubah latar belakang menjadi merah terang */
}

.menu-item {
    display: block;
    width: 100%;

    padding: 10px 15px;

    background-color: #f1f1f1;

    border-radius: 5px;

    margin: 5px 0;

    cursor: pointer;

    transition: background-color 0.3s;

}


.menu-item a {
    display: block;
    text-decoration: none;

    color: #000;

}

/* Efek hover untuk menu item */
.menu-item:hover {
    background-color: #ff0000;
    /* Mengubah warna latar belakang saat item dihover */
}

.menu-item:hover a {
    color: white;
    /* Mengubah warna teks saat hover */
}

/* Styling untuk dropdown menu */
nav ul li>.dropdown {
    display: none;
    /* Menyembunyikan dropdown secara default */
    position: absolute;
    background-color: #ffffff;
    color: #000;
    list-style-type: none;
    padding: 5px;
    margin-top: 10px;
    margin-left: -10px;
    border-radius: 5px;
    z-index: 10;
    /* Pastikan dropdown berada di atas elemen lain */
}

/* Menampilkan dropdown saat item menu dihover */
nav ul li:hover>.dropdown {
    display: block;
}

/* Styling untuk menu icon pada tampilan mobile */
.menu-icon {
    cursor: pointer;
    font-size: 24px;
    display: none;
}

@media (max-width: 600px) {
    #menuList {
        position: absolute;
        top: 57px;
        left: 0;
        right: 0;
        flex-direction: column;
        text-align: center;
        gap: 0;
        overflow: hidden;
        display: none !important;
        z-index: 100;
        opacity: 0;
        transition: all 0.3s ease;
        backdrop-filter: blur(20px) !important;
        background-color: rgba(27, 27, 27, 0.8);
        -webkit-backdrop-filter: blur(20px) !important;
        background-image: repeating-linear-gradient(to right,
                transparent 0 500px,
                /* Diperkecil untuk mobile */
                #eee1 500px 501px) !important;
    }

    #menuList.mobile-visible {
        display: flex !important;
        opacity: 1;
    }

    .menu-icon {
        display: block !important;
        z-index: 1000;
    }

    nav ul li>.dropdown {
        position: static;
        margin-left: 0px;
        width: 100%;
        /* margin-top: 100; */
        max-height: 100;
        overflow: hidden;
        transition: max-height 0.3s ease;
        backdrop-filter: blur(20px) !important;
        /* background-color: rgba(27, 27, 27, 0.8); */
        -webkit-backdrop-filter: blur(20px) !important;
        background-image: repeating-linear-gradient(to right,
                transparent 0 500px,
                /* Diperkecil untuk mobile */
                #eee1 500px 501px) !important;
    }
}

/* ========== FOOTER RESPONSIVE ========== */
@media (max-width: 768px) {
    .footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-media a {
        justify-content: center;
    }
}

/* Contoh styling untuk tiap state */
.decode-text {
    font-family: "Military";
    src: url('/font/Military-Jr34-Bold.woff');
    color: #ffffff;
    font-size: clamp(1rem, 7.5vw, 2.5rem);
    /* Responsive font size */
    line-height: 1;
    text-align: center;
    padding: 0 2rem;

}

.decode-text span {
    /* transition: all 0.3s ease; */
    opacity: 0;
    /* Awal: tidak terlihat */
    font-family: "Military";
    src: url('/font/Military-Jr34-Bold.woff');
    display: inline-block;
    white-space: normal;
    transition: all 0.3s ease;
    margin: 1 0.1em;

}

.decode-text span.state-1 {
    opacity: 0.3;
    /* Bisa ditambahkan efek garis (line) dengan border-bottom misalnya */
    border-bottom: 1px solid #fff;
}

.decode-text span.state-2 {
    opacity: 0.6;
    /* Ubah tampilan, misalnya background block sementara */
    background-color: rgba(255, 255, 255, 0.3);
}

.decode-text span.state-3 {
    opacity: 1;
    border-bottom: none;
    background-color: transparent;
}

.title {
    color: #ffffff;
    font-size: 5em;
    font-family: "Avenir Book", sans-serif;
    font-weight: bold;
    position: relative;
    text-align: center;
    /* position: absolute; */
    /* Menggunakan absolute agar tidak terpengaruh perubahan lain */
    top: auto;
    /* Menjaga elemen di tengah secara vertikal */
    left: auto;
    /* Menjaga elemen di tengah secara horizontal */
    transform: none;
    /* Menyesuaikan posisi agar elemen tepat di tengah */
    text-align: center;
    margin: 1rem 0;
    padding: 0 1rem;
    /* Menghapus margin-top untuk menghindari pergeseran */
    padding-bottom: 55px;
}

.title::before {
    content: attr(data-before);
    position: absolute;
    top: 0.5em;
    inset: 0.66em 0 0 0;
    z-index: -1;
    color: #445022;
}

@media (max-width: 768px) {
    .decode-text {
        font-size: clamp(1.4rem, 2vw, 1rem);
        line-height: 1.2;
    }

    .title {
        padding-bottom: 0px;
    }

    .decode-text span {
        margin: 1 0.05em;
        transition-duration: 0.2s;
    }

    .title::before {
        top: 0.3em;
    }
}

@media (max-width: 480px) {
    .decode-text {
        font-size: clamp(1.2rem, 7.5vw, 2rem);
        padding: 0 1rem;
    }

    .decode-text span.state-1,
    .decode-text span.state-2,
    .decode-text span.state-3 {
        letter-spacing: normal;
    }
}

.red-letter {
    color: red;
}