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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 15px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.language-selector a {
    font-size: 2rem;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.7;
}

.language-selector a:hover {
    transform: scale(1.2);
    opacity: 1;
}

.language-selector a.active {
    opacity: 1;
    transform: scale(1.1);
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -2px;
}

.tagline {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.description {
    font-size: 1.125rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.8;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.store-button {
    display: inline-block;
    transition: transform 0.3s ease;
}

.store-button:hover {
    transform: translateY(-5px);
}

.store-button img {
    height: 60px;
    width: 200px;
    object-fit: contain;
    background: transparent;
}

/* Screenshots Section */
.screenshots {
    background: #f8f9fa;
    padding: 80px 20px;
}

.screenshots h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #667eea;
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.screenshot {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

/* Features Section */
.features {
    background: white;
    padding: 80px 20px;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #667eea;
}

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

.feature-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

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

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #667eea;
}

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

/* Difficulty Section */
.difficulty {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 80px 20px;
}

.difficulty h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-intro {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 50px;
    opacity: 0.95;
}

.difficulty-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.difficulty-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.difficulty-card:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.25);
}

.difficulty-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.difficulty-card p {
    opacity: 0.9;
}

/* Gameplay Section */
.gameplay {
    background: white;
    padding: 80px 20px;
}

.gameplay h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #667eea;
}

.gameplay-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 20px;
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #667eea;
}

.step p {
    color: #666;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 40px;
}

/* Footer */
footer {
    background: #2d3748;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
}

.footer-links {
    margin-top: 20px;
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffd700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .language-selector {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        gap: 8px;
    }

    .language-selector a {
        font-size: 1.5rem;
    }

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

    .tagline {
        font-size: 1.25rem;
    }

    .description {
        font-size: 1rem;
    }

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

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

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

    .screenshot-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .features h2,
    .screenshots h2,
    .difficulty h2,
    .gameplay h2,
    .cta h2 {
        font-size: 2rem;
    }

    .store-button img {
        height: 55px;
        width: 180px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 15px;
    }

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

    .logo {
        max-width: 280px;
    }

    .features,
    .difficulty,
    .gameplay,
    .cta {
        padding: 60px 15px;
    }

    .gameplay-steps {
        grid-template-columns: 1fr;
    }
}

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

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.feature-card,
.difficulty-card,
.step {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }
