/* === Google Fonts & Global Styles === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --primary-color: #6a89cc;
    --secondary-color: #4a69bd;
    --accent-color: #ff7675;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #555;
    --border-radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background: #fff;
}

/* === Utility Classes === */
.content-section {
    padding: 80px 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--dark-color);
    font-weight: 700;
}

.bg-light {
    background: var(--light-color);
}

/* === 1. Header & Navigation === */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

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

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

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

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

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

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

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

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: all 0.3s ease-in-out;
}
a  {
    text-decoration: none;
    color: inherit;
}
/* === 2. Hero Section === */
.hero-section {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('image/banner.jpg') no-repeat center center/cover;
    padding: 0 5%;
    margin-top: 60px; /* Offset for fixed navbar */
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.cta-button {
    padding: 15px 30px;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* === 3. Featured Games Section === */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.game-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

/* --- WOW Hover Effect --- */
.game-card:hover {
    transform: translateY(-10px) perspective(1000px) rotateY(5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* === 4. About Us Section === */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

/* === 5. Features Section === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.feature-item:hover i {
    transform: scale(1.2) rotate(15deg);
}

.feature-item h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: var(--dark-color);
}

/* === 6. Reviews Section === */
.review-snippet {
    background: #fff;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow);
}

.review-snippet h4 {
    color: var(--secondary-color);
}

.rating {
    color: #fdcb6e;
    margin-top: 10px;
}

/* === 7. Walkthroughs Section === */
.walkthrough-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.walkthrough-item {
    background: var(--light-color);
    padding: 15px 20px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
}

.walkthrough-item:hover {
    background: var(--primary-color);
    color: #fff;
}

.walkthrough-item span {
    margin-right: 10px;
    color: var(--accent-color);
}

/* === 8. Community / CTA Section === */
.bg-cta {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-button-light {
    padding: 15px 30px;
    background: #fff;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    margin-top: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* === 9. News Section === */
.news-item {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.news-item a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

/* === 10. Contact Section === */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info h3, .contact-form h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
}

.social-links a {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-right: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Modern Form Styling */
.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 2px solid #ccc;
    background: transparent;
    font-size: 1rem;
    outline: none;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #999;
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:valid ~ label {
    top: -15px;
    left: 0;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.input-group input:focus, .input-group textarea:focus {
    border-bottom-color: var(--primary-color);
}

.checkbox-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.checkbox-group label a {
    color: var(--primary-color);
    text-decoration: none;
}

.submit-button {
    width: 100%;
    padding: 15px;
    border: none;
    background: var(--accent-color);
    color: #fff;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background: #d63031;
}

/* === 11. Footer Section === */
footer {
    text-align: center;
    padding: 20px;
    background: var(--dark-color);
    color: var(--light-color);
}

/* === Scroll Animations === */
.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);
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px; /* Adjust to navbar height */
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }

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

    .nav-item {
        margin: 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: 2.5rem;
    }
}