.hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-animation .matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: #2FFF71;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.2;
    opacity: 0.4;
    filter: blur(1px);
    text-shadow: 
        0 0 8px rgba(47, 255, 113, 1),
        0 0 15px rgba(47, 255, 113, 0.8),
        0 0 25px rgba(47, 255, 113, 0.6),
        0 0 35px rgba(29, 185, 84, 0.4);
}

.matrix-rain .column {
    position: absolute;
    top: -20px;
    width: 20px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    white-space: nowrap;
    animation: rain linear infinite;
    transform-origin: 50% -50%;
}

.matrix-rain .column:nth-child(1) { left: 0%; animation: rain 7s linear infinite; animation-delay: -6.5s; }
.matrix-rain .column:nth-child(2) { left: 20%; animation: rain 7.5s linear infinite; animation-delay: -2s; }
.matrix-rain .column:nth-child(3) { left: 40%; animation: rain 6.8s linear infinite; animation-delay: -3.5s; }
.matrix-rain .column:nth-child(4) { left: 60%; animation: rain 7.2s linear infinite; animation-delay: -1.5s; }
.matrix-rain .column:nth-child(5) { left: 80%; animation: rain 8s linear infinite; animation-delay: -4.5s; }
.matrix-rain .column:nth-child(6) { left: 95%; animation: rain 6.5s linear infinite; animation-delay: -3s; }

/* Background Blobs for additional atmosphere */
.hero-animation .blob {
    position: absolute;
    width: 300px;
    height: 300px;
    background: #1DB954;
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(30px);
}

.hero-animation .blob:nth-child(1) {
    top: 20%;
    left: -100px;
    animation: float1 10s infinite ease-in-out;
}

.hero-animation .blob:nth-child(2) {
    top: 50%;
    right: -100px;
    animation: float2 12s infinite ease-in-out;
}

.hero-animation .blob:nth-child(3) {
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    animation: float3 11s infinite ease-in-out;
}

/* Subtle dot pattern */
.hero-animation .dots {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#1DB954 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.05;
    animation: dots-animation 20s infinite linear;
}

/* Animations */
@keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(100px, 50px); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-100px, -50px); }
}

@keyframes float3 {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -100px); }
}

@keyframes dots-animation {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50px);
    }
}

@keyframes rain {
    0% {
        transform: translateY(-100%);
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Error animation specific styling for 404 page */
.error-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
} 