/* ========================================
   GROTESQUERESQUE - INDIE GAME SITE STYLES
   ======================================== */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #e0e6ed;
    background: #0a0a0f;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ========================================
   GAME SITE COLOR PALETTE
   ======================================== */
:root {
    /* Primary Game Colors */
    --neon-purple: #8b5cf6;
    --neon-cyan: #06b6d4;
    --neon-pink: #ec4899;
    --neon-green: #10b981;
    --neon-orange: #f59e0b;
    --electric-blue: #3b82f6;
    
    /* Dark Theme Base */
    --bg-primary: #0a0a0f;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-card: #1e293b;
    --bg-glass: rgba(30, 41, 59, 0.8);
    
    /* Text Colors */
    --text-primary: #e0e6ed;
    --text-secondary: #94a3b8;
    --text-accent: #f1f5f9;
    --text-muted: #64748b;
    
    /* Game UI Colors */
    --game-border: #334155;
    --game-glow: rgba(139, 92, 246, 0.5);
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #eab308;
    
    /* Effects */
    --shadow-neon: 0 0 20px rgba(139, 92, 246, 0.3);
    --shadow-game: 0 10px 50px rgba(0, 0, 0, 0.7);
    --blur-glass: 20px;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-game: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e293b 100%);
    --gradient-neon: linear-gradient(90deg, #8b5cf6, #06b6d4, #ec4899);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* ========================================
   ANIMATED BACKGROUND ELEMENTS
   ======================================== */

.pixelated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    animation: pixelDrift 20s ease-in-out infinite;
    z-index: -2;
}

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--neon-purple);
    border-radius: 50%;
    animation: floatParticles 15s linear infinite;
    box-shadow: 
        0 0 10px var(--neon-purple),
        100px 50px 0 -2px var(--neon-cyan),
        200px 100px 0 -1px var(--neon-pink),
        300px 150px 0 -2px var(--neon-green),
        400px 200px 0 -1px var(--neon-orange);
}

.floating-particles::after {
    animation-delay: 7s;
    left: 20%;
}

@keyframes pixelDrift {
    0%, 100% { transform: translateX(0) translateY(0); }
    33% { transform: translateX(-20px) translateY(-10px); }
    66% { transform: translateX(20px) translateY(10px); }
}

@keyframes floatParticles {
    0% { 
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { 
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(var(--blur-glass));
    border-bottom: 2px solid var(--game-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-neon);
    opacity: 0.6;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    position: relative;
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-primary);
    text-shadow: 0 0 20px var(--neon-purple);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px var(--neon-pink));
}

.logo-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-neon);
    opacity: 0.1;
    filter: blur(20px);
    z-index: -1;
    animation: logoGlow 3s ease-in-out infinite;
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    color: var(--text-accent);
    border-color: var(--neon-purple);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}

.nav-icon {
    font-size: 1.2rem;
    animation: bounce 2s ease-in-out infinite;
}

.nav-link:nth-child(2) .nav-icon { animation-delay: 0.5s; }
.nav-link:nth-child(3) .nav-icon { animation-delay: 1s; }

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes logoGlow {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 40%, rgba(139, 92, 246, 0.05) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(6, 182, 212, 0.05) 50%, transparent 60%);
    animation: heroOverlay 10s ease-in-out infinite;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.game-badge {
    margin-bottom: 2rem;
    display: inline-block;
}

.badge-text {
    background: var(--gradient-neon);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    box-shadow: 
        0 0 30px rgba(139, 92, 246, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    animation: badgePulse 3s ease-in-out infinite;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.title-shadow {
    position: absolute;
    top: 4px;
    left: 4px;
    color: rgba(139, 92, 246, 0.3);
    z-index: 1;
}

.title-main {
    position: relative;
    z-index: 2;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 50px var(--neon-purple);
    animation: titleGlow 4s ease-in-out infinite;
}

.title-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
}

.glitch-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glitch 6s linear infinite;
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.subtitle-highlight {
    color: var(--neon-cyan);
    font-weight: 600;
}

.subtitle-emphasis {
    color: var(--neon-pink);
    font-weight: 600;
    text-shadow: 0 0 10px var(--neon-pink);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--bg-glass);
    border-radius: 15px;
    border: 1px solid var(--game-border);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-neon);
    border-color: var(--neon-purple);
}

.stat-icon {
    font-size: 2rem;
    animation: statFloat 3s ease-in-out infinite;
}

.stat-item:nth-child(2) .stat-icon { animation-delay: 1s; }
.stat-item:nth-child(3) .stat-icon { animation-delay: 2s; }

.stat-text {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    color: var(--text-accent);
    font-size: 0.9rem;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.decoration {
    position: absolute;
    font-size: 4rem;
    opacity: 0.1;
    animation: decorationFloat 8s ease-in-out infinite;
}

.decoration-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.decoration-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.decoration-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.decoration-4 {
    top: 40%;
    right: 25%;
    animation-delay: 6s;
}

@keyframes heroOverlay {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(139, 92, 246, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 0 50px rgba(139, 92, 246, 0.8); }
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 30px var(--neon-purple)); }
    50% { filter: drop-shadow(0 0 60px var(--neon-purple)); }
}

@keyframes glitch {
    0%, 90%, 100% { opacity: 0; }
    91%, 99% { opacity: 0.8; transform: translateX(2px); }
    92%, 98% { opacity: 0.6; transform: translateX(-2px); }
    93%, 97% { opacity: 0.8; transform: translateX(1px); }
}

@keyframes statFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes decorationFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-5deg); }
    75% { transform: translateY(-30px) rotate(3deg); }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    color: white;
    border-color: var(--neon-purple);
    box-shadow: 
        0 10px 30px rgba(139, 92, 246, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 20px 40px rgba(139, 92, 246, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.8);
    color: var(--text-accent);
    border-color: var(--neon-cyan);
    box-shadow: 
        0 10px 30px rgba(6, 182, 212, 0.2),
        inset 0 0 20px rgba(6, 182, 212, 0.1);
}

.btn-secondary:hover {
    background: rgba(6, 182, 212, 0.1);
    transform: translateY(-3px);
    box-shadow: 
        0 20px 40px rgba(6, 182, 212, 0.4),
        inset 0 0 30px rgba(6, 182, 212, 0.2);
}

.btn-icon {
    font-size: 1.3rem;
    animation: btnIconPulse 2s ease-in-out infinite;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-neon);
    opacity: 0;
    filter: blur(20px);
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-primary:hover .btn-glow {
    opacity: 0.3;
}

@keyframes btnIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ========================================
   SECTIONS
   ======================================== */

section {
    padding: 6rem 0;
    position: relative;
}

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

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.title-icon {
    font-size: 2.5rem;
    animation: titleIconSpin 4s linear infinite;
}

.title-decoration {
    color: var(--neon-purple);
    font-family: monospace;
    font-size: 1rem;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.subtitle-icon {
    color: var(--neon-cyan);
    animation: pulse 2s ease-in-out infinite;
}

.subtitle-badge {
    background: var(--neon-green);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
}

@keyframes titleIconSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   GAME SECTION
   ======================================== */

.game-section {
    background: var(--bg-secondary);
    border-top: 2px solid var(--game-border);
    border-bottom: 2px solid var(--game-border);
}

.game-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.game-frame {
    background: var(--gradient-game);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-game);
    border: 3px solid var(--game-border);
    position: relative;
    overflow: hidden;
}

.frame-decoration {
    display: flex;
    align-items: center;
    color: var(--neon-purple);
    font-family: monospace;
    font-size: 1.2rem;
    margin: 1rem 0;
    opacity: 0.7;
}

.frame-corner {
    font-size: 1.5rem;
    color: var(--neon-cyan);
}

.frame-line {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.8rem;
    color: var(--neon-purple);
    opacity: 0.5;
}

.game-container {
    position: relative;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 
        inset 0 0 50px rgba(0, 0, 0, 0.8),
        0 0 100px rgba(139, 92, 246, 0.3);
}

.game-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--game-border);
    border-top: 4px solid var(--neon-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-text {
    color: var(--text-secondary);
    font-family: 'Orbitron', monospace;
    font-weight: 600;
}

.game-iframe {
    width: 100%;
    height: 70vh;
    min-height: 500px;
    border: none;
    display: block;
}

.game-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-panel {
    background: var(--bg-glass);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--game-border);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.info-panel:hover {
    transform: translateY(-5px);
    border-color: var(--neon-purple);
    box-shadow: var(--shadow-neon);
}

.info-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-accent);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fullscreen Button */
.fullscreen-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(30, 41, 59, 0.95);
    border: 2px solid var(--neon-purple);
    border-radius: 25px;
    color: var(--text-accent);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 5px 15px rgba(139, 92, 246, 0.3),
        inset 0 0 20px rgba(139, 92, 246, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fullscreen-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--neon-cyan);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 10px 25px rgba(139, 92, 246, 0.5),
        0 0 30px rgba(6, 182, 212, 0.4),
        inset 0 0 30px rgba(139, 92, 246, 0.2);
}

.fullscreen-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 
        0 5px 15px rgba(139, 92, 246, 0.3),
        inset 0 0 20px rgba(139, 92, 246, 0.3);
}

.fullscreen-icon {
    font-size: 1.2rem;
    animation: fullscreenIconPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 5px var(--neon-purple));
}

.fullscreen-text {
    font-size: 0.8rem;
    white-space: nowrap;
}

.fullscreen-btn.fullscreen-active {
    background: rgba(236, 72, 153, 0.2);
    border-color: var(--neon-pink);
    color: var(--neon-pink);
}

.fullscreen-btn.fullscreen-active .fullscreen-icon {
    animation: fullscreenActiveIcon 1s ease-in-out infinite;
}

.fullscreen-btn.fullscreen-active:hover {
    background: rgba(236, 72, 153, 0.3);
    box-shadow: 
        0 10px 25px rgba(236, 72, 153, 0.5),
        0 0 30px rgba(236, 72, 153, 0.4),
        inset 0 0 30px rgba(236, 72, 153, 0.2);
}

@keyframes fullscreenIconPulse {
    0%, 100% { 
        transform: scale(1); 
        filter: drop-shadow(0 0 5px var(--neon-purple));
    }
    50% { 
        transform: scale(1.1); 
        filter: drop-shadow(0 0 10px var(--neon-cyan));
    }
}

@keyframes fullscreenActiveIcon {
    0%, 100% { 
        transform: scale(1); 
        filter: drop-shadow(0 0 8px var(--neon-pink));
    }
    50% { 
        transform: scale(1.15); 
        filter: drop-shadow(0 0 15px var(--neon-pink));
    }
}

/* Fullscreen mode styles */
.game-container.fullscreen-mode {
    background: #000;
    border-radius: 0;
}

.game-container.fullscreen-mode .game-iframe {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

.game-container.fullscreen-mode .fullscreen-btn {
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 
        0 10px 30px rgba(139, 92, 246, 0.6),
        0 0 50px rgba(236, 72, 153, 0.4),
        inset 0 0 30px rgba(139, 92, 246, 0.2);
}

/* Mobile fullscreen adjustments */
@media (max-width: 768px) {
    .fullscreen-btn {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }
    
    .fullscreen-text {
        display: none;
    }
    
    .fullscreen-icon {
        font-size: 1.1rem;
    }
    
    .game-container.fullscreen-mode .fullscreen-btn {
        top: 15px;
        right: 15px;
        padding: 0.75rem;
    }
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-section {
    background: var(--bg-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content .section-title {
    text-align: left;
    justify-content: flex-start;
    margin-bottom: 2rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-glass);
    border-radius: 15px;
    border-left: 4px solid var(--neon-purple);
    backdrop-filter: blur(10px);
}

.about-image {
    display: flex;
    justify-content: center;
}

.game-screenshot {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 3px solid var(--game-border);
    background: var(--bg-primary);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(139, 92, 246, 0.3);
    transition: all 0.4s ease;
}

.game-screenshot:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--neon-purple);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 100px rgba(139, 92, 246, 0.5),
        inset 0 0 50px rgba(139, 92, 246, 0.1);
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 17px;
    transition: all 0.4s ease;
    filter: 
        brightness(0.9) 
        contrast(1.1) 
        saturate(1.2);
}

.game-screenshot:hover .screenshot-img {
    filter: 
        brightness(1) 
        contrast(1.2) 
        saturate(1.3)
        drop-shadow(0 0 20px rgba(139, 92, 246, 0.3));
    transform: scale(1.05);
}

.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border-radius: 17px;
    overflow: hidden;
}

.screenshot-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 17px;
    background: linear-gradient(45deg, 
        var(--neon-purple), 
        var(--neon-cyan), 
        var(--neon-pink), 
        var(--neon-purple)
    ) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderRotate 6s linear infinite;
}

.game-screenshot:hover .screenshot-border {
    opacity: 0.6;
}

.screenshot-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(
        circle at center,
        rgba(139, 92, 246, 0.2) 0%,
        rgba(6, 182, 212, 0.1) 50%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: glowPulse 4s ease-in-out infinite;
    filter: blur(20px);
}

.game-screenshot:hover .screenshot-glow {
    opacity: 1;
}

@keyframes borderRotate {
    0% {
        background: linear-gradient(45deg, 
            var(--neon-purple), 
            var(--neon-cyan), 
            var(--neon-pink), 
            var(--neon-purple)
        ) border-box;
    }
    25% {
        background: linear-gradient(135deg, 
            var(--neon-cyan), 
            var(--neon-pink), 
            var(--neon-purple), 
            var(--neon-cyan)
        ) border-box;
    }
    50% {
        background: linear-gradient(225deg, 
            var(--neon-pink), 
            var(--neon-purple), 
            var(--neon-cyan), 
            var(--neon-pink)
        ) border-box;
    }
    75% {
        background: linear-gradient(315deg, 
            var(--neon-purple), 
            var(--neon-cyan), 
            var(--neon-pink), 
            var(--neon-purple)
        ) border-box;
    }
    100% {
        background: linear-gradient(45deg, 
            var(--neon-purple), 
            var(--neon-cyan), 
            var(--neon-pink), 
            var(--neon-purple)
        ) border-box;
    }
}

@keyframes glowPulse {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features-section {
    background: var(--bg-secondary);
}

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

.feature-card {
    background: var(--bg-glass);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid var(--game-border);
    backdrop-filter: blur(15px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-neon);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: translateX(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-purple);
    box-shadow: 
        var(--shadow-neon),
        var(--shadow-game);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    text-align: center;
    animation: featureFloat 3s ease-in-out infinite;
}

.feature-card:nth-child(2) .feature-icon { animation-delay: 0.5s; }
.feature-card:nth-child(3) .feature-icon { animation-delay: 1s; }
.feature-card:nth-child(4) .feature-icon { animation-delay: 1.5s; }
.feature-card:nth-child(5) .feature-icon { animation-delay: 2s; }
.feature-card:nth-child(6) .feature-icon { animation-delay: 2.5s; }

.feature-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-accent);
    margin-bottom: 1rem;
    text-align: center;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
    font-size: 1rem;
}

@keyframes featureFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ========================================
   GAMEPLAY SECTION
   ======================================== */

.gameplay-section {
    background: var(--bg-primary);
}

.gameplay-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.gameplay-subtitle {
    font-family: 'Orbitron', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-accent);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--neon-purple);
    padding-bottom: 1rem;
}

.gameplay-list,
.requirements-list {
    list-style: none;
    padding: 0;
}

.gameplay-list li,
.requirements-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--game-border);
    color: var(--text-secondary);
    position: relative;
    padding-left: 3rem;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.gameplay-list li:hover,
.requirements-list li:hover {
    color: var(--text-accent);
    padding-left: 3.5rem;
}

.gameplay-list li::before {
    content: '🎮';
    position: absolute;
    left: 0;
    top: 1rem;
    font-size: 1.2rem;
    animation: listIconBounce 3s ease-in-out infinite;
}

.requirements-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 1rem;
    color: var(--neon-green);
    font-weight: bold;
    font-size: 1.3rem;
    animation: listIconBounce 3s ease-in-out infinite;
}

.gameplay-list li:nth-child(2)::before,
.requirements-list li:nth-child(2)::before { animation-delay: 0.5s; }
.gameplay-list li:nth-child(3)::before,
.requirements-list li:nth-child(3)::before { animation-delay: 1s; }
.gameplay-list li:nth-child(4)::before,
.requirements-list li:nth-child(4)::before { animation-delay: 1.5s; }
.gameplay-list li:nth-child(5)::before,
.requirements-list li:nth-child(5)::before { animation-delay: 2s; }

@keyframes listIconBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--gradient-dark);
    border-top: 2px solid var(--game-border);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-neon);
    opacity: 0.6;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
}

.footer-text p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', monospace;
}

.footer-text p:first-child {
    color: var(--text-accent);
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid transparent;
}

.footer-link:hover {
    color: var(--text-accent);
    border-color: var(--neon-purple);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero {
        padding: 8rem 0 4rem;
        min-height: auto;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .about-grid,
    .gameplay-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .game-iframe {
        height: 50vh;
        min-height: 400px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .game-screenshot {
        height: 250px;
    }
    
    .game-screenshot:hover {
        transform: translateY(-3px) scale(1.01);
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .section-title {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-subtitle {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .game-iframe {
        height: 40vh;
        min-height: 350px;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 3rem;
    }
    
    .game-frame {
        padding: 1rem;
    }
    
    .frame-line {
        font-size: 0.6rem;
    }
    
    .info-panel {
        padding: 1.5rem;
    }
}

/* ========================================
   ACCESSIBILITY & PERFORMANCE
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

.btn:focus,
.nav-link:focus,
.footer-link:focus {
    outline: 3px solid var(--neon-purple);
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    :root {
        --shadow-neon: 0 0 30px rgba(139, 92, 246, 0.8);
        --shadow-game: 0 15px 60px rgba(0, 0, 0, 0.9);
    }
    
    .feature-card,
    .info-panel {
        border-width: 3px;
    }
}

/* ========================================
   LOADING STATES
   ======================================== */

.game-iframe:not([src]) + .game-loading-overlay {
    opacity: 1;
}

.game-iframe[src] + .game-loading-overlay {
    opacity: 0;
    pointer-events: none;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .header,
    .footer,
    .hero-decorations,
    .floating-particles,
    .pixelated-bg {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .game-iframe {
        height: 200px;
        background: #f0f0f0;
    }
}