/* ===================================
   VIDEO BACKGROUND LOADING SCREEN
   Premium Glassmorphism Design
   =================================== */

/* Main Container */
.index-loading-screen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 9999;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
}

/* Background Video */
.loading-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Dark Overlay for Text Readability */
.loading-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 12, 41, 0.8), rgba(48, 43, 99, 0.8), rgba(36, 36, 62, 0.8));
    z-index: 1;
    backdrop-filter: blur(3px);
}

/* Content Container - Glassmorphism */
.loading-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 90%;
    width: 600px;
}

/* Logo Animation */
.loading-logo {
    width: 120px;
    height: 120px;
    background: url('assets/Dharmapuri District Athletic Logo.png') no-repeat center center/contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.5));
    }
}

/* Typography */
.loading-text-container {
    text-align: center;
    width: 100%;
}

.loading-text {
    font-size: 4rem;
    font-weight: 900;
    font-style: italic;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loading-subtext {
    font-size: 1.1rem;
    color: #ffd700;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Minimalist Progress Bar */
.loading-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    width: 0%;
    animation: progressFill 6s linear forwards;
}

@keyframes progressFill {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .loading-content {
        padding: 20px;
        width: 90%;
        background: rgba(0, 0, 0, 0.5);
    }

    .loading-logo {
        width: 90px;
        height: 90px;
    }

    .loading-text {
        font-size: 2.5rem;
    }

    .loading-subtext {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
}

/* ===================================
   CREATIVE HOLOGRAM RUNNER OVERLAY
   =================================== */
.hologram-runner {
    position: fixed;
    bottom: 50px;
    left: -150px;
    /* Start from LEFT */
    width: 120px;
    height: 120px;
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: runHolo 4s linear infinite;
    /* Run Across */
    transform: scaleX(-1);
    /* Face RIGHT (Flip) */
    opacity: 0.9;
    pointer-events: none;
}

.hologram-runner::after {
    content: '🏃';
    font-size: 100px;
    filter: drop-shadow(0 0 10px #00f2fe) drop-shadow(0 0 20px #00f2fe) brightness(200%);
    animation: bounceHolo 0.3s ease-in-out infinite alternate;
    /* Vertical Bounce */
}

/* Holographic Trail / Glitch Effect */
.hologram-runner::before {
    content: '🏃';
    position: absolute;
    font-size: 100px;
    color: rgba(0, 242, 254, 0.5);
    filter: blur(2px);
    transform: translateX(-10px);
    z-index: -1;
    animation: glitchHolo 0.1s steps(2) infinite;
}

@keyframes runHolo {
    0% {
        left: -20%;
    }

    100% {
        left: 120%;
    }
}

@keyframes bounceHolo {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-15px);
    }
}

@keyframes glitchHolo {
    0% {
        opacity: 0.5;
        transform: translateX(-10px) skewX(0deg);
    }

    20% {
        opacity: 0.3;
        transform: translateX(-15px) skewX(-10deg);
    }

    40% {
        opacity: 0.6;
        transform: translateX(-5px) skewX(10deg);
    }

    100% {
        opacity: 0.4;
        transform: translateX(-10px) skewX(0deg);
    }
}