/* --- Basic Setup & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --primary-color: #00e5ff; /* Bright Cyan */
    --secondary-color: #f50057; /* Hot Pink */
    --bg-dark: #0f172a; /* Dark Navy Blue */
    --bg-light: #1e293b; /* Lighter Navy */
    --text-light: #e2e8f0; /* Light Gray */
    --text-dark: #94a3b8; /* Muted Gray */
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: inherit;
}
/* --- Global Styles --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

h2 .highlight {
    color: var(--primary-color);
}

p {
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -20px auto 40px auto;
    color: var(--text-dark);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --- 1. Header & Navigation --- */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
}

/* --- 2. Hero Section --- */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: linear-gradient(45deg, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.6)), url('image/banner2.jpg');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    margin-bottom: 20px;
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

/* --- 3 & 5 & 7 & 10. Generic Content Section --- */
.content-section {
    background-color: var(--bg-dark);
}

/* --- 4. Games Section --- */
.games-section {
    background-color: var(--bg-light);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.game-card {
    background-color: var(--bg-dark);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 20px;
    text-align: center;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 229, 255, 0.1);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.game-card h3 {
    color: var(--text-light);
    margin-bottom: 10px;
}

.game-card p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}
.card-link i {
    transition: transform 0.3s ease;
}
.card-link:hover i {
    transform: translateX(5px);
}

/* --- 5. How It Works Section --- */
.steps-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    gap: 30px;
}

.step .step-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    background-color: var(--bg-light);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.step h3 {
    margin-bottom: 10px;
}

/* --- 6. Features Section --- */
.features-section {
    background-color: var(--bg-light);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* --- 7. Testimonials Section --- */
.testimonial-container {
    display: flex;
    gap: 30px;
    justify-content: center;
}
.testimonial {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
    max-width: 450px;
}
.testimonial p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 15px;
}
.testimonial h4 {
    color: var(--primary-color);
    text-align: right;
}

/* --- 8. News Section --- */
.news-section {
    background-color: var(--bg-light);
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.news-item {
    background-color: var(--bg-dark);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.news-content {
    padding: 20px;
}
.news-content h3 {
    margin-bottom: 10px;
}
.news-content p {
    margin-bottom: 15px;
}
.news-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* --- 9. Newsletter Section --- */
.newsletter-section {
    text-align: center;
    background-color: var(--bg-dark);
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--bg-light);
    background-color: var(--bg-light);
    color: var(--text-light);
    border-radius: 50px;
}

/* --- 10. Contact Form Section --- */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--bg-light);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-light);
    font-family: var(--font-family);
    transition: border-color 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.privacy-group {
    align-items: center;
    gap: 10px;
}
.privacy-group input[type="checkbox"] {
    width: auto;
}
.privacy-group a {
    color: var(--primary-color);
}

/* --- 11. Footer Section --- */
.footer {
    background-color: #0c1221;
    padding: 60px 0;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.footer-col h3, .footer-col h4 {
    margin-bottom: 20px;
    color: #fff;
}
.footer-col p {
    color: var(--text-dark);
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li a {
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}
.footer-col ul li a:hover {
    color: var(--primary-color);
}
.social-links a {
    display: inline-block;
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 15px;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--primary-color);
}

/* --- Animations --- */
.fade-in {
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* --- Responsive Design --- */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 16px 0;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }

    .steps-container, .testimonial-container {
        flex-direction: column;
    }
    .form-group {
        flex-direction: column;
    }
    .newsletter-form {
        flex-direction: column;
    }
}