:root {
    --primary-bg: #0f0f13;
    --card-bg: rgba(20, 20, 25, 0.95);
    --accent-color: #00f2ff;
    --accent-color-2: #7b2cf9;
    --text-primary: #ffffff;
    --text-secondary: #8b8b8b;
    --neon-glow: 0 0 20px rgba(0, 242, 255, 0.2);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 242, 255, 0.2); }
    70% { box-shadow: 0 0 0 10px rgba(0, 242, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 242, 255, 0); }
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 242, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(123, 44, 249, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundPulse 8s ease-in-out infinite;
}

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

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

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

.header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.header h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
    position: relative;
}

.header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-color-2));
    border-radius: 2px;
    animation: widthPulse 2s ease-in-out infinite;
}

@keyframes widthPulse {
    0%, 100% { width: 100px; }
    50% { width: 150px; }
}

.header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    animation: glowText 2s ease-in-out infinite;
}

@keyframes glowText {
    0%, 100% { text-shadow: 0 0 10px rgba(139, 139, 139, 0.3); }
    50% { text-shadow: 0 0 20px rgba(139, 139, 139, 0.6); }
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    width: 100%;
    perspective: 1000px;
}

.game-card {
    background: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    aspect-ratio: 16/9;
    box-shadow: var(--card-shadow);
    transform-style: preserve-3d;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        rgba(0, 242, 255, 0.1),
        rgba(123, 44, 249, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.game-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: var(--neon-glow);
}

.game-card:hover::before {
    opacity: 1;
}

.game-card:nth-child(1) {
    background: linear-gradient(rgba(15, 15, 19, 0.9), rgba(15, 15, 19, 0.9)),
                url('https://images.unsplash.com/photo-1511512578047-dfb367046420?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2071&q=80');
    background-size: cover;
    background-position: center;
}

.game-card:nth-child(2) {
    background: linear-gradient(rgba(15, 15, 19, 0.9), rgba(15, 15, 19, 0.9)),
                url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
}

.game-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    background: linear-gradient(to top, 
        rgba(15, 15, 19, 0.95), 
        rgba(15, 15, 19, 0.7));
    transform: translateZ(20px);
    transition: transform 0.4s ease;
}

.game-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.game-card:hover .game-title {
    transform: translateY(-5px);
}

.game-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 90%;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.game-card:hover .game-description {
    transform: translateY(-3px);
}

.game-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
    transform: translateZ(30px);
    transition: all 0.3s ease;
}

.game-card:hover .game-icon {
    transform: translateZ(40px) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

/* Status Badge */
.status-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }
}

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

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

    .game-card {
        aspect-ratio: 16/10;
    }

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

@media (orientation: landscape) and (max-height: 500px) {
    body {
        padding: 1rem;
    }

    .header {
        margin-bottom: 2rem;
    }

    .games-grid {
        gap: 1.5rem;
    }
}

.game-logo {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 260px;
    min-width: 160px;
    height: auto;
    opacity: 0.98;
    z-index: 3;
    filter: drop-shadow(0 4px 24px rgba(0,242,255,0.25)) drop-shadow(0 2px 8px rgba(123,44,249,0.15));
    transform: translate(35%,-35%) rotate(8deg) scale(1.18);
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
}

.game-card:hover .game-logo {
    transform: translate(30%,-40%) rotate(4deg) scale(1.28);
    opacity: 1;
    filter: drop-shadow(0 8px 32px rgba(0,242,255,0.35)) drop-shadow(0 4px 16px rgba(123,44,249,0.25));
} 