/* FULLSCREEN CYBERPUNK EFFECTS */
/* Loading screens, transitions, and immersive effects */

.fullscreen-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, var(--cyber-dark) 0%, var(--cyber-bg) 50%, var(--cyber-navy) 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: var(--font-primary) !important;
    backdrop-filter: blur(10px);
    animation: loader-entrance 0.5s ease-in;
    overflow: hidden;
}

.fullscreen-loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/><feColorMatrix in="SourceGraphic" values="0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0"/></filter></svg>') repeat;
    opacity: 0.03;
    z-index: 1;
}

.fullscreen-loader::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(300px, 50vw, 600px);
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-purple), var(--neon-pink), transparent);
    animation: scan-line-x 2s linear infinite;
    opacity: 0.8;
}

@kvnyges loader-entrance {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* Main content container */
.fullscreen-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.fullscreen-title {
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    animation: text-pulse 2s ease-in-out infinite alternate;
}

.fullscreen-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--neon-pink);
    margin-bottom: 3rem;
    letter-spacing: 2px;
    opacity: 0.8;
    animation: fade-in-up 1s ease-out 0.5s both;
}

/* Loading progress bar */
.loading-progress {
    width: clamp(300px, 50vw, 600px);
    height: 6px;
    background: rgba(0, 255, 200, 0.1);
    border-radius: 3px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    animation: fade-in-up 1s ease-out 1s both;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
    border-radius: 3px;
    transition: width 0.3s ease;
    box-shadow: var(--glow-cyan);
    animation: progress-shine 2s linear infinite;
}

/* Loading particles */
.loading-particles {
    position: relative;
    width: 300px;
    height: 200px;
    margin: 2rem auto;
    animation: fade-in-up 1s ease-out 1.5s both;
}

.loading-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--neon-cyan);
    border-radius: 50%;
    animation: particle-float-random 3s linear infinite both;
}

.loading-particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    background: var(--neon-cyan);
}

.loading-particle:nth-child(2) {
    left: 20%;
    top: 80%;
    animation-delay: 0.5s;
    background: var(--neon-purple);
}

.loading-particle:nth-child(3) {
    left: 70%;
    top: 30%;
    animation-delay: 1s;
    background: var(--neon-pink);
}

.loading-particle:nth-child(4) {
    left: 80%;
    top: 70%;
    animation-delay: 1.5s;
    background: var(--neon-green);
}

.loading-particle:nth-child(5) {
    left: 50%;
    top: 50%;
    animation-delay: 2s;
    background: var(--neon-blue);
}

/* Custom loader styles */
.loader-style-matrix {
    position: relative;
    width: 200px;
    height: 100px;
    margin: 2rem auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    border: 1px solid var(--neon-cyan);
    overflow: hidden;
    animation: fade-in-up 1s ease-out 1.5s both;
}

.loader-style-digital {
    font-size: 2rem;
    font-family: var(--font-mono) !important;
    color: var(--neon-green);
    margin: 1rem 0;
    letter-spacing: 2px;
    animation: text-pulse 1s ease-in-out infinite alternate,
               fade-in-up 1s ease-out 1.5s both;
}

/* Exit animation */
.fullscreen-loader.fade-out {
    animation: loader-exit 0.8s ease-in;
}

@keyframes loader-exit {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.1); }
}

/* Utility animations */
@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes text-pulse {
    0%, 100% {
        filter: brightness(1);
        text-shadow: 0 0 20px currentColor;
    }
    50% {
        filter: brightness(1.2);
        text-shadow: 0 0 30px currentColor, 0 0 40px currentColor;
    }
}

@keyframes progress-shine {
    0% { box-shadow: var(--glow-cyan); }
    50% { box-shadow: 0 0 20px rgba(0, 255, 200, 0.8), 0 0 40px rgba(0, 255, 200, 0.6); }
    100% { box-shadow: var(--glow-cyan); }
}

@keyframes particle-float-random {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 1;
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
        opacity: 0.7;
    }
    66% {
        transform: translateY(10px) rotate(240deg);
        opacity: 0.4;
    }
}

@keyframes scan-line-x {
    0% { transform: translate(-50%, -50%) translateX(-50vw); }
    100% { transform: translate(-50%, -50%) translateX(50vw); }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .fullscreen-loader {
        padding: 1rem;
    }

    .fullscreen-title {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }

    .fullscreen-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .loading-progress {
        width: clamp(250px, 80vw, 400px);
    }

    .loader-style-matrix {
        width: 150px;
        height: 80px;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .fullscreen-loader {
        background: radial-gradient(circle at center, #000 0%, #111 100%);
    }

    .fullscreen-title {
        background: linear-gradient(45deg, #fff, #00ffc8);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fullscreen-loader::after,
    .progress-bar,
    .loading-particle,
    .fullscreen-title {
        animation: none !important;
    }

    .fullscreen-title {
        filter: brightness(1.1) !important;
    }
}