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

:root {
    --bg-color: #FFFFFF;
    --text-color: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --accent-color: #000000;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.logo-animation {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 20px;
    animation: fadeInScale 0.8s ease;
}

.loading-text {
    font-size: 1rem;
    color: var(--text-secondary);
    animation: pulse 1.5s infinite;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Main Content */
.main-content {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.main-content.visible {
    opacity: 1;
}

/* Header */
.header {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
}

/* Games Container */
.games-container {
    padding: 80px 0;
}

.game-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 120px;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.game-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.game-item.reverse {
    direction: rtl;
}

.game-item.reverse > * {
    direction: ltr;
}

.game-item:last-child {
    margin-bottom: 80px;
}

.game-images {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.game-icon {
    width: 150px;
    height: 150px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.game-icon-inline {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.phone-mockup {
    position: relative;
    display: inline-block;
}

.phone-frame {
    width: 280px;
    padding: 12px;
    background: #1a1a1a;
    border-radius: 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 25px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 2;
}

.game-screenshot-phone {
    width: 100%;
    height: auto;
    border-radius: 25px;
    display: block;
}

.placeholder-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.game-info {
    padding: 20px 0;
}

.game-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.2;
}

.game-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

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

.store-button {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.store-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.store-icon {
    width: 24px;
    height: 24px;
    fill: white;
}

.game-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 15px;
}

.privacy-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: var(--text-color);
    text-decoration: underline;
}

/* Coming Soon Style */
.game-item.coming-soon {
    opacity: 0.6;
}

/* Contact Section */
.contact-section {
    padding: 80px 0 100px;
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--text-color);
}

.contact-form {
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background: var(--bg-color);
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--text-color);
}

.contact-form textarea {
    resize: vertical;
    margin-bottom: 20px;
}

.submit-button {
    padding: 15px 40px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.success-message {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background: #d4edda;
    color: #155724;
    border-radius: 8px;
    font-size: 0.95rem;
}

.success-message.show {
    display: block;
    animation: slideIn 0.3s ease;
}

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

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.footer-contact {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact:hover {
    color: var(--text-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 968px) {
    .game-item {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 80px;
    }

    .game-item.reverse {
        direction: ltr;
    }

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

    .container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .logo-animation {
        font-size: 3rem;
    }

    .game-title {
        font-size: 1.75rem;
    }

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

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .game-images {
        flex-direction: column;
        align-items: center;
    }

    .game-icon {
        width: 120px;
        height: 120px;
    }

    .phone-frame {
        width: 240px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

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

    .game-item {
        margin-bottom: 60px;
    }

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

    .phone-frame {
        width: 200px;
    }

    .store-buttons {
        justify-content: flex-start;
    }
}
