/* --- Global Styles & Variables --- */
:root {
    --primary-color: #4A6CFF;
    --secondary-color: #8A4FFF;
    --accent-color: #F72585;
    --dark-text: #333;
    --light-text: #666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --footer-bg: #343A40;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
}

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

h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; color: var(--white); }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.25rem; }

p {
    color: var(--light-text);
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* --- Header --- */
header {
    background: transparent;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 20px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-box {
    background: var(--white);
    color: var(--primary-color);
    padding: 5px 8px;
    border-radius: 5px;
    margin-right: 10px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    border-bottom-color: var(--white);
}

.language-selector {
    color: var(--white);
    border: 1px solid var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 180px 0 200px;
    position: relative;
    overflow: hidden;
}

/* The Wavy Shape */
.hero::after {
    content: '';
    position: absolute;
    bottom: -1px; /* to prevent thin line gaps */
    left: 0;
    width: 100%;
    height: 150px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,192L80,170.7C160,149,320,107,480,112C640,117,800,171,960,197.3C1120,224,1280,224,1360,224L1440,224L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
}


.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 50%;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin: 20px 0 30px;
}

.hero-image img {
    max-width: 350px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}


/* --- Features Section --- */
.features-section {
    padding: 80px 0;
    background: var(--white);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}
.section-intro h2 { color: var(--dark-text); }


.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    text-align: center;
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.icon-bg {
    width: 70px;
    height: 70px;
    background: #E8EFFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* --- Featured Game Section --- */
.featured-game {
    padding: 80px 0;
}

.featured-game-container {
    display: flex;
    align-items: center;
    gap: 50px;
}
.featured-game-text { flex: 1; }
.featured-game-text h2 { line-height: 1.3; }
.featured-game-text strong { color: var(--primary-color); }

.featured-game-image { flex: 1; }
.featured-game-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* --- Benefits Section --- */
.benefits-section {
    padding-bottom: 80px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    background: var(--white);
    text-align: center;
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}

.benefit-card i {
    font-size: 2.5rem;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

/* --- Popular Games Section --- */
.popular-games {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.game-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transition: transform 0.3s;
}
.game-card:hover { transform: translateY(-5px); }

.game-card-image { position: relative; }
.game-card-image img { width: 100%; display: block; }
.date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #FFA900;
    color: var(--white);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    line-height: 1;
}

.game-card-content { padding: 20px; }
.game-card-content h3 { display: flex; justify-content: space-between; align-items: center; }
.price-tag {
    color: var(--primary-color);
    font-weight: 700;
}
.game-card-content p { font-size: 0.9rem; }

/* --- Contact Section --- */
.contact-section { padding: 80px 0; }
.contact-subtitle { text-align: center; margin-top: -2.5rem; margin-bottom: 2.5rem; }
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}
.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: var(--bg-light);
    font-family: 'Poppins', sans-serif;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}
.contact-form textarea { resize: vertical; margin-bottom: 20px; }
.contact-form button { width: 100%; }

/* --- Footer --- */
footer {
    background: var(--footer-bg);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
}
footer p { color: rgba(255,255,255,0.7); margin: 0; }

/* --- Scroll to Top Button --- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
}
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-text { max-width: 100%; margin-bottom: 40px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .benefits-grid, .games-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-game-container { flex-direction: column; }
    nav ul { display: none; } /* Simple hide for now, could be a hamburger menu */
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .features-grid, .benefits-grid, .games-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; }
}
