@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Space+Grotesk:wght@400;700&display=swap');

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

body {
    font-family: 'Space Grotesk', sans-serif;
    overflow: hidden;
}

h1, h2, h3 {
    font-family: 'Press Start 2P', cursive;
}

.particle {
    transition: all 0.1s ease-out;
    user-select: none;
}

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

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff2d95, #9d4edd);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff2d95, #00f0ff);
}

/* Glow effects */
.glow {
    box-shadow: 0 0 20px rgba(255, 45, 149, 0.5);
}

button:hover {
    box-shadow: 0 0 20px rgba(255, 45, 149, 0.7);
}

/* Smooth transitions */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Code editor enhancements */
textarea {
    tab-size: 4;
    -moz-tab-size: 4;
}

textarea::selection {
    background: rgba(157, 78, 221, 0.5);
}

/* Achievement animations */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-bounce {
    animation: slideInRight 0.5s ease-out, float 2s ease-in-out infinite 0.5s;
}

/* Pulse animation for vibe meter */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 45, 149, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 45, 149, 1);
    }
}

.animate-pulse {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Gradient text */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}