/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700;800&display=swap');

body {
    /* ❗️ GANTI DENGAN URL BACKGROUND ANDA */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://files.catbox.moe/18cqqj.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: 'Montserrat', sans-serif;
}

/* --- Navbar Styling --- */
.navbar {
    background: transparent !important;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Membuat navbar lebih rapat */
.navbar > .container {
    max-width: 500px; /* <-- Ubah angka ini untuk mengatur kerapatan */
}

.navbar-collapse {
    flex-grow: 0;
}

.navbar-brand-centered {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 1.25rem;
    transition: transform 0.3s ease;
    z-index: 1050; 
}

.navbar-brand-centered:hover {
    transform: translateX(-50%) scale(1.1);
}

.nav-item { margin: 0 4px; }

.nav-link {
    /* Hapus background dan bentuk miring */
    background-color: transparent;
    clip-path: none;
    
    /* Atur ulang padding & tambahkan posisi relatif untuk garis bawah */
    padding: 8px 15px;
    position: relative;
    
    /* Styling teks dasar agar sedikit redup */
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 700;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    /* Teks menjadi putih cerah saat disentuh/aktif */
    color: #fff !important;
    /* Hapus efek transform yang mungkin ada sebelumnya */
    transform: none;
}

/* --- EFEK GARIS BAWAH (UNDERLINE) --- */
.nav-link::after {
    content: '';
    position: absolute;
    /* Posisi garis bawah */
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px; /* Ketebalan garis */
    background-color: #fff; /* Warna pink */
    
    /* Sembunyikan garisnya pada awalnya */
    transform: scaleX(0);
    transform-origin: center; /* Animasi dimulai dari tengah */
    transition: transform 0.4s ease;
}

/* Tampilkan garis bawah saat di-hover atau pada halaman aktif */
.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* GANTI SEMUA KODE DROPDOWN & MEDIA QUERY LAMA ANDA DENGAN INI */

.dropdown-toggle::after { 
    margin-left: 0.5em; 
}

.dropdown-menu {
    /* Gaya dasar dropdown */
    background-color: rgba(45, 12, 60, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    margin-top: 10px !important;
}

#form-section {
    padding: 80px 15px; /* Tambahkan padding horizontal untuk mobile */
}

#form-section .form-wrapper {
    /* Hapus trik rasio aspek dan atur lebar maksimal */
    max-width: 680px; /* Lebar maksimal form di desktop */
    height: 1000px;
    margin: 0 auto;   /* Posisikan di tengah kolom */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    background-color: #fff;
}

#form-section .form-wrapper iframe {
    /* Atur tinggi tetap untuk desktop agar konsisten */
    width: 100%;
    height: 1000px; 
    border: 0;
    display: block; /* Menghilangkan spasi aneh di bawah iframe */
}


/* --- Animasi Dropdown HANYA UNTUK DESKTOP --- */
@media (min-width: 992px) {
    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }

    .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.dropdown-item {
    color: #e0e0e0;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: #E8238E;
    color: #fff;
}

/* --- Hero Section Styling --- */
#hero { 
    min-height: 50vh;
    padding-bottom: 5rem; /* Beri sedikit ruang di bawah */
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.btn-join {
    background-color: #E8238E;
    color: white;
    font-weight: 700;
    padding: 12px 45px;
    border-radius: 50px;
    border: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-join:hover {
    background-color: transparent;
    transform: translateY(-3px);
    color: white;
}

/* --- Content & Footer Styling --- */
/* --- STYLING KONTEN HALAMAN BARU --- */
.bg-dark-purple {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('https://files.catbox.moe/2h9mvc.webp');
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-size: cover;
    background-position: center;
}

.bg-dark-pink {
    background-color: #2e0a1c; /* Warna ungu gelap */
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-dark-pink1 {
    background-color: #2e0a0a; /* Warna ungu gelap */
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    font-size: 3rem; /* Ukuran ikon */
    color: #E8238E;   /* Warna pink seperti tombol */
    margin-bottom: 20px;
}

#cta h2 {
    font-weight: 700;
}

/* Styling untuk bagian Discord */
#community .discord-widget iframe {
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.footer-section {
    padding: 2rem 0;
    background-color: rgba(0, 0, 0, 0.2);
}

/* --- Tombol Scroll to Top --- */
.scroll-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background-color: #E8238E;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

/* --- Styling Bagian Top Donatur (Canvas) --- */
.canvas-section {
    position: relative; /* Penting untuk menumpuk elemen */
    padding: 100px 0;
    background-color: #150821; /* Warna fallback jika canvas gagal dimuat */
    overflow: hidden; /* Agar partikel tidak keluar dari section */
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Posisikan canvas di lapisan bawah */
}

.canvas-section .content-overlay {
    position: relative;
    z-index: 2; /* Posisikan konten di atas canvas */
    display: flex;
    align-items: center;
    justify-content: center;
}

.donatur-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #E8238E;
    box-shadow: 0 0 30px rgba(232, 35, 142, 0.5);
}

.donatur-username {
    color: #fff;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* --- Penyesuaian Mobile --- */ 
/* --- Penyesuaian Tampilan MOBILE --- */
@media (max-width: 991.98px) {
    .navbar-brand-centered { 
        display: none; 
    }
    
    .navbar > .container { 
        max-width: none; 
    }

    /* Pastikan menu mobile punya background solid */
    .navbar-collapse {
        margin-top: 1rem;
        background-color: rgba(20, 2, 31, 0.95); /* Diberi background solid */
        padding: 1rem;
        border-radius: 0.5rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        text-align: center;
        padding: 10px;
        border-radius: 5px;
    }

    /* Hilangkan efek underline di mobile agar lebih bersih */
    .nav-link::after {
        display: none;
    }
    
    .dropdown-menu {
        text-align: center;
        border: none;
        backdrop-filter: none;
        background-color: rgba(31, 2, 19, 0.95); /* Diberi background solid */
    }
    
    .dropdown-item {
        border-radius: 5px;
    }
}