:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --card-hover: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --locked-color: #475569;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo .highlight {
    color: var(--accent-color);
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
    background: var(--card-bg);
    padding: 0.3rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover:not(.active) {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 10px var(--accent-glow);
}

.container {
    padding: 4rem 5%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    animation: fadeInDown 0.8s ease-out;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

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

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    width: 100%;
    max-width: 1200px;
    animation: fadeInUp 1s ease-out;
}

.game-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.game-card.active-game {
    border-color: rgba(59, 130, 246, 0.3);
}

.game-card.active-game::before {
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

.game-card.active-game:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(59, 130, 246, 0.15);
    background: var(--card-hover);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.15));
    transition: transform 0.3s ease;
}

.game-card.active-game:hover .card-icon {
    transform: scale(1.1);
}

.game-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.game-card p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    flex: 1;
}

.btn-play {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px var(--accent-glow);
}

.game-card.active-game:hover .btn-play {
    transform: scale(1.05);
    background: #2563eb;
}

.game-card.locked {
    opacity: 0.5;
    cursor: default;
    background: rgba(30, 41, 59, 0.4);
}

.game-card.locked .card-icon {
    filter: grayscale(100%) opacity(0.5);
}

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

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

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }
    .hero h2 {
        font-size: 2.5rem;
    }
    .games-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
}

/* Footer Section */
.site-footer {
    text-align: center;
    padding: 2rem 5%;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(15, 23, 42, 0.4);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.developer-credit {
    font-weight: 600;
}

.developer-credit .heart {
    color: #ef4444; /* red */
    animation: heartBeat 1.5s infinite;
    display: inline-block;
}

.legal-text {
    font-size: 0.85rem;
    opacity: 0.8;
}

.legal-text a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-text a:hover {
    color: #fff;
    text-decoration: underline;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}
