/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@700;900&family=Poppins:wght@400;600&display=swap');

/* === CSS VARIABLES === */
:root {
    --primary-color: #0052D4;  /* Blue */
    --secondary-color: #FF4B4B; /* Red */
    --dark-color: #1A202C;
    --light-color: #F7FAFC;
    --white-color: #FFFFFF;
    --text-color: #4A5568;
    --header-font: 'Exo 2', sans-serif;
    --body-font: 'Poppins', sans-serif;
    --border-radius: 8px;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
    --transition: all 0.3s ease-in-out;
}

/* === BASE & RESET === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.7;
    background-color: var(--white-color);
    color: var(--text-color);
    font-size: 16px;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

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

h1, h2, h3 {
    font-family: var(--header-font);
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-transform: uppercase;
}

h3 {
    font-size: 1.25rem;
}

/* === UTILITY & LAYOUT === */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-color);
}

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

.section-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* === HEADER & NAVIGATION === */
.main-header {
    background-color: var(--white-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

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

.logo-link {
    transition: transform 0.3s ease;
    display: inline-block; /* For transform to work properly */
}

.logo-link:hover {
    transform: scale(1.05);
}

/* Reset H1 styles within the logo link */
.logo-link h1 {
    margin: 0;
    font-size: 0; /* Hide text if image fails, as the image is the visual element */
    line-height: 0; /* Prevents layout shifts */
}

.logo-image {
    height: 45px; /* Control logo size */
    width: auto;
    vertical-align: middle; /* Aligns logo better with nav items */
}

/* Utility class to hide content visually but keep it accessible */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1rem;
    padding-bottom: 5px;
    position: relative;
    transition: var(--transition);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.main-nav a:hover::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
}

/* === HERO SECTION === */
.hero-section {
    background: linear-gradient(to right, rgba(0, 82, 212, 0.8), rgba(67, 100, 247, 0.8)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: var(--white-color);
    padding: 100px 0;
    text-align: center;
}

.hero-section h2 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white-color);
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === BUTTONS === */
.cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(255, 75, 75, 0.4);
}

.cta-button:hover {
    background: var(--white-color);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 75, 75, 0.5);
}

/* === FEATURES / CARD === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.card {
    background: var(--white-color);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    margin: 0 auto 1.5rem auto;
    width: 70px;
    height: 70px;
}

.card-icon img {
    width: 100%;
    height: 100%;
}

/* === GAME EMBED SECTION === */
#game-embed {
    text-align: center;
}

.game-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 2rem auto 0;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

#game-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    visibility: hidden; /* Hide until loaded */
}

#game-frame.loaded {
    visibility: visible;
}

.game-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 8px solid var(--light-color);
    border-top: 8px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.game-error-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white-color);
    padding: 2rem;
    text-align: center;
}

.fullscreen-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 5px;
    color: white;
    padding: 8px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    line-height: 0; /* To center the SVG properly */
}

.fullscreen-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* === FAQ SECTION === */
.faq-container {
    max-width: 768px;
    margin: 3rem auto 0 auto;
}

.faq-item {
    background-color: var(--white-color);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 1.5rem;
    font-family: var(--header-font);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* === CTA SECTION === */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 60px 0;
}

.cta-section h2 {
    color: var(--white-color);
}

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

.cta-button.large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}

/* === FOOTER === */
.main-footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 3rem 0;
}

/* === RESPONSIVE DESIGN === */
@media (min-width: 768px) {
    .section-layout {
        grid-template-columns: 1fr 1fr;
    }

    .section-layout.reverse {
        grid-template-columns: 1fr 1fr;
    }

    .section-layout.reverse .section-text {
        order: 2;
    }

    .section-layout.reverse .section-image {
        order: 1;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-section h2 {
        font-size: 2.5rem;
    }

    .content-section {
        padding: 60px 0;
    }

    .mobile-nav-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1001;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    }
    
    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }

    .main-nav ul li {
        margin: 1rem 0;
    }
}

.step-list {
    list-style-type: decimal;
    padding-left: 20px;
    text-align: left;
}
.step-list li {
    margin-bottom: 1rem;
}

.features-grid.six-items {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
@media (min-width: 992px) {
    .features-grid.six-items {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tech-details {
    max-width: 768px;
    margin: 2rem auto 0 auto;
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}
.tech-details p {
    margin-bottom: 0.5rem;
}

.subsection-title {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-align: left;
}

.strategy-list {
    list-style-position: inside;
    text-align: left;
    padding-left: 0;
}
.strategy-list li {
    margin-bottom: 1rem;
}

.review-card {
    text-align: left;
}
.review-stars {
    color: #FFC107; /* A nice gold color for stars */
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.review-text {
    font-style: italic;
    margin-bottom: 1rem;
}
.review-author {
    font-weight: 600;
    text-align: right;
    color: var(--primary-color);
} 