/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f8f8;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

section {
    padding: 60px 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary {
    background-color: #e87f3a;
    color: white;
    border: none;
}

.primary:hover {
    background-color: #d86a25;
}

.secondary {
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
}

.secondary:hover {
    background-color: #f5f5f5;
}

.outline {
    background-color: transparent;
    color: #333;
    border: 1px solid #333;
}

.outline:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 20px;
    z-index: 1000;
    max-width: 400px;
    width: 90%;
    display: none;
}

.cookie-popup.active {
    display: block;
}

.cookie-content p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-buttons button {
    flex: 1;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
}

#accept-cookies {
    background-color: #e87f3a;
    color: white;
    border: none;
}

#decline-cookies {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

/* Header */
header {
    background-color: #5c3a1d;
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav ul li a {
    font-weight: 500;
}

nav ul li a:hover {
    color: #e87f3a;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    background-color: #5c3a1d;
    color: white;
    padding: 60px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-image, .hero-text {
    flex: 1;
}

.hero-image img {
    border-radius: 12px;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.hero-text .cta-button {
    margin-top: 30px;
}

/* Reviews Section (Top) */
.reviews-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.reviews-section .reviews-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.reviews-section .reviews-text, 
.reviews-section .reviews-image {
    flex: 1;
}

.reviews-section .reviews-image img {
    border-radius: 12px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.reviews-section .reviews-text h2 {
    margin-bottom: 20px;
}

.reviews-section .reviews-text p {
    margin-bottom: 30px;
}

.reviews-section .cta-button {
    margin-top: 20px;
}

/* Games Section */
.games {
    background-color: #5c3a1d;
    color: white;
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.section-header p {
    color: #f0f0f0;
    font-size: 1.1rem;
}

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

.game-card {
    background-color: white;
    color: #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding-bottom: 20px;
}

.game-image {
    height: 200px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card h3 {
    padding: 15px 20px 0;
    margin-bottom: 10px;
}

.rating {
    padding: 0 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stars {
    color: #e87f3a;
}

.rating-text {
    font-size: 0.9rem;
    color: #666;
}

.game-card .btn {
    margin: 0 20px;
}

/* Reviews Section */
.reviews {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.reviews-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.reviews-text, .reviews-image {
    flex: 1;
}

.reviews-image img {
    border-radius: 12px;
    width: 100%;
    height: auto;
}

/* Testimonials Section */
.testimonials {
    background-color: #fff;
    padding: 80px 0;
}

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

.testimonial-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.testimonial-card .stars {
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.author-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
    font-style: normal;
}

/* About Section */
.about {
    background-color: #5c3a1d;
    color: white;
    padding: 80px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text, .about-image {
    flex: 1;
}

.about-image img {
    border-radius: 12px;
    width: 100%;
    height: auto;
}

.about-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Signup Section */
.signup {
    background-color: #5c3a1d;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.signup h2 {
    margin-bottom: 40px;
}

form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

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

input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

button[type="submit"] {
    width: 100%;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: #f8f8f8;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo h2 {
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #666;
    font-size: 0.9rem;
}

.footer-copy {
    color: #999;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e87f3a;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #d86a25;
}

.social-link img {
    width: 20px;
    height: 20px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content, 
    .reviews-content, 
    .reviews-section .reviews-content,
    .about-content {
        flex-direction: column;
    }
    
    .hero-image, 
    .hero-text, 
    .reviews-text, 
    .reviews-image,
    .reviews-section .reviews-text,
    .reviews-section .reviews-image, 
    .about-text, 
    .about-image {
        flex: none;
        width: 100%;
    }
    
    .hero-text {
        order: 1;
    }
    
    .hero-image {
        order: 2;
        margin-top: 30px;
    }
    
    .about-image {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
    }
    
    nav {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 20px;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .games-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .about-buttons {
        flex-direction: column;
    }
    
    form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 0;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .game-card,
    .testimonial-card {
        width: 100%;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

html {
    scroll-behavior: smooth;
}