* {
    font-family: 'Space Grotesk', sans-serif;
    box-sizing: border-box;
}

#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Hide scrollbar for templates */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Glow effects */
.glow-green {
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.glow-cyan {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* Sparkle animation for credit banner */
@keyframes sparkle {
    0%, 100% { 
        text-shadow: 0 0 5px rgba(168, 85, 247, 0.5);
    }
    50% { 
        text-shadow: 0 0 20px rgba(168, 85, 247, 0.8), 0 0 30px rgba(0, 255, 65, 0.5);
    }
}

.sparkle-text {
    animation: sparkle 2s ease-in-out infinite;
}

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

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

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

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

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Focus states with glow */
input:focus, textarea:focus {
    box-shadow: 0 0 0 2px rgba(0, 255, 65, 0.3);
}

/* Button hover effects */
button:not(:disabled):hover {
    transform: translateY(-1px);
}

button:not(:disabled):active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    h1 {
        font-size: 1.5rem !important;
    }
    
    .text-5xl {
        font-size: 2rem !important;
    }
}

/* Selection color */
::selection {
    background: rgba(0, 255, 65, 0.3);
    color: white;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Matrix neon green text glow */
.matrix-glow {
    color: #00ff41;
    text-shadow: 0 0 10px #00ff41, 0 0 20px #00ff41, 0 0 30px #00ff41;
}

/* Confetti button special effect */
@keyframes rainbow-border {
    0% { border-color: #ff6b6b; }
    25% { border-color: #ffd93d; }
    50% { border-color: #6bff6b; }
    75% { border-color: #6bd4ff; }
    100% { border-color: #ff6b6b; }
}

.rainbow-border {
    animation: rainbow-border 2s linear infinite;
}