/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Lato:wght@300;400;700;900&display=swap');

/* CSS Variables */
:root {
    --primary-color: #1abc9c;
    --secondary-color: #3498db;
    --accent-color: #e67e22;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --white: #ffffff;
    --text-color: #34495e;
    --border-color: #bdc3c7;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease-in-out;
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
}

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

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

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

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--box-shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    font-size: 30px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-item a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-item a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.nav-item a.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: var(--dark-color);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    margin-top: 70px;
    padding: 120px 0;
    /* use bg.webp as the hero background */
    background-image: url('bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* fallback color in case image fails */
    background-color: var(--dark-color);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* subtle overlay to dull the background so text pops */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
    /* mild backdrop filter to slightly soften and desaturate */
    -webkit-backdrop-filter: brightness(0.95) saturate(0.95);
    backdrop-filter: brightness(0.95) saturate(0.95);
}

.hero-section .container {
    position: relative;
    z-index: 2; /* put content above the overlay */
}

.hero-title {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--white);
    /* stronger emphasis */
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.hero-img-container {
    max-width: 800px;
    height: 450px;
    margin: 40px auto 0;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius);
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-placeholder {
    font-size: 90px;
    opacity: 0.25;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 15px 40px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: var(--box-shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-lg);
}

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

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

/* Disclaimer Section */
.disclaimer-section {
    padding: 70px 0;
    background: var(--white);
}

.disclaimer-content {
    max-width: 950px;
    margin: 0 auto;
    padding: 45px;
    background: linear-gradient(to right, #fff9e6, #ffffff);
    border: 4px solid var(--warning-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.disclaimer-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.disclaimer-content h3 {
    font-size: 30px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.disclaimer-content p {
    font-size: 17px;
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.8;
}

/* Game Section */
.game-section {
    padding: 70px 0;
    background: var(--light-color);
}

.section-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 60px;
    color: var(--dark-color);
}

.game-item {
    max-width: 900px;
    margin: 0 auto 50px;
    background: var(--white);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

.game-title {
    text-align: center;
    font-size: 26px;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.game-iframe {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
    border: none;
    border-radius: var(--border-radius);
    background: var(--light-color);
}

/* About Section */
.about-section {
    padding: 90px 0;
    /* use about.jpg as background */
    background-image: url('about.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* dulled overlay so content reads clearly */
.about-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
    -webkit-backdrop-filter: brightness(0.95) saturate(0.95);
    backdrop-filter: brightness(0.95) saturate(0.95);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2; /* place above overlay */
    color: var(--white);
}

.about-content h2 {
    font-size: 40px;
    margin-bottom: 35px;
    color: var(--white);
    text-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

.about-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.95);
    margin-bottom: 25px;
    line-height: 1.9;
    text-shadow: 0 4px 18px rgba(0,0,0,0.45);
}

.about-img-container {
    max-width: 650px;
    height: 380px;
    margin: 50px auto 0;
    background: var(--light-color);
    border-radius: var(--border-radius);
    border: 4px solid var(--primary-color);
    display: block;
    overflow: hidden; /* ensure rounded corners crop the image */
    box-shadow: var(--box-shadow);
}

.about-placeholder {
    font-size: 80px;
    color: #ccc;
}

/* About image styling */
.about-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* crop to fill container while preserving aspect */
}

/* Features Section */
.features-section {
    padding: 70px 0;
    background: var(--light-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-item p {
    color: var(--text-color);
    line-height: 1.8;
}

/* Reviews Section */
.reviews-section {
    padding: 70px 0;
    background: var(--white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
}

.review-item {
    background: linear-gradient(135deg, var(--light-color), var(--white));
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.review-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.review-rating {
    color: var(--warning-color);
    font-size: 22px;
    margin-bottom: 15px;
}

.review-comment {
    color: var(--text-color);
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.8;
}

.review-author {
    font-weight: 700;
    color: var(--dark-color);
}

/* Contact Page */
.contact-section {
    margin-top: 70px;
    padding: 100px 0;
    background: var(--light-color);
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 60px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-container h1 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 20px;
}

.contact-intro {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 40px;
}

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

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-color), var(--text-color));
    color: var(--white);
    padding: 70px 0 25px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.footer-block h4 {
    color: var(--white);
    font-size: 22px;
    margin-bottom: 20px;
}

.footer-block p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.9;
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 14px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

.footer-copyright {
    text-align: center;
    padding-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
}

/* Popup Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
    max-width: 550px;
    width: 90%;
    text-align: center;
    animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-icon {
    font-size: 65px;
    margin-bottom: 20px;
}

.modal-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.modal-content p {
    color: var(--text-color);
    margin-bottom: 35px;
    line-height: 1.8;
}

.modal-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    z-index: 999;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

/* Content Pages */
.content-section {
    margin-top: 70px;
    padding: 100px 0;
    background: var(--light-color);
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 60px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.content-wrapper h1 {
    font-size: 42px;
    margin-bottom: 35px;
    text-align: center;
}

.content-wrapper h2 {
    font-size: 28px;
    margin: 45px 0 25px;
    color: var(--dark-color);
}

.content-wrapper p {
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.9;
}

.content-wrapper ul {
    margin-bottom: 20px;
    margin-left: 35px;
    color: var(--text-color);
}

.content-wrapper ul li {
    margin-bottom: 12px;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 992px) {
    .features-grid,
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--box-shadow);
        gap: 0;
    }

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

    .nav-item a {
        padding: 15px;
        text-align: center;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

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

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

    .contact-container,
    .content-wrapper {
        padding: 40px 25px;
    }

    /* make about image slightly shorter on narrower screens */
    .about-img-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 70px 0;
    }

    .hero-title {
        font-size: 30px;
    }

    .modal-content {
        padding: 35px 25px;
    }

    .button {
        padding: 12px 30px;
    }

    .about-img-container {
        height: 220px;
    }
}
