/* --- VARIABLES & GENERAL SETUP --- */
:root {
    --primary-color: #00a8ff; /* A vibrant blue */
    --secondary-color: #e03a73; /* A punchy pink for highlights */
    --background-color: #0d1117; /* A deep, dark blue-grey */
    --surface-color: #161b22; /* Slightly lighter for cards */
    --text-color: #c9d1d9; /* Off-white for readability */
    --heading-color: #ffffff;
    --border-color: #30363d;
    --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(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-title {
    font-size: 2.5rem;
    color: var(--heading-color);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
}

.cta-button {
    margin-top: 2rem;
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-5px);
    background: var(--secondary-color);
}

.content-section {
    padding: 6rem 0.5rem;
}


/* --- HEADER & NAVIGATION --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--heading-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

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

/* --- HERO SECTION --- */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(13, 17, 23, 0.7), rgba(13, 17, 23, 1)), url('image/banner.jpg') no-repeat center center/cover;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.hero-content p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* --- GAMES SECTION --- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1.5rem;
    text-align: center;
}

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

.game-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.game-card h3 {
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}


/* --- FEATURES SECTION --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.feature-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

/* --- SPOTLIGHT SECTION --- */
.spotlight-section {
    background: var(--surface-color);
}
.spotlight-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}
.spotlight-image img {
    max-width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}
.spotlight-content .section-title {
    text-align: left;
}


/* --- TESTIMONIALS --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.testimonial-card {
    background: var(--surface-color);
    padding: 2rem;
    border-left: 5px solid var(--primary-color);
    border-radius: 5px;
}
.testimonial-card h4 {
    margin-top: 1rem;
    color: var(--heading-color);
    text-align: right;
}

/* --- NEWSLETTER SECTION --- */
.newsletter-section {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    text-align: center;
    color: #fff;
}
.newsletter-section .section-title, .newsletter-section p {
    color: #fff;
}
.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}
.newsletter-form input {
    width: 300px;
    padding: 12px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
}
.newsletter-form .cta-button {
    background: #fff;
    color: var(--primary-color);
}
.newsletter-form .cta-button:hover {
    background: #eee;
}

/* --- TEAM SECTION --- */
.team-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.team-member {
    text-align: center;
}
.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    margin-bottom: 1rem;
}
.team-member h4 {
    color: var(--heading-color);
    font-size: 1.2rem;
}

/* --- FAQ SECTION --- */
.faq-accordion {
    max-width: 700px;
    margin: 0 auto;
}
.faq-item {
    background: var(--surface-color);
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}
.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.5rem;
    text-align: left;
    font-size: 1.1rem;
    color: var(--heading-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question i {
    transition: transform 0.3s ease;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-answer p {
    padding: 0 1.5rem 1.5rem;
}
.faq-item.active .faq-answer {
    max-height: 100px; /* Adjust as needed */
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* --- FOOTER --- */
footer {
    background: var(--surface-color);
    padding-top: 3rem;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-about h3 {
    font-size: 1.8rem;
    color: var(--heading-color);
}
.footer-social a {
    color: var(--text-color);
    font-size: 1rem;
    margin-left: 1.5rem;
    transition: color 0.3s ease;
}
a {
    text-decoration: none;
}
.footer-social a:hover {
    color: var(--primary-color);
}
.footer-bottom {
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 1.5rem 0;
}


/* --- ANIMATIONS --- */
.animate-on-load {
    animation: fadeInSlideUp 0.8s ease-out forwards;
    opacity: 0;
}
.animate-on-load:nth-child(1) { animation-delay: 0.2s; }
.animate-on-load:nth-child(2) { animation-delay: 0.4s; }
.animate-on-load:nth-child(3) { animation-delay: 0.6s; }

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 68px; /* Height of navbar */
        flex-direction: column;
        background-color: var(--background-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        padding: 1.5rem 0;
    }

    .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);
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .spotlight-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .spotlight-content .section-title {
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form input {
        width: 100%;
    }
    .page-header {
        margin-top: 6rem;
    }
}