:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --primary-color: #00f3ff;
    /* Neon Blue */
    --secondary-color: #bc13fe;
    /* Neon Purple */
    --accent-color: #ff0055;
    /* Hot Pink */
    --planet-color: #ff9d00;
    /* Solar Orange */
    --card-bg: rgba(20, 20, 20, 0.8);
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Overlay for better readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Dark overlay */
    z-index: -1;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Navigation */
.main-nav {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 2rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-lang {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-lang:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 5rem 0;
}

/* Header / Hero */
header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    /* Space for nav */
}

.logo-main {
    max-width: 326px;
    margin-bottom: 2rem;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(188, 19, 254, 0.6));
}

.hero-content h1 {
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff 0%, #ccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btn-glow {
    display: inline-block;
    padding: 1rem 3rem;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
    cursor: pointer;
    border: none;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(188, 19, 254, 0.6);
}

/* Games Section */
#games {
    /* dreamy background handled by body */
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    text-transform: uppercase;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.game-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.game-card:hover {
    transform: translateY(-15px);
    border-color: rgba(255, 255, 255, 0.3);
}

.game-logo-container {
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    padding: 2rem;
}

.game-logo {
    max-width: 80%;
    max-height: 80%;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
    transition: var(--transition);
    object-fit: contain;
}

.game-card:hover .game-logo {
    transform: scale(1.1);
}

.game-info {
    padding: 2rem;
    text-align: center;
}

.game-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.game-info p {
    color: #ccc;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.btn-small {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-weight: 600;
}

.btn-small:hover {
    background: #fff;
    color: #000;
}

/* Detail Pages specific */
.detail-container {
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.detail-header h1 {
    font-size: 3.5rem;
    margin-top: 2rem;
}

.detail-logo {
    max-width: 250px;
    border-radius: 20px;
    /* If square logos */
}

.page-neon .detail-header h1 {
    text-shadow: 0 0 30px var(--primary-color);
}

.page-planet .detail-header h1 {
    text-shadow: 0 0 30px var(--planet-color);
}

.glow-neon {
    filter: drop-shadow(0 0 40px var(--primary-color));
}

.glow-planet {
    filter: drop-shadow(0 0 40px var(--planet-color));
}

.lead-text {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 2rem auto 3rem;
    color: #ddd;
}

.btn-store {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: #fff;
    color: #000;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}

.btn-store:hover {
    transform: scale(1.05);
    background: #f0f0f0;
}

/* About Section */
#about {
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Contact / Footer */
footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
}

.socials {
    margin-bottom: 2rem;
}

.socials a {
    margin: 0 15px;
    font-size: 1.1rem;
    color: #888;
}

.socials a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}