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

:root {
    --primary-color: #ff006e;
    --secondary-color: #00f5ff;
    --accent-color: #ffbe0b;
    --bg-dark: #0a0e27;
    --bg-darker: #050816;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    --card-bg: rgba(20, 25, 50, 0.8);
    --glow-primary: 0 0 20px rgba(255, 0, 110, 0.5);
    --glow-secondary: 0 0 20px rgba(0, 245, 255, 0.5);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-darker);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
}

.cube {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.1), rgba(0, 245, 255, 0.1));
    border: 1px solid rgba(255, 0, 110, 0.3);
    animation: float 20s infinite ease-in-out;
}

.cube:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.cube:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.cube:nth-child(3) {
    top: 40%;
    left: 10%;
    animation-delay: 4s;
    animation-duration: 20s;
}

.cube:nth-child(4) {
    top: 80%;
    left: 60%;
    animation-delay: 1s;
    animation-duration: 16s;
}

.cube:nth-child(5) {
    top: 20%;
    left: 70%;
    animation-delay: 3s;
    animation-duration: 22s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-100px) rotate(180deg);
        opacity: 0.6;
    }
}

/* Navigation */
.navbar {
    background: rgba(10, 14, 39, 0.95);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 0, 110, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 2rem;
    animation: rotate 3s infinite linear;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-text {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    width: 80%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

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

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.hero-content {
    max-width: 1000px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Glitch Effect */
.glitch {
    position: relative;
    color: var(--text-light);
    text-shadow: 
        2px 2px 0 var(--primary-color),
        -2px -2px 0 var(--secondary-color);
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 90%, 100% {
        text-shadow: 
            2px 2px 0 var(--primary-color),
            -2px -2px 0 var(--secondary-color);
    }
    95% {
        text-shadow: 
            5px 0 0 var(--primary-color),
            -5px 0 0 var(--secondary-color);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
}

/* Buttons */
.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #ff3d8b);
    color: white;
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.8);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: var(--glow-secondary);
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-gray);
}

/* Featured Section */
.featured {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.featured-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 0, 110, 0.2);
    cursor: pointer;
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(255, 0, 110, 0.3);
    border-color: var(--primary-color);
}

.card-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2), rgba(0, 245, 255, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: rotate(0deg) translate(-100%, -100%); }
    100% { transform: rotate(0deg) translate(100%, 100%); }
}

.game-icon {
    font-size: 5rem;
    filter: drop-shadow(0 0 20px rgba(255, 0, 110, 0.5));
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.card-content p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

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

.badge {
    background: var(--primary-color);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.rating {
    color: var(--accent-color);
    font-weight: bold;
}

/* Community Section */
.community {
    padding: 4rem 0;
    background: rgba(10, 14, 39, 0.5);
}

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

.community-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0, 245, 255, 0.2);
    transition: all 0.3s ease;
}

.community-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
}

.community-card .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.community-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.pulse {
    animation: pulse 2s infinite;
}

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

/* Games Page Styles */
.games-header {
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.filter-btn {
    padding: 0.8rem 2rem;
    background: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255, 0, 110, 0.3);
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    background: rgba(255, 0, 110, 0.1);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: var(--glow-primary);
}

.games-section {
    padding: 2rem 0 4rem;
}

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

.game-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 0, 110, 0.2);
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 50px rgba(255, 0, 110, 0.4);
    border-color: var(--primary-color);
}

.game-card-image {
    height: 250px;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2), rgba(0, 245, 255, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.game-icon-large {
    font-size: 6rem;
    filter: drop-shadow(0 0 30px rgba(255, 0, 110, 0.6));
    transition: all 0.3s ease;
}

.game-card:hover .game-icon-large {
    transform: scale(1.2) rotate(10deg);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-btn {
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--glow-primary);
    transition: all 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(255, 0, 110, 0.9);
}

.game-card-content {
    padding: 1.5rem;
}

.game-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.game-card-content p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.players {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    padding: 2rem;
    text-align: center;
    border-top: 2px solid rgba(255, 0, 110, 0.3);
    margin-top: 4rem;
}

.footer p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-icon {
    font-size: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-icon:hover {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 10px var(--primary-color));
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .featured-grid,
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-menu a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Hidden class for filtering */
.hidden {
    display: none !important;
}

/* Smooth transitions for filtering */
.game-card {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

