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

:root {
    --primary-color: #00ffff;
    --secondary-color: #ff00ff;
    --accent-color: #ffff00;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --gradient-primary: linear-gradient(135deg, #00ffff, #ff00ff);
    --gradient-secondary: linear-gradient(135deg, #ff00ff, #ffff00);
    --shadow-neon: 0 0 20px rgba(0, 255, 255, 0.5);
    --border-radius: 8px;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

.logo h1 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.game-text {
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
}

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

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

.nav-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.8);
}

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

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

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

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(0, 255, 255, 0.1) 0%, var(--bg-primary) 70%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 2;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.glow-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(0, 255, 255, 0.8), 0 0 40px rgba(255, 0, 255, 0.5);
    }
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.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;
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-neon);
}

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

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

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

/* Game Controller */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-controller {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

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

.controller-body {
    width: 300px;
    height: 180px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 40px;
    position: relative;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 255, 255, 0.3);
}

.dpad {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
}

.dpad-up, .dpad-down, .dpad-left, .dpad-right, .dpad-center {
    position: absolute;
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.dpad-center {
    width: 20px;
    height: 20px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.dpad-up, .dpad-down {
    width: 20px;
    height: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.dpad-up { top: 0; }
.dpad-down { bottom: 0; }

.dpad-left, .dpad-right {
    width: 15px;
    height: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.dpad-left { left: 0; }
.dpad-right { right: 0; }

.buttons {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
}

.btn-a, .btn-b, .btn-x, .btn-y {
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.btn-a {
    background: #ff4444;
    right: 10px;
    bottom: 10px;
}

.btn-b {
    background: #ffff44;
    right: 35px;
    bottom: 35px;
}

.btn-x {
    background: #4444ff;
    left: 35px;
    bottom: 35px;
}

.btn-y {
    background: #44ff44;
    left: 10px;
    bottom: 10px;
}

/* Particles Background */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particles::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 
        100px 200px var(--primary-color),
        200px 100px var(--secondary-color),
        300px 300px var(--accent-color),
        400px 150px var(--primary-color),
        500px 250px var(--secondary-color),
        600px 80px var(--accent-color),
        700px 350px var(--primary-color),
        800px 180px var(--secondary-color),
        900px 280px var(--accent-color),
        1000px 120px var(--primary-color);
    animation: sparkle 3s linear infinite;
}

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

/* Games Section */
.games-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

.game-card:hover::before {
    left: 100%;
}

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

.game-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-game {
    font-size: 4rem;
    opacity: 0.7;
}

.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.game-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.game-tags {
    display: flex;
    gap: 0.5rem;
}

.tag {
    padding: 4px 8px;
    background: rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--primary-color);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

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

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

.stats {
    display: flex;
    gap: 2rem;
}

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

.stat-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.tech-item {
    background: var(--bg-tertiary);
    padding: 1rem;
    text-align: center;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-weight: 600;
}

.tech-item:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

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

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-form {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    background: var(--bg-primary);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Footer */
.footer {
    background: var(--bg-primary);
    padding: 50px 0 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

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

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    padding: 8px 12px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
        padding: 2rem 0;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats {
        justify-content: center;
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .tech-stack {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .btn {
        width: 200px;
    }
}

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

    .section-title {
        font-size: 2rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .social-links {
        justify-content: center;
    }

    .controller-body {
        width: 250px;
        height: 150px;
    }
}
