/* Neon glow animation */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Scanline effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 50%, rgba(0, 255, 255, 0.03) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1000;
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #00ffff, #ff00ff);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #ff00ff, #00ffff);
}

/* Button glow effects */
button:hover {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5) !important;
}

/* Card hover effects */
.hover\:border-magenta-400:hover {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { border-color: #00ffff; }
    50% { border-color: #ff00ff; }
}

/* Input focus effects */
input:focus, select:focus {
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

/* Range slider styling */
input[type="range"] {
    -webkit-appearance: none;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-track {
    background: #333;
    height: 6px;
    border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Text glow effects */
.text-cyan-400 {
    text-shadow: 0 0 5px currentColor;
}

.text-magenta-400 {
    text-shadow: 0 0 5px currentColor;
}

.text-yellow-400 {
    text-shadow: 0 0 5px currentColor;
}

/* Modal animations */
.fixed {
    backdrop-filter: blur(5px);
}

/* Retro grid background */
.bg-black {
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Image pixelated rendering */
img {
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Responsive font sizes */
@media (max-width: 768px) {
    .pixel-font {
        font-size: 0.75rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    .text-6xl {
        font-size: 2.5rem;
    }
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Custom color classes */
.text-magenta-400 {
    color: #c084fc;
}

.text-magenta-500 {
    color: #a855f7;
}

.border-magenta-400 {
    border-color: #c084fc;
}

.bg-magenta-400 {
    background-color: #c084fc;
}

.bg-magenta-500 {
    background-color: #a855f7;
}

.from-magenta-500 {
    --tw-gradient-from: #a855f7;
}

.to-cyan-500 {
    --tw-gradient-to: #06b6d4;
}

.hover\:from-cyan-500:hover {
    --tw-gradient-from: #06b6d4;
}

.hover\:to-magenta-500:hover {
    --tw-gradient-to: #a855f7;
}