:root {
    --bg-dark: #2c0a06;
    --bg-card: rgba(40, 40, 40, 0.85);
    --bg-glass: rgba(44, 10, 6, 0.8);
    --accent-primary: #a32a15;
    --accent-secondary: #cccccc;
    --text-main: #ffffff;
    --text-muted: #b8b8b8;
    --border-glass: rgba(255, 255, 255, 0.25);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Custom Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    transition: width 0.3s, height 0.3s;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    background: linear-gradient(135deg, #fff 0%, #a0a0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn-primary, .btn-primary-small, .btn-secondary {
    display: inline-block;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    padding: 1rem 2.5rem;
    background: linear-gradient(to bottom, #4a4a4a, #1a1a1a);
    color: #fff;
    border: 2px solid #999;
    border-radius: 14px;
    box-shadow: inset 0 3px 5px rgba(255, 255, 255, 0.2), inset 0 -4px 5px rgba(0, 0, 0, 0.6), 0 5px 15px rgba(0, 0, 0, 0.5);
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    cursor: pointer;
    text-shadow: 1px 1px 2px #000;
}

.btn-primary:hover {
    box-shadow: inset 0 4px 6px rgba(255, 255, 255, 0.3), inset 0 -3px 5px rgba(0, 0, 0, 0.7), 0 8px 20px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
    border-color: #fff;
}

.btn-primary-small {
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-primary-small:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    padding: 1rem 2.5rem;
    background: transparent;
    color: #fff;
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
}

.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.navbar.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 5%;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.highlight {
    color: var(--accent-secondary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a:not(.btn-primary-small) {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s;
}

.nav-links a:not(.btn-primary-small):hover {
    color: var(--accent-secondary);
}

.nav-links a:not(.btn-primary-small)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-secondary);
    transition: width 0.3s;
}

.nav-links a:not(.btn-primary-small):hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.hero-background {
    position: absolute;
    top: 0; right: 0; width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s infinite alternate;
}

.shape-1 {
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 60%);
    top: -20%; right: -10%;
}

.shape-2 {
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 60%);
    bottom: -10%; left: 10%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, 50px) scale(1.1); }
}

/* Games Section */
.games-section {
    padding: 8rem 5%;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.divider {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    margin: 0 auto;
    border-radius: 2px;
}

.game-card {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 8rem;
}

.game-card.reverse {
    flex-direction: row-reverse;
}

.game-image {
    flex: 1.2;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transform: perspective(1000px) rotateY(0deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.game-image:hover {
    transform: perspective(1000px) translateY(-10px) rotateY(2deg);
    box-shadow: 0 30px 60px rgba(138, 43, 226, 0.2);
}

.game-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.image-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, var(--bg-dark) 0%, transparent 40%);
    opacity: 0.6;
}

.glass-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-muted);
}

.game-info {
    flex: 1;
}

.genre-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
}

.game-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* About Section */
.about-section {
    padding: 8rem 5%;
    background: linear-gradient(to bottom, transparent, rgba(138, 43, 226, 0.05), transparent);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.stats-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-box {
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
}

.stat-box:last-child {
    grid-column: span 2;
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-box h4 {
    font-size: 3rem;
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    padding: 5rem 5% 2rem;
    border-top: 1px solid var(--border-glass);
    background: #050508;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links h4, .footer-newsletter h4 {
    margin-bottom: 1rem;
    color: #fff;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

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

.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-group input {
    flex: 1;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    outline: none;
}

.input-group input:focus {
    border-color: var(--accent-primary);
}

.input-group .btn-primary {
    padding: 0.8rem 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-in.visible {
    opacity: 1;
}

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

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

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

/* Responsive */
@media (max-width: 992px) {
    .game-card, .game-card.reverse {
        flex-direction: column;
        gap: 2rem;
    }
    .about-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    .input-group {
        flex-direction: column;
    }
}
