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

:root {
    --primary-red: #d32f2f;
    --dark-red: #b71c1c;
    --light-red: #ef5350;
    --text-dark: #212121;
    --text-light: #757575;
    --bg-light: #fafafa;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

/* Navigation */
.navbar {
    background-color: rgb(248, 56, 33);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s ease;
    line-height: 0;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.logo:hover {
    opacity: 0.9;
}

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

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
    position: relative;
    letter-spacing: 0.3px;
    opacity: 0.95;
}

.nav-menu a:hover,
.nav-menu a.active {
    opacity: 1;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--white);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: rgb(248, 56, 33);
    color: var(--white);
    padding: 150px 0 180px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 6.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -3px;
    line-height: 1;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 3rem;
    font-weight: 300;
    opacity: 0.98;
    line-height: 1.3;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.8;
}

/* Games Section */
.games-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    font-weight: 700;
}

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

.game-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
}

.game-card.animated {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(211, 47, 47, 0.2);
}

.game-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #f5f5f5;
}

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

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

.game-info {
    padding: 1.5rem;
    text-align: center;
}

.game-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

/* About Us Section */
.about-section {
    padding: 120px 0;
    background-color: var(--white);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.about-title-wrapper {
    position: sticky;
    top: 120px;
    padding-right: 2rem;
}

.about-title {
    font-size: 5rem;
    font-weight: 900;
    color: rgb(248, 56, 33);
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1;
    margin: 0 0 1.5rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.about-title-line {
    width: 60px;
    height: 4px;
    background-color: rgb(248, 56, 33);
    margin-top: 1rem;
}

.about-text-wrapper {
    padding-top: 0.5rem;
}

.about-text {
    font-size: 1.4rem;
    line-height: 2;
    color: var(--text-dark);
    text-align: left;
    font-weight: 400;
    margin: 0 0 1.5rem 0;
}

.about-text:last-child {
    margin-bottom: 0;
}

.about-text strong {
    color: rgb(248, 56, 33);
    font-weight: 600;
}

/* Support Section */
.support-section {
    padding: 100px 0;
    background-color: var(--white);
}

.support-content {
    max-width: 900px;
    margin: 0 auto;
}

.support-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 2rem;
}

.support-contact {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 12px;
}

.support-contact p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.support-contact a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.support-contact a:hover {
    color: var(--dark-red);
    text-decoration: underline;
}

.support-faq {
    margin-top: 3rem;
}

.support-faq h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-red);
}

.faq-item h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.faq-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

/* Game Detail Page Styles */
.game-detail {
    padding: 0 0 80px;
    background-color: var(--white);
}

.game-detail-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.game-detail-main {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 0;
    margin-bottom: 3rem;
}

.game-main-image-full {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 0;
    margin-bottom: 3rem;
    overflow: hidden;
    background-color: #000;
}

.game-main-image-full img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.game-main-image-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.game-main-image {
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
    overflow: hidden;
    margin: 0 auto;
}

.game-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.game-description-section {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.download-badge {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
}

.download-badge:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.download-badge img {
    height: 50px;
    width: auto;
    display: block;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background-color: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
}

.download-btn img {
    width: 24px;
    height: 24px;
}

.game-download-info {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
}

.game-description {
    margin-top: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.game-screenshots {
    margin-top: 3rem;
}

.screenshots-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-weight: 700;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.screenshot-thumb {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.screenshot-thumb:hover {
    transform: scale(1.05);
}

.screenshot-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 80px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

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

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgb(248, 56, 33);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        display: none;
        gap: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

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

    .nav-menu li {
        padding: 0.5rem 0;
    }

    .hero {
        padding: 100px 0 120px;
    }

    .hero-title {
        font-size: 4rem;
        letter-spacing: -2px;
    }

    .hero-subtitle {
        font-size: 2rem;
        letter-spacing: 0.5px;
    }

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

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

    .about-title-wrapper {
        position: static;
        padding-right: 0;
        text-align: center;
    }

    .about-title {
        font-size: 3rem;
        letter-spacing: 3px;
        margin-bottom: 1rem;
    }

    .about-title-line {
        margin: 1rem auto 0;
    }

    .about-text-wrapper {
        padding-top: 0;
    }

    .about-text {
        font-size: 1.2rem;
        text-align: left;
        line-height: 1.8;
    }

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

    .support-text {
        font-size: 1.1rem;
    }

    .support-contact {
        padding: 1.5rem;
    }

    .support-faq h3 {
        font-size: 1.5rem;
    }

    .faq-item {
        padding: 1rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .game-main-image-full {
        margin-bottom: 2rem;
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
        left: 0;
        right: 0;
    }

    .game-download-info {
        padding: 0 1rem;
    }

    .game-description {
        margin-top: 1.5rem;
        font-size: 1rem;
    }

    .download-buttons {
        justify-content: center;
    }

    .game-detail-title {
        font-size: 2rem;
    }

    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .download-badge img {
        height: 45px;
    }

    .download-btn {
        justify-content: center;
    }
}

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

    .hero-title {
        font-size: 3rem;
        letter-spacing: -1.5px;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.6rem;
        letter-spacing: 0.3px;
    }

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

    .logo img {
        height: 35px;
    }

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

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

    .about-section {
        padding: 50px 0;
    }

    .about-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .about-text {
        font-size: 1.1rem;
        line-height: 1.7;
    }

    .support-section {
        padding: 50px 0;
    }

    .support-text {
        font-size: 1rem;
    }

    .support-contact {
        padding: 1rem;
    }

    .support-contact p {
        font-size: 1rem;
    }

    .support-faq h3 {
        font-size: 1.3rem;
    }

    .faq-item {
        padding: 1rem;
    }

    .faq-item h4 {
        font-size: 1.1rem;
    }

    .faq-item p {
        font-size: 0.9rem;
    }

    .game-main-image-full {
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
        left: 0;
        right: 0;
    }

    .game-detail-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .game-download-info {
        padding-top: 1.5rem;
    }
}
