@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

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

body {
    font-family: 'Orbitron', monospace;
    background: radial-gradient(ellipse at center, #001122 0%, #000000 70%);
    overflow-x: hidden;
}

/* Glow Effects */
.glow-text {
    text-shadow: 
        0 0 5px currentColor,
        0 0 10px currentColor,
        0 0 15px currentColor;
}

.glow-image {
    filter: drop-shadow(0 0 10px #0070f3);
    transition: filter 0.3s ease;
}

.glow-image:hover {
    filter: drop-shadow(0 0 20px #0070f3);
}

.glow-border {
    box-shadow: 0 0 10px #0070f3;
}

.terminal-glow {
    box-shadow: 
        0 0 20px rgba(34, 197, 94, 0.3),
        inset 0 0 20px rgba(34, 197, 94, 0.1);
}

/* Animations */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.animate-blink {
    animation: blink 1s infinite;
}

@keyframes scan-lines {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

.scan-lines::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0070f3, transparent);
    animation: scan-lines 3s linear infinite;
    z-index: 1000;
}

/* Loading Bar */
.loading-bar {
    position: relative;
    overflow: hidden;
}

.loading-progress {
    width: 0%;
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
}

/* Retro CRT Effect */
.retro-crt {
    position: relative;
}

.retro-crt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        transparent 50%, 
        rgba(0, 255, 0, 0.03) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1;
}

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

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #0070f3;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Button Hover Effects */
button {
    position: relative;
    overflow: hidden;
}

button::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;
}

button:hover::before {
    left: 100%;
}

/* Matrix Effect Enhancement */
canvas {
    image-rendering: pixelated;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .glow-text {
        text-shadow: 
            0 0 3px currentColor,
            0 0 6px currentColor;
    }
    
    .terminal-glow {
        box-shadow: 
            0 0 10px rgba(34, 197, 94, 0.3),
            inset 0 0 10px rgba(34, 197, 94, 0.1);
    }
}

/* Special PS2 Blue Gradient */
.ps2-gradient {
    background: linear-gradient(135deg, #000428 0%, #004e92 100%);
}

/* Nostalgic Game Case Shadow */
.game-case-shadow {
    box-shadow: 
        5px 5px 15px rgba(0, 0, 0, 0.7),
        inset -2px -2px 5px rgba(255, 255, 255, 0.1);
}