/* Retro animations */
@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes flicker {
    0% { opacity: 0.8; }
    20% { opacity: 0.9; }
    40% { opacity: 0.7; }
    60% { opacity: 1; }
    80% { opacity: 0.8; }
    100% { opacity: 0.9; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Floating shapes */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.shape {
    position: absolute;
    opacity: 0.3;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary);
    top: 20%;
    left: 10%;
    animation: float 6s infinite;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: var(--secondary);
    top: 60%;
    left: 80%;
    transform: rotate(45deg);
    animation: float 8s infinite 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent);
    top: 80%;
    left: 20%;
    animation: float 7s infinite 1s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    background: var(--danger);
    top: 30%;
    left: 70%;
    transform: rotate(30deg);
    animation: float 9s infinite 0.5s;
}

/* Overlay effects */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        transparent 50%,
        transparent 100%
    );
    background-size: 100% 4px;
    animation: scanline 4s linear infinite;
}

.flicker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.03);
    animation: flicker 0.1s infinite alternate;
}

/* Title animation */
.title {
    animation: pulse 3s infinite;
}