/* General Body Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(90deg, #0025f5 0%, #4368e1 50%, #311d1d 100%);
    color: #f0f0f0;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Background Batiq (if you have the image and want to use it) */
.background-batiq {
    position: fixed; /* Use fixed for full background or absolute for within a container */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('path/to/your/batiq-pattern.png'); /* Ganti dengan path gambar batiq Anda */
    background-repeat: repeat-y;
    background-position: center top;
    opacity: 0.1; /* Slightly transparent */
    z-index: -1; /* Send it to the background */
}

/* Header Styles */
.main-header {
    background: linear-gradient(90deg, #0025f5 0%, #4368e1 50%, #311d1d 100%);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-header .logo img {
    height: 40px; /* Adjust as needed */
    width: auto;
}

.main-header h1 {
    font-family: 'Roboto Slab', serif;
    font-size: 1.8em;
    margin: 0;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #f8d000; /* A contrasting hover color */
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8em;
    cursor: pointer;
}

/* Main Content Wrapper */
.content-wrapper {
    max-width: 1000px; /* Max width for content */
    margin: 20px auto;
    padding: 0 20px;
}

/* Section Styles */
section {
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background */
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

section h2, section h3 {
    font-family: 'Roboto Slab', serif;
    color: #f8d000; /* Yellow accent */
    text-align: center;
    margin-bottom: 25px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 40px 20px;
}

.hero-banner {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Allow buttons to wrap on small screens */
}

.button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.primary-button {
    background-color: #007bff; /* Blue */
    color: #fff;
    animation: rainbow 5s infinite; /* Example rainbow animation */
}

/* Rainbow Button Animation */
@keyframes rainbow {
    0% { background-color: rgb(4, 0, 255); } /* Blue */
    16.67% { background-color: rgb(0, 132, 255); } /* Sky Blue */
    33.33% { background-color: rgb(0, 119, 255); } /* Lighter Blue */
    50% { background-color: rgb(0, 89, 255); } /* Medium Blue */
    66.67% { background-color: rgb(0, 40, 255); } /* Darker Blue */
    83.33% { background-color: rgb(0, 0, 255); } /* Darkest Blue */
    100% { background-color: rgb(4, 0, 255); } /* Back to Blue */
}


.secondary-button {
    background-color: #555;
    color: #fff;
}

/* Features Section */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    text-align: center;
}

.feature-item {
    background-color: rgba(40, 40, 40, 0.8);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item img {
    height: 200px;
    margin-bottom: 15px;
}

.feature-item h4 {
    font-family: 'Roboto Slab', serif;
    color: #f8d000;
    margin-top: 0;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.9em;
    color: #ccc;
}

/* Game Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}

.category-item {
    background-color: rgba(40, 40, 40, 0.8);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: scale(1.03);
}

.category-item img {
    width: 100%;
    height: 150px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.category-item p {
    padding: 10px;
    font-weight: bold;
    color: #f8d000;
    margin: 0;
}

/* Site Description (Table) */
.site-description table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: rgba(40, 40, 40, 0.8);
    border-radius: 8px;
    overflow: hidden; /* Ensures border-radius applies to table */
}

.site-description th, .site-description td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #444;
}

.site-description th {
    background-color: #333;
    color: #f8d000;
    font-weight: normal;
}

.site-description tr:last-child td {
    border-bottom: none;
}

.site-description p {
    text-align: justify;
    margin-bottom: 15px;
    color: #ccc;
}

.site-description a {
    color: #f8d000; /* Link color */
    text-decoration: none;
    font-weight: 500;
}

.site-description a:hover {
    text-decoration: underline;
}

/* Footer Styles */
.main-footer {
    background: linear-gradient(90deg, #0025f5 0%, #4368e1 50%, #311d1d 100%);
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    font-size: 0.9em;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.main-footer .social-links img {
    height: 30px;
    width: auto;
    margin: 10px 8px 0;
    filter: invert(1); /* Make social icons white */
    transition: transform 0.2s ease;
}

.main-footer .social-links img:hover {
    transform: scale(1.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-header {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .main-header .logo {
        flex-grow: 1; /* Allow logo to take more space */
    }

    .main-nav {
        order: 3; /* Move nav below logo and toggle */
        flex-basis: 100%; /* Full width */
        margin-top: 15px;
        display: none; /* Hidden by default on mobile, toggled by JS */
        text-align: center;
    }

    .main-nav.active {
        display: block; /* Show when active */
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .menu-toggle {
        display: block; /* Show on mobile */
    }

    .hero-section {
        padding: 20px 10px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .button {
        width: 80%; /* Make buttons wider */
        margin: 0 auto;
    }

    .feature-grid, .categories-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
    }

    .site-description table {
        display: block;
        overflow-x: auto; /* Enable horizontal scroll for table on small screens */
        white-space: nowrap; /* Prevent content from wrapping inside cells */
    }
}