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

:root {
    --primary-color: #00ff88;
    --secondary-color: #ff0080;
    --accent-color: #8000ff;
    --dark-bg: #0a0a0f;
    --darker-bg: #050508;
    --card-bg: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --glow-green: 0 0 20px rgba(0, 255, 136, 0.5);
    --glow-purple: 0 0 20px rgba(128, 0, 255, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* Particle Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(180deg, var(--darker-bg) 0%, var(--dark-bg) 50%, #0f0f1a 100%);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 5px 30px rgba(0, 255, 136, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-shadow: var(--glow-green);
}

.logo-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

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

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

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
}

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

.nav-link:hover {
    color: var(--primary-color);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 2rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    animation: pulse 4s infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    text-shadow:
        0.05em 0 0 rgba(255, 0, 128, 0.75),
        -0.025em -0.05em 0 rgba(0, 255, 136, 0.75),
        0.025em 0.05em 0 rgba(128, 0, 255, 0.75);
    animation: glitch 500ms infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-before 650ms infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-0.025em, -0.0125em);
    opacity: 0.8;
}

.glitch::after {
    animation: glitch-after 375ms infinite;
    clip-path: polygon(0 80%, 100% 20%, 100% 100%, 0 100%);
    transform: translate(0.0125em, 0.025em);
    opacity: 0.8;
}

@keyframes glitch {
    0% { text-shadow: 0.05em 0 0 rgba(255, 0, 128, 0.75), -0.05em -0.025em 0 rgba(0, 255, 136, 0.75), -0.025em 0.05em 0 rgba(128, 0, 255, 0.75); }
    14% { text-shadow: 0.05em 0 0 rgba(255, 0, 128, 0.75), -0.05em -0.025em 0 rgba(0, 255, 136, 0.75), -0.025em 0.05em 0 rgba(128, 0, 255, 0.75); }
    15% { text-shadow: -0.05em -0.025em 0 rgba(255, 0, 128, 0.75), 0.025em 0.025em 0 rgba(0, 255, 136, 0.75), -0.05em -0.05em 0 rgba(128, 0, 255, 0.75); }
    49% { text-shadow: -0.05em -0.025em 0 rgba(255, 0, 128, 0.75), 0.025em 0.025em 0 rgba(0, 255, 136, 0.75), -0.05em -0.05em 0 rgba(128, 0, 255, 0.75); }
    50% { text-shadow: 0.025em 0.05em 0 rgba(255, 0, 128, 0.75), 0.05em 0 0 rgba(0, 255, 136, 0.75), 0 -0.05em 0 rgba(128, 0, 255, 0.75); }
    99% { text-shadow: 0.025em 0.05em 0 rgba(255, 0, 128, 0.75), 0.05em 0 0 rgba(0, 255, 136, 0.75), 0 -0.05em 0 rgba(128, 0, 255, 0.75); }
    100% { text-shadow: -0.025em 0 0 rgba(255, 0, 128, 0.75), -0.025em -0.025em 0 rgba(0, 255, 136, 0.75), -0.025em -0.05em 0 rgba(128, 0, 255, 0.75); }
}

@keyframes glitch-before {
    0%, 100% { clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%); }
    33% { clip-path: polygon(0 15%, 100% 15%, 100% 60%, 0 60%); }
    66% { clip-path: polygon(0 30%, 100% 30%, 100% 75%, 0 75%); }
}

@keyframes glitch-after {
    0%, 100% { clip-path: polygon(0 80%, 100% 20%, 100% 100%, 0 100%); }
    33% { clip-path: polygon(0 60%, 100% 40%, 100% 85%, 0 85%); }
    66% { clip-path: polygon(0 40%, 100% 60%, 100% 95%, 0 95%); }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin: 1.5rem 0 2.5rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 2px;
}

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

.btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #00cc6a);
    color: var(--dark-bg);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.4);
}

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

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

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

.btn-glow {
    animation: glow-pulse 2s infinite;
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 5px 20px rgba(0, 255, 136, 0.4); }
    50% { box-shadow: 0 5px 40px rgba(0, 255, 136, 0.8); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: float 3s infinite;
}

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

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
    margin: 0 auto 10px;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

/* Sections */
section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 1rem auto;
}

/* About Section */
.about {
    background: linear-gradient(180deg, transparent 0%, rgba(26, 26, 46, 0.5) 50%, transparent 100%);
}

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

.about-text .lead {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(0, 255, 136, 0.1);
    box-shadow: var(--glow-green);
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: 900;
}

.stat-item p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

.image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.3);
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-frame:hover img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(128, 0, 255, 0.2));
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.image-frame:hover .image-overlay {
    opacity: 0.2;
}

/* Games Section */
.games {
    padding: 8rem 0;
}

.featured-game {
    position: relative;
    background: var(--card-bg);
    border-radius: 30px;
    padding: 4rem;
    margin-bottom: 5rem;
    border: 2px solid rgba(0, 255, 136, 0.2);
    overflow: hidden;
}

.game-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(128, 0, 255, 0.1), transparent 70%),
                radial-gradient(circle at bottom left, rgba(0, 255, 136, 0.1), transparent 70%);
}

.game-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.game-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.game-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-shadow: var(--glow-green);
}

.game-tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.game-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.game-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.5));
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

.platforms {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(128, 0, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(128, 0, 255, 0.3);
}

.platform-label {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.platform-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.platform {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

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

.game-visual {
    position: relative;
}

.game-screenshot {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(128, 0, 255, 0.4);
}

.game-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-frame {
    position: absolute;
    inset: -10px;
    border: 3px solid var(--primary-color);
    border-radius: 25px;
    pointer-events: none;
    opacity: 0.5;
}

.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.float-item {
    position: absolute;
    font-size: 3rem;
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.8));
}

.float-1 {
    top: -20px;
    right: -20px;
    animation: float-1 4s infinite;
}

.float-2 {
    bottom: 10%;
    left: -30px;
    animation: float-2 5s infinite;
}

.float-3 {
    top: 50%;
    right: -40px;
    animation: float-3 6s infinite;
}

@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -20px) rotate(180deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, -30px) rotate(-180deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, 20px) rotate(180deg); }
}

/* Gallery */
.gallery-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

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

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3/2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    background: linear-gradient(180deg, transparent 0%, rgba(26, 26, 46, 0.5) 50%, transparent 100%);
}

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

.contact-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-info > p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: translateX(10px);
}

.contact-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.5));
}

.contact-method h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
}

.contact-method a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-method a:hover {
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--glow-green);
}

.contact-form button {
    align-self: flex-start;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: var(--darker-bg);
    border-top: 2px solid rgba(0, 255, 136, 0.2);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

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

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem;
        border-top: 2px solid rgba(0, 255, 136, 0.2);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .about-content,
    .game-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .game-features {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .featured-game {
        padding: 2rem;
    }

    .game-title {
        font-size: 2.5rem;
    }
}

/* Animation utilities */
[data-aos] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(50px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}
