@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-main: #0B0B1A;
    --bg-secondary: #16162C;
    --bg-glass: rgba(22, 22, 44, 0.7);
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0C0;
    --accent-primary: #8A2BE2; /* Purple */
    --accent-secondary: #00FFFF; /* Cyan */
    --border-glass: rgba(255, 255, 255, 0.1);
    --gradient-brand: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Starry Background */
.bg-animation {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 15% 50%, rgba(138, 43, 226, 0.15), transparent 25%),
                radial-gradient(circle at 85% 30%, rgba(0, 255, 255, 0.15), transparent 25%);
}

/* Header */
header {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.logo img {
    height: 40px;
    border-radius: 8px;
}

.logo span {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--accent-secondary);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    transition: width 0.3s ease;
}

nav ul li a:hover::after, nav ul li a.active::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--accent-primary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn.primary {
    background: var(--gradient-brand);
    border: none;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 1rem;
}

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

.hero h1 span {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-inline: auto;
}

/* Cards (Games & Forms) */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.game-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    transition: all 0.4s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-secondary);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.1);
}

.game-thumbnail {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #1A1A3A, #2A2A5A);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: var(--accent-secondary);
}

.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.game-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Content Pages */
.content-section {
    max-width: 800px;
    margin: 0 auto;
}

.content-section h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent-secondary);
}

.content-section h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.content-section p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-secondary);
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-secondary);
}

/* Game Frame */
.game-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    nav ul { display: none; } /* Mobile menu could be added here */
}
