/* General Styling */
:root {
    --primary-color: #5b21b6; /* A deep purple */
    --secondary-color: #a78bfa; /* A lighter purple */
    --accent-color: #dc2626; /* Red for accents, similar to your logo */
    --text-color: #333;
    --light-text-color: #f8fafc;
    --bg-light: #f8fafc;
    --bg-dark: #1f2937;
    --bg-gradient-start: #2a3a83; /* Darker blue for gradient */
    --bg-gradient-end: #0e1a47;   /* Even darker blue for gradient */
    --border-radius: 8px;
    --font-family: 'Arial', sans-serif; /* Or choose a custom font */
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

section {
    padding: 60px 0;
    text-align: center;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Header/Navbar */
.navbar {
    background-color: var(--bg-dark);
    color: var(--light-text-color);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px; /* Adjust as needed */
    width: auto;
    border-radius: 50%; /* If your logo is circular */
}

.logo h1 {
    font-size: 1.8em;
    color: var(--light-text-color);
}

.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: var(--light-text-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.hamburger {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 2em;
    color: var(--light-text-color);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/background-game.jpg') no-repeat center center/cover;
    color: var(--light-text-color);
    padding: 80px 0;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.hero-text h2 {
    font-size: 3.5em;
    color: var(--light-text-color);
    margin-bottom: 20px;
}

.hero-text h2::after {
    background-color: var(--accent-color);
}

.hero-text p {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.btn-download {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-text-color);
    padding: 15px 30px;
    border-radius: var(--border-radius);
    margin-top: 30px;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-download:hover {
    background-color: #e04444; /* Slightly darker red */
    transform: translateY(-2px);
}

.hero-image img {
    max-width: 300px; /* Adjust as needed */
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* About Section */
.about-section {
    background-color: var(--bg-light);
    color: var(--text-color);
}

.about-section .tagline {
    font-size: 1.1em;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-item {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.about-item:last-child {
    margin-bottom: 0;
}

.icon-circle {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5em;
    margin: 0 auto 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.about-item h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* New Section: Key Statistics */
.stats-section {
    background: linear-gradient(to bottom, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--light-text-color);
    padding: 80px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 40px; /* Space between items */
}

.stats-section .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px; /* Space between stat items */
}

.stat-item {
    flex-basis: 200px; /* Adjust width as needed */
    flex-grow: 1;
    text-align: center;
}

.stat-icon-circle {
    background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--light-text-color);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3em;
    margin: 0 auto 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--light-text-color);
}

.stat-item p {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
}

/* New Section: App Features */
.features-app-section {
    background-color: var(--bg-dark);
    color: var(--light-text-color);
    padding: 80px 0;
    text-align: center;
}

.features-app-section h2 {
    color: var(--light-text-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
    text-align: left; /* Align text within features */
}

.feature-item {
    display: flex;
    align-items: flex-start; /* Align icon and text at top */
    gap: 20px;
    background-color: rgba(255, 255, 255, 0.08); /* Slightly visible card */
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2.5em;
    color: var(--secondary-color); /* Highlight icon color */
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.feature-text h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--light-text-color);
}

.feature-text p {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.7);
}


/* Screenshots Section (Slider) */
.screenshot-section {
    background-color: var(--bg-light); /* Or white as in your image */
    color: var(--text-color);
    padding-bottom: 80px;
}

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

.screenshot-slider {
    position: relative;
    max-width: 400px; /* Adjust max width for phone mockup */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px; /* Rounded corners for the phone frame */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background-color: #fff; /* Background inside the phone frame */
    padding: 20px; /* Padding to mimic phone bezel */
    border: 1px solid #ddd;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.screenshot-slide {
    min-width: 100%; /* Each slide takes full width */
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.screenshot-slide img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px; /* Rounded corners for the actual screenshot */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
}

/* New Section: Download */
.download-section {
    background: linear-gradient(to top, var(--bg-gradient-start), var(--bg-gradient-end)); /* Reverse gradient */
    color: var(--light-text-color);
    padding: 80px 0;
}

.download-section h2 {
    color: var(--light-text-color);
    margin-bottom: 20px;
}

.download-section p {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
}

.btn-app-download {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-text-color);
    padding: 20px 40px;
    border-radius: var(--border-radius);
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1.2;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.btn-app-download:hover {
    background-color: #e04444;
    transform: translateY(-3px);
}

.btn-app-download .fab {
    margin-right: 15px;
    font-size: 1.8em;
    vertical-align: middle;
}

/* Footer (Updated for social icons) */
footer {
    background-color: var(--bg-dark);
    color: var(--light-text-color);
    text-align: center;
    padding: 30px 0; /* Increased padding */
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.social-icons {
    margin-bottom: 10px;
}

.social-icons a {
    color: var(--light-text-color);
    font-size: 2em;
    margin: 0 10px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-icons a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}


/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .hamburger {
        display: block; /* Show hamburger on mobile */
    }

    .nav-menu {
        display: none; /* Hide nav menu by default on mobile */
        width: 100%;
        flex-basis: 100%;
        order: 3; /* Push to new line */
        margin-top: 15px;
    }

    .nav-menu.active {
        display: block; /* Show when active */
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero-content {
        flex-direction: column;
        gap: 30px;
    }

    .hero-text h2 {
        font-size: 2.5em;
    }

    .hero-text p {
        font-size: 1em;
    }

    .about-item {
        padding: 15px;
    }

    .about-item h3 {
        font-size: 1.5em;
    }

    .icon-circle {
        width: 60px;
        height: 60px;
        font-size: 2em;
    }

    .stats-section .container {
        flex-direction: column;
    }

    .stat-item {
        flex-basis: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        text-align: center; /* Center align text on mobile */
    }

    .feature-item {
        flex-direction: column; /* Stack icon and text */
        align-items: center;
    }

    .feature-text {
        text-align: center;
    }

    .btn-app-download {
        font-size: 1.2em;
        padding: 15px 30px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5em;
    }

    .hero-text h2 {
        font-size: 2em;
    }

    h2 {
        font-size: 2em;
    }

    .btn-download {
        font-size: 1em;
        padding: 12px 25px;
    }

    .stat-number {
        font-size: 2.5em;
    }

    .stat-icon-circle {
        width: 70px;
        height: 70px;
        font-size: 2.5em;
    }

    .screenshot-slider {
        max-width: 300px; /* Even smaller for very small screens */
        padding: 10px;
    }
}
