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

:root {
    --primary-blue: #44aaff;
    --primary-purple: #ff44aa;
    --dark-bg: #0a0a1a;
    --darker-bg: #050510;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 50%, #1a1a3a 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Animated background stars */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    opacity: 0.3;
    z-index: -1;
    animation: twinkle 20s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

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

/* Header */
header {
    text-align: center;
    padding: 80px 20px 60px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 2px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.logo {
    width: 750px;
    max-width: 90vw;
    height: auto;
    margin-bottom: 40px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(68, 170, 255, 0.6));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -1px;
}

.tagline {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Main Content */
main {
    padding: 80px 20px;
}

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

/* Game Cards */
.game-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(68, 170, 255, 0.3);
    border-color: rgba(68, 170, 255, 0.5);
}

.game-card.featured {
    grid-column: span 1;
}

.game-thumbnail {
    position: relative;
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #1a1a3a, #2a2a4a);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.thumbnail-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(68, 170, 255, 0.1), rgba(255, 68, 170, 0.1));
}

.game-icon {
    font-size: 6rem;
    animation: pulse 2s ease-in-out infinite;
}

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

.stars {
    position: absolute;
    font-size: 3rem;
    top: 20px;
    right: 20px;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff4444, #ff6666);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.game-info {
    padding: 30px;
}

.game-info h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-blue);
    font-weight: 700;
}

.game-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.game-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.feature {
    background: rgba(68, 170, 255, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid rgba(68, 170, 255, 0.2);
}

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

.tag {
    background: rgba(68, 170, 255, 0.15);
    color: var(--primary-blue);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(68, 170, 255, 0.3);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(68, 170, 255, 0.25);
    border-color: rgba(68, 170, 255, 0.5);
}

.tag.disabled {
    background: rgba(136, 136, 136, 0.15);
    color: var(--text-muted);
    border-color: rgba(136, 136, 136, 0.3);
}

.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-blue), #4488ff);
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(68, 170, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-play::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-play:hover::before {
    left: 100%;
}

.btn-play:hover {
    background: linear-gradient(135deg, #5588ff, var(--primary-blue));
    box-shadow: 0 8px 30px rgba(68, 170, 255, 0.6);
    transform: translateY(-2px);
}

.btn-play:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.2rem;
}

/* Coming Soon Card */
.coming-soon .game-thumbnail {
    background: rgba(255, 255, 255, 0.02);
}

.coming-soon-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-size: 1.8rem;
    color: var(--text-muted);
    font-weight: bold;
}

.coming-soon-text .icon {
    font-size: 4rem;
    opacity: 0.5;
}

.coming-soon .game-info h2 {
    color: var(--text-muted);
}

/* About Section */
.about {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.4);
    border-top: 2px solid var(--border-color);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    backdrop-filter: blur(10px);
}

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

.social-links a {
    color: var(--primary-blue);
    text-decoration: none;
    margin: 0 20px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.social-links a:hover {
    color: #5588ff;
    transform: translateY(-2px);
}

.social-links .icon {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .logo {
        width: 600px;
        max-width: 85vw;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .game-features {
        grid-template-columns: 1fr;
    }
    
    .game-info h2 {
        font-size: 1.6rem;
    }
    
    .about h2 {
        font-size: 2rem;
    }
    
    .about p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 60px 20px 40px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .logo {
        width: 450px;
        max-width: 80vw;
    }
    
    main {
        padding: 40px 20px;
    }
    
    .game-thumbnail {
        height: 220px;
    }
    
    .game-info {
        padding: 20px;
    }
    
    .btn-play {
        width: 100%;
        justify-content: center;
    }
}
