/* Loading Screen Styles - Clean & Minimal */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 1s ease-out, visibility 1s ease-out;
    overflow: hidden;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    position: relative;
}

/* Gothic Elements Styling */
.gothic-elements {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.barbed-wire {
    font-family: monospace;
    font-size: 1.2rem;
    color: #666666;
    text-shadow:
        0 0 10px #8a2be2,
        0 0 20px #8a2be2;
    animation: wireGlow 3s ease-in-out infinite alternate;
    letter-spacing: 2px;
}

.barbed-wire.top {
    animation-delay: 0s;
}

.barbed-wire.bottom {
    animation-delay: 1.5s;
}

@keyframes wireGlow {
    0% {
        text-shadow:
            0 0 10px #8a2be2,
            0 0 20px #8a2be2;
        opacity: 0.6;
    }
    100% {
        text-shadow:
            0 0 20px #8a2be2,
            0 0 30px #8a2be2,
            0 0 40px #ff0000;
        opacity: 1;
    }
}

.loading-cross {
    margin: 1rem 0;
    display: inline-block;
}

.cross-symbol {
    font-size: 5rem;
    color: #ffffff;
    text-shadow:
        0 0 20px #ff0000,
        0 0 40px #ff0000,
        0 0 60px #8a2be2,
        0 0 80px #0066ff;
    animation: crossPulse 2s ease-in-out infinite alternate;
    display: block;
    filter: drop-shadow(0 0 20px #8a2be2);
}

@keyframes crossPulse {
    0% {
        transform: scale(1) rotate(0deg);
        text-shadow:
            0 0 20px #ff0000,
            0 0 40px #ff0000,
            0 0 60px #8a2be2,
            0 0 80px #0066ff;
    }
    100% {
        transform: scale(1.1) rotate(2deg);
        text-shadow:
            0 0 30px #ff0000,
            0 0 60px #ff0000,
            0 0 80px #8a2be2,
            0 0 100px #0066ff;
    }
}

/* Loading Text */
.loading-text {
    margin-bottom: 3rem;
}

.loading-title {
    font-family: 'Metal Mania', cursive;
    font-size: 3.5rem;
    color: #ff0000;
    text-shadow: 
        0 0 20px #ff0000,
        2px 2px 4px #000000;
    margin: 0 0 1rem 0;
    letter-spacing: 6px;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.loading-subtitle {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    color: #0066ff;
    text-shadow:
        0 0 15px #0066ff,
        1px 1px 2px #000000;
    margin: 0 0 0.5rem 0;
    letter-spacing: 3px;
    animation: subtitleGlow 2s ease-in-out infinite alternate;
}

.loading-tagline {
    font-family: 'Metal Mania', cursive;
    font-size: 1rem;
    color: #8a2be2;
    text-shadow:
        0 0 10px #8a2be2,
        0 0 20px #8a2be2,
        1px 1px 2px #000000;
    margin: 0;
    letter-spacing: 2px;
    animation: taglineGlow 2.5s ease-in-out infinite alternate;
    text-transform: uppercase;
}

@keyframes titleGlow {
    0% {
        text-shadow: 
            0 0 20px #ff0000,
            2px 2px 4px #000000;
    }
    100% {
        text-shadow: 
            0 0 30px #ff0000,
            0 0 40px #ff0000,
            2px 2px 4px #000000;
    }
}

@keyframes subtitleGlow {
    0% {
        text-shadow:
            0 0 15px #0066ff,
            1px 1px 2px #000000;
    }
    100% {
        text-shadow:
            0 0 25px #0066ff,
            0 0 35px #0066ff,
            1px 1px 2px #000000;
    }
}

@keyframes taglineGlow {
    0% {
        text-shadow:
            0 0 10px #8a2be2,
            0 0 20px #8a2be2,
            1px 1px 2px #000000;
    }
    100% {
        text-shadow:
            0 0 20px #8a2be2,
            0 0 30px #8a2be2,
            0 0 40px #ff0000,
            1px 1px 2px #000000;
    }
}

/* Loading Progress */
.loading-progress {
    width: 300px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff0000 0%, #8a2be2 25%, #0066ff 50%, #8a2be2 75%, #ff0000 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
    position: relative;
    animation: progressShine 2s ease-in-out infinite;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    animation: progressSweep 1.5s ease-in-out infinite;
}

@keyframes progressShine {
    0%, 100% {
        box-shadow:
            0 0 5px rgba(255, 0, 0, 0.5),
            0 0 10px rgba(138, 43, 226, 0.4),
            0 0 15px rgba(0, 102, 255, 0.3);
    }
    50% {
        box-shadow:
            0 0 15px rgba(255, 0, 0, 0.8),
            0 0 20px rgba(138, 43, 226, 0.7),
            0 0 25px rgba(0, 102, 255, 0.6);
    }
}

@keyframes progressSweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.loading-percentage {
    text-align: center;
    margin-top: 1rem;
    font-family: 'Bebas Neue', cursive;
    font-size: 1rem;
    color: #ffffff;
    text-shadow: 1px 1px 2px #000000;
    letter-spacing: 1px;
}

/* Subtle background effect */
.loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 0, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 102, 255, 0.03) 0%, transparent 50%);
    animation: backgroundPulse 4s ease-in-out infinite alternate;
}

@keyframes backgroundPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cross-symbol {
        font-size: 4rem;
    }
    
    .barbed-wire {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .loading-title {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }
    
    .loading-subtitle {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }
    
    .loading-tagline {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .loading-progress {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .cross-symbol {
        font-size: 3rem;
    }
    
    .barbed-wire {
        font-size: 0.8rem;
        letter-spacing: 0px;
    }
    
    .loading-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .loading-subtitle {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    
    .loading-tagline {
        font-size: 0.8rem;
        letter-spacing: 0px;
    }
    
    .loading-progress {
        width: 200px;
    }
}