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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
}

/* Header Styles */
.navbar {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #4a90e2;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #4a90e2;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: "🎮";
    font-size: 1.5rem;
}

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

.nav-menu a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.nav-menu a:hover {
    color: #4a90e2;
    background: rgba(74, 144, 226, 0.1);
}

/* Hero Section */
.hero {
    /* taller banner: increase top and bottom padding for a larger hero area */
    padding: 200px 0 120px;
    text-align: center;
    background: linear-gradient(rgba(15, 15, 35, 0.8), rgba(26, 26, 46, 0.8));
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* layered background: subtle gradient overlay above the image for readability */
    background:
        linear-gradient(rgba(10,12,20,0.45), rgba(20,22,36,0.45)),
        url('../img/hero.jpg') center/cover no-repeat;
    z-index: -1;
    pointer-events: none; /* allow clicks through to hero content */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #4a90e2, #7cb3f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #b0b0b0;
}

.hero-cta {
    display: inline-block;
    background: linear-gradient(45deg, #4a90e2, #357abd);
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(74, 144, 226, 0.4);
}

/* About Section */
.about {
    padding: 80px 0;
    background: rgba(26, 26, 46, 0.5);
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #4a90e2;
    font-weight: 700;
}

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

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.about-text p {
    font-size: 1.1rem;
    color: #b0b0b0;
    margin-bottom: 1.5rem;
}

.about-image {
    text-align: center;
    padding: 2rem;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 20px;
    border: 2px solid rgba(74, 144, 226, 0.2);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

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

.feature-card {
    background: rgba(74, 144, 226, 0.1);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(74, 144, 226, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: #4a90e2;
    box-shadow: 0 15px 35px rgba(74, 144, 226, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #4a90e2;
}

.feature-card p {
    color: #b0b0b0;
    line-height: 1.6;
}

/* Games Section */
.games {
    padding: 80px 0;
    background: rgba(15, 15, 35, 0.8);
}

.games-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    justify-items: center; /* center the game wrappers */
}

/* Responsive game wrapper: max-width 900px and 16:9 aspect ratio */
.game-wrap {
    width: 100%;
    max-width: 900px;
    background: rgba(26, 26, 46, 0.8);
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid #4a90e2;
    position: relative;
    aspect-ratio: 16 / 9; /* modern browsers */
}

/* Fallback for browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 16/9) {
    .game-wrap {
        height: 0;
        padding-top: 56.25%; /* 16:9 */
    }
    .game-wrap iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

.game-wrap iframe.game-frame {
    width: 100%;
    height: 100%;
    display: block;
    border: 0; /* border moved to wrapper */
}

/* Reviews Section */
.reviews {
    padding: 80px 0;
    background: rgba(22, 33, 62, 0.5);
}

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

.review-card {
    background: rgba(74, 144, 226, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #4a90e2;
}

.review-card p {
    font-style: italic;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.reviewer {
    font-weight: 600;
    color: #4a90e2;
}

.stars {
    color: #ffd700;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: #0f0f23;
    padding: 60px 0 20px;
    border-top: 3px solid #4a90e2;
}

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

.footer-section h3 {
    color: #4a90e2;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section p, .footer-section li {
    color: #b0b0b0;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #4a90e2;
}

.disclaimer-card {
    background: rgba(74, 144, 226, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid rgba(74, 144, 226, 0.3);
    margin-top: 1rem;
}

.disclaimer-card h4 {
    color: #4a90e2;
    margin-bottom: 0.5rem;
}

.disclaimer-card p {
    font-size: 0.9rem;
    color: #d0d0d0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(74, 144, 226, 0.2);
    color: #888;
}

/* Modal Styles */
.disclaimer-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    margin: 10% auto;
    padding: 2rem;
    border: 2px solid #4a90e2;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.modal-content h2 {
    color: #4a90e2;
    margin-bottom: 1rem;
}

.modal-content p {
    margin-bottom: 1.5rem;
    color: #e0e0e0;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-accept, .btn-decline {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-accept {
    background: linear-gradient(45deg, #4a90e2, #357abd);
    color: white;
}

.btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
}

.btn-decline {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-decline:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(74, 144, 226, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(74, 144, 226, 0.2);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4a90e2;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
}

.submit-btn {
    background: linear-gradient(45deg, #4a90e2, #357abd);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
}

/* Content Pages */
.content-page {
    padding: 120px 0 80px;
    min-height: calc(100vh - 200px);
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-container h1 {
    color: #4a90e2;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.content-container h2 {
    color: #e0e0e0;
    margin: 2rem 0 1rem;
}

.content-container p {
    margin-bottom: 1rem;
    color: #b0b0b0;
    line-height: 1.8;
}

.content-container ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.content-container li {
    color: #b0b0b0;
    margin-bottom: 0.5rem;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #4a90e2;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 15, 35, 0.98);
        flex-direction: column;
        padding: 1rem 0;
        border-top: 2px solid #4a90e2;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 1rem 2rem;
        border-radius: 0;
    }

    .hero {
        padding: 140px 0 100px; /* slightly reduced on tablet-sized devices */
    }

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

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

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .games-container {
        padding: 0 1rem;
    }

    .game-frame {
        height: 400px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 20% auto;
        width: 95%;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .nav-container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 80px; /* mobile: keep banner roomy but not excessive */
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .game-frame {
        height: 300px;
    }
}