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

:root {
    --primary-color: #4a90e2;
    --primary-dark: #357abd;
    --secondary-color: #ff6b6b;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e1e8ed;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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(--bg-white);
    overflow-x: hidden;
}

.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;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 20s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.app-icon {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-icon-image {
    width: 120px;
    height: 120px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.icon-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.icon-placeholder svg {
    width: 80px;
    height: 80px;
}

.app-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.app-developer {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.app-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.8;
}

.rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1rem;
    flex-wrap: wrap;
}

.stars-rating {
    display: inline-flex;
    gap: 2px;
    margin-right: 10px;
}

.star {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.3);
    display: inline-block;
}

.star.filled {
    color: #ffd700;
}

.star.half {
    color: #ffd700;
    opacity: 0.7;
}

.rating-text {
    opacity: 0.9;
}

.app-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.info-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #ffffff;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    background: #f0f0f0;
}

.download-btn.large {
    padding: 20px 40px;
    font-size: 1.2rem;
}

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

/* Features Section */
.features {
    padding: 80px 20px;
    background: var(--bg-light);
}

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

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

.feature-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

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

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Screenshots Section */
.screenshots {
    padding: 80px 20px;
    background: var(--bg-white);
}

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

.screenshot-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.screenshot-placeholder {
    width: 100%;
    padding-bottom: 177.77%; /* 16:9 aspect ratio */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    color: white;
    font-size: 1rem;
    text-align: center;
}

.screenshot-placeholder span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.8;
    font-weight: 600;
}

/* Gameplay Section */
.gameplay {
    padding: 80px 20px;
    background: var(--bg-light);
}

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

.gameplay-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.gameplay-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

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

.download-cta .section-title {
    color: white;
    margin-bottom: 40px;
}

.download-cta .download-btn {
    background: white;
    color: var(--primary-color);
}

.download-cta .download-btn:hover {
    background: #f0f0f0;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-text {
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.separator {
    opacity: 0.5;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-white);
    margin: 5% auto;
    padding: 40px;
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.close {
    color: var(--text-light);
    float: right;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: var(--text-dark);
}

.modal-content h2 {
    color: var(--text-dark);
    margin-bottom: 30px;
    padding-right: 40px;
}

.modal-body {
    color: var(--text-dark);
    line-height: 1.8;
}

.modal-body h3 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-body ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

.modal-body li {
    margin-bottom: 10px;
}

.modal-body strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 60px 20px;
    }

    .app-title {
        font-size: 1.8rem;
    }

    .app-description {
        font-size: 1rem;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .screenshots-gallery {
        grid-template-columns: 1fr;
    }

    .download-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .download-btn.large {
        padding: 16px 32px;
        font-size: 1.1rem;
    }

    .modal-content {
        margin: 10% auto;
        padding: 30px 20px;
        width: 95%;
    }

    .close {
        right: 15px;
        top: 10px;
        font-size: 28px;
    }

    .feature-card {
        padding: 30px 20px;
    }

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

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

    .app-title {
        font-size: 1.5rem;
    }

    .icon-placeholder {
        width: 100px;
        height: 100px;
    }

    .icon-placeholder svg {
        width: 60px;
        height: 60px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .features,
    .screenshots,
    .gameplay,
    .download-cta {
        padding: 60px 15px;
    }

    .download-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        gap: 8px;
    }

    .download-btn svg {
        width: 20px;
        height: 20px;
    }

    .footer-content {
        gap: 10px;
    }

    .footer-links {
        flex-direction: column;
        gap: 5px;
    }

    .separator {
        display: none;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.screenshot-item {
    animation: fadeIn 0.6s ease-out;
}

