:root {
    --bg-dark: #0a0514;
    --bg-card: #150b2b;
    --primary-neon: #9b4dff;
    --secondary-neon: #00d2ff;
    --accent-neon: #ff00e5;
    --text-main: #ffffff;
    --text-dim: #b0a3c7;
    --font-main: 'Outfit', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Layout --- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 5, 20, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(155, 77, 255, 0.2);
    padding: 15px 0;
}

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

.icon-svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    flex-shrink: 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary-neon), var(--secondary-neon));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links li a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dim);
    transition: var(--transition-smooth);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-neon);
    text-shadow: 0 0 10px var(--primary-neon);
}

/* --- Buttons --- */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-neon);
    color: #fff;
    box-shadow: 0 0 20px rgba(155, 77, 255, 0.5);
}

.btn-primary:hover {
    background: #b070ff;
    box-shadow: 0 0 30px rgba(155, 77, 255, 0.8);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary-neon);
    color: var(--secondary-neon);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.btn-outline:hover {
    background: var(--secondary-neon);
    color: var(--bg-dark);
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.6);
    transform: translateY(-3px);
}

/* --- Hero Section --- */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #150b2b 0%, #0a0514 100%);
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #fff, var(--primary-neon));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(155, 77, 255, 0.3));
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-dim);
    max-width: 800px;
    margin: 0 auto 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* --- Sections --- */

section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.section-title .accent {
    color: var(--primary-neon);
    text-shadow: 0 0 10px var(--primary-neon);
}

/* --- Welcome --- */

.welcome-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: var(--text-dim);
}

/* --- Games Grid --- */

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

.game-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(155, 77, 255, 0.1);
    transition: var(--transition-smooth);
}

.game-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary-neon);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(155, 77, 255, 0.3);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.game-card:hover img {
    filter: brightness(1.2);
}

.game-card-content {
    padding: 25px;
    text-align: center;
}

.game-card h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.game-card p {
    color: var(--text-dim);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* --- How it works --- */

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.step-card {
    text-align: center;
    padding: 40px;
    background: rgba(21, 11, 43, 0.5);
    border-radius: 20px;
    border: 1px dashed rgba(0, 210, 255, 0.3);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--secondary-neon);
    background: rgba(0, 210, 255, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

/* --- Why Us --- */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-card {
    padding: 30px;
    background: var(--bg-card);
    border-radius: 15px;
    text-align: center;
    border-left: 4px solid var(--accent-neon);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: scale(1.05);
    box-shadow: -10px 10px 30px rgba(255, 0, 229, 0.2);
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--accent-neon);
}

/* --- Community --- */

.community {
    background: linear-gradient(rgba(10, 5, 20, 0.7), rgba(10, 5, 20, 0.6)), url('/assets/bg.png');
    background-attachment: fixed;
    background-size: cover;
    text-align: center;
}

.avatars {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    height: 100px;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary-neon);
    position: absolute;
    animation: float 6s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* --- Footer --- */

footer {
    background: #05020a;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(155, 77, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-about h4 {
    margin-bottom: 20px;
    color: var(--primary-neon);
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-dim);
    transition: var(--transition-smooth);
}

.footer-links ul li a:hover {
    color: var(--primary-neon);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(155, 77, 255, 0.1);
    padding-top: 40px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 10px;
}

.footer-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.badge-18 {
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* --- Glassmorphism Effect --- */
.glass {
    background: rgba(21, 11, 43, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Game Page Styles --- */
.game-hero {
    padding-top: 150px;
    text-align: center;
}

.game-container {
    max-width: 1000px;
    margin: 40px auto;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(155, 77, 255, 0.4);
    border: 2px solid var(--primary-neon);
}

.game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.game-meta {
    max-width: 1000px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    text-align: left;
}

.game-description h2 {
    color: var(--primary-neon);
    margin-bottom: 20px;
}

.game-sidebar {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
}

.game-sidebar ul {
    list-style: none;
    margin-top: 15px;
}

.game-sidebar ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.game-sidebar ul li::before {
    content: '⚡';
    position: absolute;
    left: 0;
    color: var(--secondary-neon);
}

/* --- Scroll animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile Responsive --- */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }

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

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

    .nav-links {
        display: none;
    }

    .hero-btns {
        flex-direction: column;
    }
}