/* ========================================
   GAMEZONE PRO - Premium Design System
   Created with ❤️ by Perplexity AI
   ======================================== */

/* CSS Variables */
:root {
    --primary: #6C63FF;
    --secondary: #00D9FF;
    --accent: #FF0080;
    --dark: #0F0F1A;
    --dark-light: #1A1A2E;
    --dark-card: #16213E;
    --text: #FFFFFF;
    --text-muted: #A0A0B0;
    --success: #00FF88;
    --warning: #FFAA00;
    --error: #FF4444;
    
    --gradient-1: linear-gradient(135deg, #6C63FF 0%, #00D9FF 100%);
    --gradient-2: linear-gradient(135deg, #FF0080 0%, #6C63FF 100%);
    --gradient-3: linear-gradient(135deg, #00D9FF 0%, #00FF88 100%);
    
    --shadow-glow: 0 0 20px rgba(108, 99, 255, 0.5);
    --shadow-glow-2: 0 0 30px rgba(0, 217, 255, 0.4);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.4);
    
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.stars, .stars2, .stars3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.stars {
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 5s infinite;
    opacity: 0.3;
}

.stars2 {
    background-image: 
        radial-gradient(2px 2px at 100px 150px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 200px 50px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 300px 200px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 300px 300px;
    animation: twinkle 7s infinite;
    opacity: 0.2;
}

.stars3 {
    background: radial-gradient(ellipse at center, rgba(108, 99, 255, 0.15) 0%, transparent 70%);
    animation: pulse 10s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Glassmorphism Effect */
.glass-effect {
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-card);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(108, 99, 255, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    filter: drop-shadow(0 0 10px rgba(108, 99, 255, 0.8));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text .highlight {
    color: var(--secondary);
    -webkit-text-fill-color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 80%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

/* Glow Button */
.btn-glow {
    padding: 0.8rem 2rem;
    background: var(--gradient-1);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow-glow);
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(108, 99, 255, 0.6);
}

.btn-glow-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 1200px;
}

.glitch-text {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 100% { text-shadow: 0 0 20px rgba(108, 99, 255, 0.5); }
    50% { text-shadow: 0 0 40px rgba(0, 217, 255, 0.8); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow-2);
    border-color: var(--secondary);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(108, 99, 255, 0.6);
}

.btn-arrow {
    transition: transform 0.3s;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(5px);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: var(--dark);
    transform: translateY(-5px);
}

/* Floating Icons */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    font-size: 3rem;
    opacity: 0.2;
    animation: floatIcon 6s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.5s);
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

/* Section Title */
.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.title-line {
    width: 100px;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 2px;
}

/* Categories */
.categories {
    padding: 6rem 5%;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.category-card {
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.category-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
}

.category-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(108, 99, 255, 0.5));
}

.category-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.category-count {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(108, 99, 255, 0.2);
    border-radius: 50px;
    font-weight: 600;
    color: var(--secondary);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s;
}

.category-card:hover .category-overlay {
    opacity: 0.1;
}

/* Featured Games */
.featured {
    padding: 6rem 5%;
    background: rgba(0, 0, 0, 0.3);
}

.games-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.game-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s;
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
}

.game-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-2);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 10;
}

.game-thumbnail {
    height: 200px;
    background: rgba(108, 99, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(108, 99, 255, 0.2);
}

.game-info {
    padding: 2rem;
}

.game-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.game-info p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.difficulty {
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.difficulty.easy {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success);
}

.difficulty.medium {
    background: rgba(255, 170, 0, 0.2);
    color: var(--warning);
}

.difficulty.hard {
    background: rgba(255, 68, 68, 0.2);
    color: var(--error);
}

.rating {
    color: var(--warning);
    font-weight: 600;
}

.btn-play {
    display: block;
    padding: 0.8rem 2rem;
    background: var(--gradient-1);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-play:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

/* Footer */
.footer {
    padding: 4rem 5% 2rem;
    margin-top: 6rem;
    border-top: 1px solid rgba(108, 99, 255, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.footer-section h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--gradient-1);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .glitch-text {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .title-line {
        width: 100%;
    }
}