:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #e94560;
    --gold-color: #f9a826;
    --text-light: #f5f5f5;
    --text-dark: #333333;
    --bg-light: #ffffff;
    --bg-gray: #f4f4f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-gray);
    color: var(--text-dark);
    line-height: 1.8;
}

/* Header & Navigation */
header {
    background-color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo img {
    max-height: 50px;
    width: auto;
}

/* Navbar Menu & Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--gold-color);
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--gold-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger Animation to 'X' */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-login {
    background-color: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
}

.btn-login:hover {
    background-color: var(--gold-color);
    color: var(--primary-color);
}

.btn-daftar {
    background-color: var(--accent-color);
    color: var(--text-light);
    border: 2px solid var(--accent-color);
}

.btn-daftar:hover {
    background-color: transparent;
    color: var(--accent-color);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    overflow-x: hidden;
}

section {
    margin-bottom: 60px;
}

h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 15px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--gold-color);
    margin-top: 8px;
    border-radius: 2px;
}

p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #555;
    text-align: justify;
}

/* Hero Section Modern */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 0;
}

.hero-content {
    flex: 1;
}

.hero-actions {
    margin-top: 30px;
}

.hero-btn {
    font-size: 1.1rem;
    padding: 15px 35px;
    box-shadow: 0 8px 15px rgba(233, 69, 96, 0.3);
    transition: all 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(233, 69, 96, 0.5);
}

.hero-image-wrapper {
    flex: 1;
}

.hero-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hero-img:hover {
    transform: translateY(-10px);
}

/* Games Grid */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2::after {
    margin: 8px auto 0;
}

.section-header p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.game-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 4px solid var(--accent-color);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(233, 69, 96, 0.15);
    border-top-color: var(--gold-color);
    background-color: #fafbfd;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.game-card:hover .card-icon {
    transform: scale(1.15) rotate(5deg);
}

.game-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Content Box (History & EEAT) */
.content-box {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.content-box h3 {
    color: var(--accent-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Guide & FAQ Flexbox */
.guide-faq-section {
    display: flex;
    gap: 40px;
}

.guide-content,
.faq-content {
    flex: 1;
}

.step {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid var(--gold-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.step h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* FAQ Accordion */
.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #fafafa;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: #fafafa;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 200px;
    border-top: 1px solid #eee;
}

.faq-item.active .icon {
    transform: rotate(45deg);
}

.icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

ul {
    margin-left: 20px;
    margin-bottom: 20px;
    color: #555;
}

li {
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    text-align: center;
    padding: 30px 20px;
}

footer p {
    color: #ccc;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 0;
}

/* Link Juice Aman (Discreet Links) */
.footer-seo-links {
    margin-top: 15px;
    font-size: 0.85rem;
    opacity: 0.5;
    /* Samar namun terbaca oleh bot & user (Aman dari penalti) */
}

.footer-seo-links a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.footer-seo-links a:hover {
    opacity: 1;
    color: var(--gold-color);
}

/* Scroll to Top Button */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--accent-color), #ff6b81);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    background: linear-gradient(135deg, #ff6b81, var(--accent-color));
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.6);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 15px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid var(--secondary-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 15px;
    }

    .nav-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        text-align: center;
    }

    .hero-section,
    .guide-faq-section {
        flex-direction: column;
    }

    .hero-section h1 {
        font-size: 2rem;
    }
}