@import url("https://fonts.googleapis.com/css2?family=Goldman&display=swap");

/* --- Gaya Dasar: Aturan Global dan Body --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Goldman", sans-serif;
}

body {
    background-color: #000;
    color: #45fbe6;
    display: flex;
    justify-content: center;
    height: 100vh;
    overflow-x: hidden; /* Mencegah overflow horizontal saat menu mobile terbuka */
}

.container {
    background-image: url(assets/bg.png);
    background-size: cover;
    background-position: center;
    width: 100vw;
    padding-inline: 10vh;
}

/* --- Navbar: Desktop dan Mobile --- */
.navbar {
    padding: 10px 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000; /* Pastikan navbar di atas konten lain */
}

.logo {
    width: 200px;
}

/* Desktop Menu (Tampil di desktop) */
.nav-button {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

/* Hamburger Icon (Tersembunyi di desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 2000; /* Pastikan di atas mobile-menu saat terbuka */
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #45fbe6;
    border-radius: 2px;
    transition: 0.3s;
}

/* Hamburger “X” saat active */
.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu (Tersembunyi di desktop) */
.mobile-menu {
    display: none; /* Tersembunyi secara default */
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    flex-direction: column;
    gap: 20px;
    padding: 100px 20px 20px 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1500;
}

.mobile-menu a,
.mobile-menu button {
    width: 100%;
    text-align: center;
    /* Menyesuaikan gaya tombol untuk menu mobile */
    padding: 15px 20px;
    border: 2px solid #45fbe6;
    border-radius: 10px;
    background: transparent;
    color: #45fbe6;
}

.mobile-menu button {
    border: 2px solid #45fbe6; /* Mengganti border none agar konsisten */
    background-color: #45fbe6;
    color: #000;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* --- Gaya Tombol dan Konten Utama --- */
.button {
    background-color: transparent;
    border: 2px solid #45fbe6;
    color: #45fbe6;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
}
.button:hover {
    background-color: #45fbe6;
    color: #000;
}

.button2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: transparent;
    color: #45fbe6;
    padding: 10px 20px;
    border: 2px solid #45fbe6;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}
.button2:hover {
    background-color: #45fbe6;
    color: #000;
}

.coin-logo {
  width: 20px;
  height: 20px;
}

.button-fill {
    background-color: #45fbe6;
    border: 2px solid #45fbe6;
    color: #000;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
}
.button-fill:hover {
    background-color: transparent;
    color: #45fbe6;
}

.nav-button2 {
    display: flex;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}

/* --- Gaya Konten Utama (Right Content) --- */
.right-content {
    display: flex;
    justify-content: center;
    height: 90vh;
    flex-direction: column;
    gap: 10px;
}

.right-content h1 {
    font-size: 4rem;
    text-align: end;
}
.right-content .desc {
    font-size: 12px; 
    margin-top: -30px; 
    margin-bottom: 20px; 
    color: white;
}

.right-content h2 {
    font-size: 2rem;
    text-align: end;
}

.right-content h3 {
    font-size: 1.5rem;
    text-align: end;
    margin-bottom: 2rem;
}

.right-content p {
    font-size: 1rem;
    text-align: end;
}

.data-private-sale {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 10px;
}

.data-proggress {
    display: flex;
    justify-content: space-between;
    width: 25%;
}

.right-content desc {
    font-size: 12px; 
    margin-top: -30px; 
    margin-bottom: 20px; 
    color: white;
}

.progress-container {
    width: 25%;
    background-color: #e0e0e0;
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: #45fbe6;
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
    text-align: left;
    color: black;
    line-height: 20px;
    padding-left: 5px;
    float: right;
}

.data-pembelian {
    display: flex;
    justify-content: space-between;
    width: 25%;
    margin-bottom: 2rem;
}

/* --- MEDIA QUERY: Tampilan Mobile --- */
@media (max-width: 900px) {
    /* Navbar dan Konten */
    .container {
        padding-inline: 5%;
    }

    

    .logo {
        width: 150px;
    }

    /* Sembunyikan menu desktop */
    .nav-button {
        display: none;
    }

    /* Tampilkan ikon hamburger dan mobile menu */
    .menu-toggle {
        display: flex; /* Ganti dari 'block' ke 'flex' untuk alignment yang lebih baik */
        position: static; /* Biarkan dalam alur flexbox navbar */
        right: auto; /* Hapus `right` yang tidak diperlukan */
    }

    .mobile-menu {
        display: flex; /* Tampilkan elemen ini, lalu atur transform */
        z-index: 1500; /* Pastikan di atas konten utama */
    }

   
    /* Penyesuaian ukuran dan tata letak */
    .right-content h1 {
        font-size: 2.5rem;
    }

    .right-content h2 {
        font-size: 1.2rem;
    }

    .right-content h3 {
        font-size: 0.8rem;
    }

    .right-content .desc {
        font-size: 9px;
    }
    
    

    
    .data-proggress,
    .data-pembelian,
    .progress-container {
        width: 100%; /* Lebarkan elemen ini agar lebih mudah dilihat */
        max-width: 350px; /* Atur lebar maksimal agar tidak terlalu lebar di layar besar */
    }
    
    .data-proggress p,
    .data-pembelian p,
    .data-private-sale p {
        font-size: 0.8rem;
    }

    .nav-button2 {
        flex-direction: row;
        align-items: center;
    }

    .button,
    .button-fill {
        font-size: 0.9rem;
    }
}

/* Tambahkan ini di CSS kamu */
.web3modal-modal-lightbox {
  z-index: 99999 !important; /* Pastikan di atas mobile menu */
}


/* --- Gaya Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #00111f;
    color: #45fbe6;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 650px;
    box-shadow: 0 0 20px rgba(0, 255, 150, 0.5);
    animation: fadeIn 0.3s ease-in-out;
}

.close-btn {
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close-btn:hover {
    color: #fff;
}

.modal-content input {
    width: 100%;
    padding: 0.8rem;
    margin: 1.5rem 0;
    border: 1px solid #444;
    border-radius: 0.5rem;
    background: #222;
    color: #fff;
    font-size: 1rem;
}

.modal-content input:focus {
    outline: none;
    border-color: #45fbe6;
    background: #1a1a1a;
}

.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: #45fbe6 solid 2px;
    padding-bottom: 20px;
    text-align: center;
    color: #45fbe6;
}

.modal-content button {
    background-color: #45fbe6;
    color: #000;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    width: 100%;
    margin-block: 1rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}

.modal-content button:disabled {
    background-color: #555;
    color: #999;
    cursor: not-allowed;
}

.form-group {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.form-group > :first-child {
    flex: 0 0 40%;
}

.form-group > :last-child {
    flex: 0 0 60%;
}

#walletAddressModal {
    word-break: break-all;
    overflow-wrap: break-word;
    flex: 0 0 60%;
}

/* Modal Success */
#successModal .modal-content {
    background: #00111f;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 550px;
    max-width: 90%;
    position: relative;
}
#successModal .close-success {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 20px;
}
#successModal button {
    padding: 10px 20px;
    margin-top: 15px;
    cursor: pointer;
}

#confirmBuy {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(90deg, #0f0, #0ff);
    color: #000;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
    transition: 0.3s;
}

#confirmBuy:disabled {
    background: #555;
    color: #999;
    cursor: not-allowed;
}

#confirmBuy:hover:not(:disabled) {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Animasi */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}