:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(25, 25, 35, 0.7);
    --primary: #7b2cbf;
    --primary-glow: rgba(123, 44, 191, 0.6);
    --accent: #00f5d4;
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

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

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

.logo span {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    margin: 0 1.5rem;
    font-weight: 400;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent);
}

.login-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(0, 245, 212, 0.4);
}

/* Hero Section */
.hero {
    height: 70vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
}

.hero-content {
    max-width: 600px;
    animation: slideUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--accent);
    text-shadow: 0 0 15px rgba(0, 245, 212, 0.4);
}

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

.hero-actions {
    display: flex;
    gap: 1rem;
}

.cta-btn {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.3s;
}

.cta-btn.primary {
    background: linear-gradient(45deg, var(--primary), #9d4edd);
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px var(--primary-glow);
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: white;
    border: 1px solid var(--glass-border);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Featured Games */
.featured-section {
    padding: 5rem 5%;
}

.featured-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--primary-glow);
    border-color: rgba(123, 44, 191, 0.4);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay svg {
    transform: scale(0.8);
    transition: transform 0.3s;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
}

.game-card:hover .play-overlay svg {
    transform: scale(1);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-weight: 600;
}

.tag.action {
    background: rgba(0, 245, 212, 0.1);
    color: var(--accent);
    border: 1px solid rgba(0, 245, 212, 0.3);
}

.tag.puzzle {
    background: rgba(123, 44, 191, 0.1);
    color: #c77dff;
    border: 1px solid rgba(123, 44, 191, 0.3);
}

.rating {
    color: #ffd166;
    font-weight: 600;
}

/* Footer */
footer {
    background: rgba(5, 5, 8, 0.9);
    padding: 3rem 5% 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-content {
    margin-bottom: 2rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    nav { display: none; }
}
