/* Dangerous Animated Background Effects */
body {
    background: linear-gradient(45deg, #0a0a0a, #1a1a1a, #2a2a2a, #0a0a0a);
    background-size: 400% 400%;
    animation: gradientShift 8s ease-in-out infinite;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 100% 50%;
    }

    50% {
        background-position: 100% 100%;
    }

    75% {
        background-position: 0% 100%;
    }
}

/* Animated Background Overlay */
.danger-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
}

/* Floating Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #03FF0E;
    border-radius: 50%;
    animation: float 6s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* Moving Lines */
.moving-lines {
    position: absolute;
    width: 100%;
    height: 100%;
}

.line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, #03FF0E, transparent);
    animation: moveLine 4s infinite linear;
}

@keyframes moveLine {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(100vw);
        opacity: 0;
    }
}

/* Flickering Neon Effect */
.neon-flicker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(3, 255, 14, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 60, 0.1) 0%, transparent 50%);
    animation: flicker 3s infinite alternate;
    pointer-events: none;
}

@keyframes flicker {

    0%,
    100% {
        opacity: 0.1;
    }

    10% {
        opacity: 0.3;
    }

    20% {
        opacity: 0.1;
    }

    30% {
        opacity: 0.4;
    }

    40% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.5;
    }

    60% {
        opacity: 0.1;
    }

    70% {
        opacity: 0.3;
    }

    80% {
        opacity: 0.1;
    }

    90% {
        opacity: 0.4;
    }
}

/* Matrix Rain Effect */
.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.1;
}

.matrix-column {
    position: absolute;
    top: -100px;
    color: #03FF0E;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    animation: matrixFall 3s infinite linear;
}

@keyframes matrixFall {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Glitch Effect */
.glitch-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #03FF0E, #ff003c, #03FF0E);
    background-size: 200% 200%;
    animation: glitchShift 2s infinite;
    opacity: 0.05;
    pointer-events: none;
}

@keyframes glitchShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 100% 50%;
    }

    50% {
        background-position: 100% 100%;
    }

    75% {
        background-position: 0% 100%;
    }
}

.nav-link.active {
    text-decoration: underline;
    text-decoration-color: #03FF0E;
    text-decoration-thickness: 2px;
}

/* Ensure nav menu is hidden by default on mobile */
#nav-menu {
    display: none;
}

#nav-menu.active {
    display: flex;
}

/* Ensure nav menu is visible on larger screens */
@media (min-width: 768px) {
    #nav-menu {
        display: flex;
    }

    #nav-toggle {
        display: none;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0px 0 #03FF0E;
    }

    50% {
        box-shadow: 0 0 25px 10px #03FF0E;
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fade-in 1.5s ease-out;
}

/* Ensure content is above background effects */
.content-wrapper {
    position: relative;
    z-index: 10;
}