@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Russo+One&display=swap');

:root {
    --primary-color: #8A2BE2; /* Biru Ungu */
    --secondary-color: #4682B4; /* Biru Baja */
    --bg-dark: #1a1a2e;
    --bg-light: #f4f7fc;
    --bg-secondary-light: #ffffff;
    --text-dark: #1d1d2e;
    --text-light: #ffffff;
    --text-muted: #555c6f;
    --glow-color: rgba(70, 130, 180, 0.6);
}

body { 
    font-family: 'Poppins', sans-serif; 
    margin: 0; 
    padding-bottom: 80px;
    background-color: var(--bg-light); 
    color: var(--text-dark); 
    line-height: 1.7; 
}
body.body-no-scroll {
    overflow: hidden;
}

/* --- Hamburger Menu & Sidenav --- */
#hamburger-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1003; /* Paling atas */
    background: var(--bg-dark);
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
#hamburger-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}
#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001; /* Di bawah sidenav, di atas konten */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s;
}
#menu-overlay.visible {
    opacity: 1;
    visibility: visible;
}
.sidenav {
    height: 100%;
    width: 280px;
    position: fixed;
    z-index: 1002; /* Di atas overlay */
    top: 0;
    left: 0;
    background-color: var(--bg-dark);
    overflow-x: hidden;
    transform: translateX(-100%);
    transition: transform 0.4s ease-in-out;
    padding-top: 60px;
    box-shadow: 3px 0 15px rgba(0,0,0,0.2);
}
.sidenav.open {
    transform: translateX(0);
}
.sidenav .close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 36px;
    color: var(--text-light);
    text-decoration: none;
}
.sidenav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidenav ul li a {
    padding: 15px 8px 15px 32px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #b0b0d0;
    display: block;
    transition: 0.3s;
}
.sidenav ul li a:hover {
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.1);
}
/* --- End of Hamburger Menu --- */

.content-wrapper { position: relative; z-index: 1; overflow-x: hidden; }
.container { max-width: 1100px; margin: auto; overflow: hidden; padding: 0 20px; }

.site-header { 
    background-color: var(--bg-secondary-light);
    padding: 1rem 0; 
    border-bottom: 1px solid #e5e5e5;
}
.site-header .container { display: flex; justify-content: center; align-items: center; }
.site-logo img { max-height: 45px; width: auto; }

.hero-section {
    position: relative;
    padding: 6rem 20px 8rem 20px;
    text-align: center;
    color: var(--text-light);
}
#gradient-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}
.hero-content { position: relative; z-index: 1; }
.hero-title { 
    font-family: 'Russo One', sans-serif; 
    font-size: clamp(2.5rem, 8vw, 4.5rem); 
    color: var(--text-light); 
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    letter-spacing: 2px; 
    margin-bottom: 1rem; 
}
.sub-headline { font-size: 1.2rem; max-width: 700px; margin: auto; margin-bottom: 2.5rem; opacity: 0.9; }

.glowing-button { 
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)); 
    color: var(--text-light);
    padding: 15px 35px; 
    text-decoration: none; 
    border-radius: 50px; 
    transition: all 0.3s ease; 
    border: none; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1), 0 0 20px var(--glow-color); 
    font-family: 'Poppins', sans-serif; 
    font-weight: 700; 
    font-size: 1rem; 
    letter-spacing: 1px; 
    display: inline-block;
    cursor: pointer;
}
.glowing-button:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(0,0,0,0.15), 0 0 30px var(--glow-color); }

main section { 
    padding: 5rem 0; 
    text-align: center; 
    background-color: transparent; 
    border-bottom: 1px solid #e5e5e5;
}
.section-title { font-family: 'Russo One', sans-serif; font-size: 2.5rem; color: var(--primary-color); margin-bottom: 1rem; letter-spacing: 1px; }

.banner-section {
    padding: 3rem 0 5rem 0;
}
.single-banner-container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid #dddddd;
    background: var(--bg-secondary-light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.single-banner-container img {
    width: 100%;
    display: block;
    vertical-align: middle;
    transition: transform 0.3s ease;
}
.single-banner-container a:hover img {
    transform: scale(1.02);
}

.about-us-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}
.about-us-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: left;
}
.section-title-light {
    font-family: 'Russo One', sans-serif;
    font-size: 2.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-align: center;
}
.about-us-container p {
    font-size: 1rem;
    line-height: 1.8;
    color: #dcdcdc;
    margin-bottom: 1rem;
}
.about-us-container strong {
    color: var(--secondary-color);
    font-weight: 600;
}
.about-us-container .glowing-button {
    display: block;
    width: fit-content;
    margin: 2.5rem auto 0 auto;
}
.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}
.collapsible-content.expanded {
    max-height: 500px;
}

.features-section { background-color: var(--bg-secondary-light); }
.games-section { background-color: var(--bg-light); }
.faq-section { background: var(--bg-secondary-light); border-bottom: none; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 3rem; }
.feature-item { padding: 2.5rem 2rem; }
.feature-icon { font-size: 3rem; color: var(--secondary-color); margin-bottom: 1rem; }

.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.promo-item { display: block; position: relative; overflow: hidden; border-radius: 10px; border: 2px solid transparent; transition: all 0.3s ease; }
.promo-item:hover { border-color: var(--primary-color); }
.promo-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.promo-item:hover img { transform: scale(1.1); }
.promo-text { position: absolute; bottom: 0; left: 0; width: 100%; padding: 1rem; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); z-index: 2; }
.promo-text h3 { margin: 0; font-size: 1.2rem; text-shadow: 1px 1px 3px rgba(0,0,0,0.7); font-family: 'Russo One', sans-serif; color: #ffffff; }

.faq-container { max-width: 800px; margin: 2rem auto 0; text-align: left; }
.faq-item { border-bottom: 1px solid #e5e5e5; }
.faq-question { width: 100%; background: none; border: none; padding: 1.5rem; font-size: 1.1rem; text-align: left; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; color: var(--text-dark); }
.faq-question:hover, .faq-item.active .faq-question { color: var(--primary-color); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; padding: 0 1.5rem; }
.faq-answer p { margin: 0; padding-bottom: 1.5rem; color: var(--text-muted); }
.faq-question .fa-chevron-down { transition: transform 0.3s ease-out; }
.faq-item.active .faq-question .fa-chevron-down { transform: rotate(180deg); }

.site-footer { background: var(--bg-dark); color: #e0e0e0; text-align: center; padding: 2rem 0; font-size: 0.9rem;}
.sticky-nav-bottom { 
    display: flex; 
    align-items: center; 
    background: var(--bg-secondary-light);
    padding: 0.75rem 0; 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    z-index: 1000; 
    border-top: 1px solid #dcdcdc;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.sticky-nav-bottom .container { display: flex; justify-content: center; align-items: center; }
.sticky-nav-bottom .nav-buttons { display: flex; justify-content: center; align-items: center; gap: 1rem; width: 100%; }
.sticky-nav-bottom .nav-btn { color: var(--primary-color); text-decoration: none; padding: 8px 15px; border: 1px solid var(--primary-color); border-radius: 5px; transition: all 0.3s; font-weight: 600; flex-grow: 1; text-align: center; }
.sticky-nav-bottom .nav-btn-special { color: var(--text-light); text-decoration: none; padding: 8px 15px; border: 1px solid var(--primary-color); border-radius: 5px; transition: all 0.3s; font-weight: 600; flex-grow: 1; text-align: center; background-color: var(--primary-color); }
.sticky-nav-bottom .nav-btn:hover { background-color: var(--primary-color); color: var(--text-light); }

.blog-section { background-color: var(--bg-secondary-light); }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: -0.5rem auto 3rem auto; text-align: center; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.blog-card { display: flex; flex-direction: column; text-decoration: none; background-color: var(--bg-secondary-light); border-radius: 10px; overflow: hidden; border: 1px solid #e0e0e0; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); border-color: var(--primary-color); }
.blog-card-img img { width: 100%; height: 200px; object-fit: cover; display: block; }
.blog-card-content { padding: 1.5rem; color: var(--text-dark); display: flex; flex-direction: column; flex-grow: 1; }
.blog-card-content h3 { font-family: 'Russo One', sans-serif; color: var(--text-dark); margin: 0 0 0.75rem 0; font-size: 1.25rem; line-height: 1.4; }
.blog-card-content p { color: var(--text-muted); margin: 0 0 1.5rem 0; font-size: 0.95rem; line-height: 1.6; flex-grow: 1; }
.blog-card-readmore { color: var(--primary-color); font-weight: bold; font-size: 0.9rem; align-self: flex-start; }

@media(max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .sub-headline { font-size: 1rem; }
    .section-title { font-size: 2rem; }
    .section-title-light { font-size: 1.8rem; }
    .sticky-nav-bottom .nav-buttons { gap: 0.5rem; }
    .sticky-nav-bottom .nav-btn, .sticky-nav-bottom .nav-btn-special { font-size: 0.8rem; padding: 8px 5px; }
}