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

:root {
    --primary-color: #57e356; /* Green */
    --primary-dark: #3ab639;
    --secondary-color: #dc3545; /* Red */
    --background-dark: #0d1f3c; /* Dark Blue */
    --background-darker: #0a172e; /* Darker Blue */
    --text-color: #ffffff; /* White */
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--background-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin: 2rem 0;
}

p {
    margin-bottom: 1rem;
}

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

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

section {
    padding: 4rem 0;
}

.hidden {
    display: none !important;
}

.black-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    text-transform: uppercase;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background-color: #c82333;
    color: var(--text-color);
}

.btn-success {
    background-color: var(--primary-color);
    color: #000;
}

.btn-success:hover {
    background-color: var(--primary-dark);
}

.btn-danger {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--text-color);
    color: var(--text-color);
}

.btn-outline:hover {
    background-color: var(--text-color);
    color: var(--background-dark);
}

/* Popups */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup {
    background-color: var(--background-dark);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    max-width: 90%;
    width: 400px;
}

.age-popup {
    border: 3px solid var(--secondary-color);
}

.popup h2 {
    margin-top: 0;
}

.popup p {
    margin-bottom: 1.5rem;
}

.popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popup-buttons .btn {
    width: 100%;
}

.age-icon {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem;
}

.age-icon img {
    width: 40px;
    height: 40px;
}

/* Header */
.site-header {
    background-color: var(--background-darker);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

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

.logo img {
    height: 30px;
    margin-right: 10px;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 1.5rem;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.9rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100%;
    background-color: var(--background-darker);
    z-index: 200;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
}

.mobile-menu nav {
    padding: 1rem;
}

.mobile-menu ul li {
    margin: 1rem 0;
}

.mobile-menu a {
    display: block;
    padding: 0.5rem 0;
    font-size: 1.2rem;
}

/* Age Disclaimer */
.age-disclaimer {
    background-color: #000;
    padding: 0.7rem 0;
}

.disclaimer-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.disclaimer-content .age-icon {
    margin: 0 10px 0 0;
    width: 40px;
    height: 40px;
}

.disclaimer-content .age-icon img {
    width: 25px;
    height: 25px;
}

.disclaimer-content p {
    margin: 0;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 6rem 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

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

/* Features Section */
.why-choose-us {
    background-color: var(--background-darker);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: var(--background-dark);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--background-darker);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
}

.feature-icon img {
    width: 40px;
    height: 40px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

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

.game-card {
    background-color: var(--background-darker);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s;
}

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

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

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

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-card h3 {
    padding: 1rem;
    text-align: center;
    font-size: 1.3rem;
}

.game-card .btn {
    display: block;
    margin: 0;
    border-radius: 0;
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.review-card {
    background-color: var(--background-darker);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.stars {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-card h3 {
    font-size: 1.2rem;
}

.review-card p {
    font-style: italic;
}

/* Contact Section */
.contact-section {
    background-color: var(--background-darker);
    text-align: center;
}

.contact-intro, .contact-sub {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--background-dark);
    border: none;
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    margin-top: 1rem;
}

/* Footer */
.site-footer {
    background-color: var(--background-darker);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-disclaimer {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-disclaimer .age-icon {
    margin: 0 20px 0 0;
}

.disclaimer-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.disclaimer-text p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.footer-nav li {
    margin: 0.5rem 1rem;
}

.footer-nav a {
    font-size: 0.8rem;
    opacity: 0.8;
}

.responsible-gaming {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.responsible-gaming img {
    height: 40px;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Media Queries */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .features-grid,
    .games-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-disclaimer {
        flex-direction: column;
    }
    
    .footer-disclaimer .age-icon {
        margin: 0 0 1rem 0;
    }
    
    .responsible-gaming {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .feature-card,
    .review-card {
        padding: 1.5rem;
    }
}

html {
    scroll-behavior: smooth;
}

.game-section {
    text-align: center;
}

.game-section iframe {
    width: 100%;
    height: 500px;
    border: none;
}

@media(max-width: 768px) {
    .game-section iframe {
        height: 700px;
    }
}