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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

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

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

header h1 {
    color: #1976D2;
    font-size: 24px;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

nav a:hover {
    color: #1976D2;
}

nav a.active {
    color: #1976D2;
    border-bottom: 2px solid #1976D2;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-download {
    display: inline-block;
    background: #fff;
    color: #1976D2;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Features */
.features {
    padding: 80px 20px;
    background: #fff;
}

.features h3 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #1976D2;
}

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

.feature-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-card h4 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
}

/* About */
.about {
    padding: 80px 20px;
    background: #f8f9fa;
}

.about h3 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #1976D2;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item strong {
    color: #1976D2;
    font-size: 14px;
    text-transform: uppercase;
}

.info-item span {
    font-size: 20px;
    color: #333;
}

/* Contact */
.contact {
    padding: 80px 20px;
    background: #fff;
    text-align: center;
}

.contact h3 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #1976D2;
}

.contact p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

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

.btn {
    display: inline-block;
    background: #1976D2;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.btn:hover {
    background: #1565C0;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

footer .container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

/* New Homepage Styles */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Main Background */
.main-bg {
    background:
        url('background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: calc(100vh - 170px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 60px 20px;
    position: relative;
}

.content-overlay {
    width: 100%;
    max-width: 1200px;
    margin-left: 0;
    padding-left: 40px;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
    display: block;
}

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

/* Content Card */
.content-card {
    background: transparent;
    padding: 80px;
    border-radius: 20px;
    box-shadow: none;
    text-align: left;
    max-width: 700px;
}

.content-card h2 {
    font-size: 64px;
    color: white;
    margin-bottom: 30px;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.content-card h3 {
    font-size: 48px;
    color: white;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.content-card .subtitle {
    font-size: 32px;
    color: white;
    font-weight: 500;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

/* Right-aligned content for about page */
.content-overlay-right {
    display: flex;
    justify-content: flex-end;
    padding-right: 80px;
    padding-left: 0;
    margin-left: auto;
}

.content-card-right {
    text-align: right;
    max-width: 900px;
}

.content-card-right h2 {
    font-size: 48px;
    color: white;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.brand-text {
    font-size: 24px;
    color: white;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease-in, transform 0.3s ease-in;
}

/* Game List */
.game-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.game-item {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #e0e0e0;
}

.game-item:hover {
    transform: translateY(-5px);
    border-color: #1976D2;
}

.game-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.game-item h4 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.game-item p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Support Grid */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.contact-item {
    background: #f8f9fa;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s;
    border: 2px solid #e0e0e0;
}

.contact-item:hover {
    transform: translateY(-3px);
    border-color: #1976D2;
}

.contact-item h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.contact-item p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 14px;
}

.contact-info {
    text-align: center;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #e0e0e0;
}

.contact-info p {
    color: #666;
    margin-bottom: 8px;
    font-size: 15px;
}

.btn-primary {
    display: inline-block;
    background: #fff;
    color: #1976D2;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #fff;
    padding: 15px 40px;
    border: 2px solid #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background 0.3s, color 0.3s;
}

.btn-secondary:hover {
    background: #fff;
    color: #1976D2;
}

/* About Section */
.about-section {
    padding: 80px 20px;
    background: #fff;
}

.about-section h3 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #1976D2;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
}

.about-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.about-card h4 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.about-card p {
    color: #666;
    line-height: 1.8;
}

/* Values Section */
.values-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.values-section h3 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #1976D2;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.value-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.value-item h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.value-item p {
    color: #666;
    font-size: 14px;
}

/* Latest Game Section */
.latest-game {
    padding: 80px 20px;
    background: #fff;
}

.latest-game h3 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #1976D2;
}

.game-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.game-info h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.game-description {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
}

.game-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.feature-tag {
    background: #E3F2FD;
    color: #1976D2;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.game-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.game-placeholder {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    border-radius: 20px;
    padding: 80px 40px;
    text-align: center;
    color: white;
}

.game-placeholder span {
    font-size: 80px;
    display: block;
    margin-bottom: 20px;
}

.game-placeholder p {
    font-size: 24px;
    font-weight: bold;
}

/* Contact Section */
.contact-section {
    padding: 80px 20px;
    background: #f8f9fa;
    text-align: center;
}

.contact-section h3 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #1976D2;
}

.contact-section p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.contact-info-box {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    margin: 30px auto;
    max-width: 600px;
}

.contact-info-box p {
    margin-bottom: 10px;
}

.contact-info-box a {
    color: #1976D2;
    text-decoration: none;
    font-weight: 500;
}

.contact-info-box a:hover {
    text-decoration: underline;
}

/* Games Page Styles */
.page-header {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.page-header h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

.game-detail {
    padding: 60px 20px;
    background: #f8f9fa;
}

.game-header-section {
    display: flex;
    gap: 40px;
    align-items: center;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.game-icon-large {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    border-radius: 20px;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    flex-shrink: 0;
}

.game-header-info h1 {
    font-size: 40px;
    margin-bottom: 15px;
    color: #333;
}

.game-tagline {
    font-size: 20px;
    color: #666;
    margin-bottom: 20px;
}

.game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.meta-item {
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
}

.download-buttons {
    display: flex;
    gap: 15px;
}

.btn-download {
    display: inline-block;
    background: #1976D2;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background 0.3s, transform 0.3s;
}

.btn-download:hover {
    background: #1565C0;
    transform: translateY(-2px);
}

.btn-download-large {
    display: inline-block;
    background: #1976D2;
    color: white;
    padding: 20px 60px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn-download-large:hover {
    background: #1565C0;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.game-description-section,
.features-section,
.howto-section,
.app-info-section {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.game-description-section h3,
.features-section h3,
.howto-section h3,
.app-info-section h3 {
    font-size: 32px;
    margin-bottom: 25px;
    color: #1976D2;
}

.game-description-section p {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.howto-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.howto-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
}

.howto-number {
    background: #1976D2;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.howto-card h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.howto-card p {
    color: #666;
    line-height: 1.6;
}

.download-cta {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    padding: 60px 40px;
    border-radius: 15px;
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.download-cta h3 {
    font-size: 36px;
    margin-bottom: 15px;
    color: white;
}

.download-cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.faq-section {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.faq-section h3 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #1976D2;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.faq-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.faq-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.faq-card h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #1976D2;
}

.faq-card p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.support-link-section {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 15px;
}

.support-link-section p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.coming-soon {
    padding: 60px 20px;
    background: #fff;
    text-align: center;
}

.coming-soon h3 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #1976D2;
}

.coming-soon p {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

.coming-soon-placeholder {
    background: #f8f9fa;
    padding: 80px 40px;
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon-placeholder span {
    font-size: 80px;
    display: block;
    margin-bottom: 20px;
}

.coming-soon-placeholder p {
    font-size: 20px;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .main-bg {
        padding: 40px 15px;
        min-height: calc(100vh - 150px);
    }

    .content-card {
        padding: 40px 30px;
    }

    .content-card h2 {
        font-size: 36px;
    }

    .content-card h3 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .content-card .subtitle {
        font-size: 18px;
    }

    .game-list {
        grid-template-columns: 1fr;
    }

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

    header .container {
        flex-direction: column;
        gap: 20px;
    }

    nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero h2 {
        font-size: 36px;
    }

    .subtitle {
        font-size: 18px;
    }

    .features h3, .about h3, .contact h3 {
        font-size: 28px;
    }

    .feature-grid, .info-grid {
        grid-template-columns: 1fr;
    }

    .game-showcase {
        grid-template-columns: 1fr;
    }

    .game-header-section {
        flex-direction: column;
        text-align: center;
    }

    .game-header-info h1 {
        font-size: 32px;
    }

    .download-buttons,
    .game-buttons,
    .hero-buttons {
        justify-content: center;
    }

    .about-content,
    .values-grid,
    .howto-content,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .page-header h2 {
        font-size: 32px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-download {
        font-size: 16px;
        padding: 12px 30px;
    }
}
