/* --- Global Styles & Variables --- */
:root {
    --color-background: #0d0221;
    --color-dark-section: #04010a;
    --color-primary: #f72585; /* Neon Pink */
    --color-secondary: #4361ee; /* Neon Blue */
    --color-accent: #fca311; /* Neon Yellow/Gold */
    --color-text: #e0e0e0;
    --font-display: 'Monoton', cursive;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    display: block;
}

.section-padding {
    padding: 80px 0;
}

.dark-section {
    background-color: var(--color-dark-section);
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 2px;
}

/* --- Neon Effects --- */
.neon-text-pink {
    color: #fff;
    font-weight: bold;
    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.7),
        0 0 10px var(--color-primary),
        0 0 20px var(--color-primary),
        0 0 35px var(--color-primary);
}

.neon-text-blue {
    color: #fff;
    font-weight: bold;
    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.7),
        0 0 10px var(--color-secondary),
        0 0 20px var(--color-secondary),
        0 0 35px var(--color-secondary);
}

.neon-icon-blue {
    color: var(--color-secondary);
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px var(--color-secondary);
}

/* --- Header --- */
.main-header {
    background-color: rgba(13, 2, 33, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(67, 97, 238, 0.3);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.main-nav a {
    margin-left: 15px;
    text-decoration: none;
}

/* --- Buttons --- */
.btn {
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 0 10px var(--color-primary), 0 0 20px var(--color-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--color-primary), 0 0 30px var(--color-primary), 0 0 45px var(--color-primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: #fff;
    box-shadow: 0 0 10px var(--color-secondary);
}

.btn-cta {
    font-size: 1.1rem;
    padding: 15px 40px;
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-background);
    border-color: var(--color-accent);
    font-size: 0.9rem;
    padding: 8px 20px;
    display: inline-block;
    text-decoration: none;
}

.btn-accent:hover {
    background-color: #ffb742;
    color: #000;
    box-shadow: 0 0 10px var(--color-accent);
}

/* --- Hero Section (Homepage) --- */
#hero {
    min-height: 90vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('https://images.unsplash.com/photo-1531297484001-80022131f5a1?q=80&w=2020&auto=format&fit=crop') no-repeat center center/cover;
    position: relative;
    padding: 100px 20px 40px 20px;
}

#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--color-background), rgba(13, 2, 33, 0.5));
}

.hero-content {
    z-index: 10;
    max-width: 900px;
    width: 100%;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 4rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0 auto 30px auto;
}

.main-banner {
    display: block; 
    margin: 0 auto 40px auto;
    border-radius: 10px; 
    overflow: hidden; 
    box-shadow: 0 0 20px rgba(67, 97, 238, 0.4); 
    border: 1px solid var(--color-secondary); 
}

.main-banner img {
    width: 100%;
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature-item h3 {
    color: var(--color-accent);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

/* --- Games Section --- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.game-card {
    background: var(--color-background);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--color-secondary);
    box-shadow: 0 0 15px rgba(67, 97, 238, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(67, 97, 238, 0.8);
}

.game-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.game-info {
    padding: 20px;
    text-align: center;
}

.game-info h3 {
    font-size: 1.8rem;
    color: var(--color-accent);
    margin-bottom: 20px;
}

/* --- Blog Section (Homepage) --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-post {
    background: var(--color-dark-section);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-post img {
    border-radius: 5px;
    margin-bottom: 15px;
    height: 180px;
    width: 100%;
    object-fit: cover;
}

.blog-post h3 {
    color: var(--color-secondary);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.read-more {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.read-more:hover {
    text-decoration: underline;
    color: #ff509c;
}

/* --- FAQ Section --- */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--color-background);
    border: 1px solid rgba(67, 97, 238, 0.5);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text);
    position: relative;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(67, 97, 238, 0.1);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-family: 'Monoton', cursive;
    font-size: 2rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-item[open] > .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px 20px 25px;
    border-top: 1px solid rgba(67, 97, 238, 0.3);
    color: var(--color-text);
    line-height: 1.7;
}

/* --- PAGE BLOG STYLES --- */
.page-header-blog {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--color-dark-section);
    background-image: linear-gradient(rgba(4, 1, 10, 0.8), rgba(4, 1, 10, 0.8)), url('https://images.unsplash.com/photo-1542751371-adc38448a05e?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid var(--color-accent);
}

.page-header-blog h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.page-header-blog p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.category-filters ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.category-filters a {
    color: var(--color-text);
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid var(--color-secondary);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.category-filters a:hover,
.category-filters a.active {
    background-color: var(--color-secondary);
    color: #fff;
    box-shadow: 0 0 10px var(--color-secondary);
}

.blog-grid-section {
    background-color: var(--color-background); /* Menyamakan background */
}

.blog-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background-color: var(--color-dark-section);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    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.2);
}

.blog-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-date {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
}

.card-title {
    color: var(--color-accent);
    font-size: 1.4rem;
    margin-bottom: 10px;
    flex-grow: 1;
}

.card-excerpt {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 20px;
}

/* --- SINGLE ARTICLE PAGE STYLES --- */
.article-layout {
    padding: 60px 0;
    background-color: var(--color-dark-section);
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-background);
    padding: 30px 40px;
    border-radius: 10px;
    border: 1px solid rgba(67, 97, 238, 0.3);
}

.back-to-blog-link {
    display: inline-block;
    color: var(--color-secondary);
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: 700;
}

.back-to-blog-link:hover {
    color: var(--color-primary);
}

.article-header h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.article-meta a {
    color: var(--color-accent);
    text-decoration: none;
}

.article-meta a:hover {
    text-decoration: underline;
}

.article-featured-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 30px;
}

.article-content p,
.article-content li {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.article-content .lead {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-text);
}

.article-content h3 {
    font-size: 1.8rem;
    color: var(--color-secondary);
    margin-top: 40px;
    margin-bottom: 15px;
}

.article-content ul {
    list-style-position: inside;
    padding-left: 10px;
}

.article-cta {
    background-color: var(--color-dark-section);
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-top: 50px;
}

.article-cta h4 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

/* --- Footer --- */
.main-footer-content {
    background: var(--color-dark-section);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(67, 97, 238, 0.3);
}

/* --- Live Chat --- */
.live-chat {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 0 20px var(--color-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 10px var(--color-primary); }
    50% { box-shadow: 0 0 25px var(--color-primary); }
    100% { box-shadow: 0 0 10px var(--color-primary); }
}

/* --- Sticky Promo Footer --- */
.promo-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-accent);
    padding: 10px 0;
    z-index: 1001;
    color: var(--color-background);
    font-weight: 700;
    display: block;
}

.promo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 20px;
}

.promo-text {
    margin-right: 20px;
    text-align: center;
}

.promo-footer .btn-sm {
    padding: 5px 15px;
    flex-shrink: 0;
}

.close-promo-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-background);
    cursor: pointer;
    line-height: 1;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .blog-grid-container {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 768px) {
    .section-title, .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
        line-height: 1.3;
    }

    .main-header .container {
        flex-direction: column;
    }

    .main-nav {
        margin-top: 15px;
    }

    .blog-grid-container {
        grid-template-columns: 1fr; 
    }
    
    .promo-container {
        flex-direction: column;
        text-align: center;
        padding-bottom: 5px;
    }

    .promo-text {
        margin: 0 0 10px 0;
    }
    
    .promo-footer .btn-sm {
        margin-bottom: 5px;
    }

    .close-promo-btn {
        top: 15px;
        right: 15px;
    }
    
    .article-header h1 {
        font-size: 2.2rem;
    }
    .article-container {
        padding: 20px;
    }
}