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

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #333;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease-out;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 4px 6px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.game-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.game-card.palace::before {
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.game-card.shape-puzzle::before {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.game-card.cosmic-typer::before {
    background: linear-gradient(90deg, #8000ff 0%, #ff00ff 100%);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.game-icon {
    font-size: 5rem;
    text-align: center;
    margin-bottom: 20px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

.game-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2d3748;
}

.game-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 1rem;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.palace .tag {
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.shape-puzzle .tag {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.cosmic-typer .tag {
    background: linear-gradient(90deg, #8000ff 0%, #ff00ff 100%);
}

.play-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.palace .play-button {
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.shape-puzzle .play-button {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.cosmic-typer .play-button {
    background: linear-gradient(90deg, #8000ff 0%, #ff00ff 100%);
}

.play-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.play-button .arrow {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.play-button:hover .arrow {
    transform: translateX(5px);
}

footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    animation: fadeIn 1s ease-out;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animation delays for staggered effect */
.game-card:nth-child(1) {
    animation-delay: 0.1s;
}

.game-card:nth-child(2) {
    animation-delay: 0.2s;
}

.game-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .game-icon {
        font-size: 4rem;
    }

    .game-card h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }

    .game-icon {
        font-size: 3.5rem;
    }

    .play-button {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

