:root {
    --bg-color: #050505;
    --primary: #9d00ff;
    --secondary: #00e5ff;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

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

html {
    scroll-behavior: smooth;
}

/* Typography styles */
h1, h2, h3, .logo {
    font-family: 'Syncopate', sans-serif;
    text-transform: uppercase;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.3s, padding 0.3s;
}

nav.scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

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

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease;
    box-shadow: 0 0 5px var(--secondary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: #0a0a0a;
}

.hero-bg-img {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('assets/hero_bg.png');
    background-position: center;
    background-size: cover;
    z-index: 0;
    opacity: 0.5;
    animation: pulseBg 10s infinite alternate;
}

@keyframes pulseBg {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.05); opacity: 0.6; }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(5,5,5,0) 0%, #050505 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.glitch {
    font-size: 5rem;
    font-weight: 800;
    position: relative;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(157, 0, 255, 0.5);
}

@media(max-width: 768px) {
    .glitch { font-size: 3rem; }
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(157, 0, 255, 0.4);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.6);
}

/* Sections */
section {
    padding: 100px 5%;
    position: relative;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    color: transparent;
    -webkit-text-stroke: 1px var(--secondary);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(157, 0, 255, 0.2);
}

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

.card-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 50%;
    background: linear-gradient(180deg, transparent, var(--glass-bg));
}

.bg-placeholder {
    background-color: #1a1a2e;
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-secondary {
    padding: 10px 25px;
    background: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    border-radius: 20px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--secondary);
    color: #000;
    box-shadow: 0 0 15px var(--secondary);
}

/* About Section */
.about-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-muted);
}

/* Footer */
footer {
    padding: 40px;
    text-align: center;
    background: #020202;
    border-top: 1px solid var(--glass-border);
    color: #555;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}
