/* Font fallback standar, digunakan oleh Tailwind */
body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background-color: #0d0d0d;
    color: #fff;
    min-height: 100vh;
    line-height: 1.6;
}

/* Styling kritis untuk Particles.js agar muncul sebagai latar belakang */
#particles-js {
    position: fixed;
    width: 100vw; /* Pastikan lebarnya 100% dari viewport width */
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -1;
    background: #0d0d0d;
    pointer-events: none;
}

/* Tambahkan wrapper di header agar kontennya terpusat di desktop */
header > * { /* target the direct children of the header, which is the flex container */
    max-width: 90rem; /* Misalnya 1440px / max-w-7xl */
    margin-left: auto;
    margin-right: auto;
}

/* Responsive improvement for images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Focus style for accessibility */
a:focus, button:focus {
    outline: 2px solid #ffae00;
    outline-offset: 2px;
}

/* Custom transition for mobile menu */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
}

/* Footer improvement */
footer {
    position: relative;
    z-index: 20;
    background: #111; /* agar kontras dengan partikel */
    color: #ccc;
    padding: 2rem 0 1rem 0;
    border-top: 1px solid #222;
    text-align: center;
    width: 100%;
}

/* Section spacing improvement */
section {
    scroll-margin-top: 80px;
}

/* Card hover effect for bonus/promosi */
.bg-gray-900:hover, .bg-gray-900:focus-within {
    box-shadow: 0 0 16px 2px #ffae0080;
    border-color: #ffae00;
}

/* Responsive padding for section */
@media (max-width: 640px) {
    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}


/* Utility for visually hidden (SEO accessibility) */
.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

html, body {
    overflow-x: hidden; /* Mencegah scroll horizontal pada body */
    max-width: 100%;    /* Memastikan elemen root tidak melebihi lebar viewport */
}

body, main {
    min-height: 100vh;
}

section:last-of-type {
    padding-bottom: 80px;
}