#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: transparent;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Absolute top alignment */
    padding-top: 0;
    /* No space at the top */
    overflow: hidden;
    transition: opacity 1.5s ease-in-out, visibility 1.5s ease;
}



@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

#intro-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-content {
    text-align: center;
    z-index: 3;
    /* Always on top */
    position: relative;
    opacity: 0;
    animation: introFadeIn 1.5s ease-out forwards 0.5s;
}

.intro-logo-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    position: relative;
    /* Removed overflow: hidden to prevent any clipping of the logo */
}

.intro-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    mix-blend-mode: screen;
    /* Makes black background transparent */
    /* Clean transparent look, no heavy effects */
}

.intro-title {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    letter-spacing: 5px;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, #e30b0e, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: shimmer 3s linear infinite, introGlitch 5s step-end infinite;
    position: relative;
}

/* Removed CRT scanline texture */

/* Removed horizontal scanline */

@keyframes introGlitch {
    0% {
        transform: translate(0);
        text-shadow: none;
    }

    1% {
        transform: translate(-2px, 2px);
        text-shadow: 2px 0 #ff0000, -2px 0 #00ff00;
    }

    2% {
        transform: translate(2px, -2px);
        text-shadow: -2px 0 #ff0000, 2px 0 #00ff00;
    }

    3% {
        transform: translate(0);
        text-shadow: none;
    }

    98% {
        transform: translate(0);
    }

    99% {
        transform: translate(5px, -2px);
        filter: contrast(200%);
    }

    100% {
        transform: translate(-5px, 2px);
    }
}

.loader-container {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: #e30b0e;
    box-shadow: 0 0 10px #e30b0e;
    position: absolute;
    left: 0;
    top: 0;
    transition: width 0.1s linear;
}

.intro-btn {
    margin-top: 40px;
    padding: 15px 40px;
    font-size: 1.1rem;
    letter-spacing: 2px;
    background: transparent;
    border: 1px solid #e30b0e;
    color: white;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    overflow: hidden;
}

.intro-lang-switch {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    animation: introFadeIn 1s ease-out forwards 2s;
}

.intro-lang-switch a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.intro-lang-switch a img {
    width: 20px;
    height: auto;
    border-radius: 2px;
    filter: grayscale(20%);
}

.intro-lang-switch a:hover,
.intro-lang-switch a.active {
    color: #e30b0e;
    transform: translateY(-2px);
    font-weight: 800;
}

.intro-lang-switch a.active img {
    filter: none;
    box-shadow: 0 0 10px rgba(227, 11, 14, 0.4);
}

.intro-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(227, 11, 14, 0.4), transparent);
    transition: left 0.5s ease;
}

.intro-btn:hover::before {
    left: 100%;
}

.intro-btn:hover {
    background: rgba(227, 11, 14, 0.1);
    box-shadow: 0 0 30px rgba(227, 11, 14, 0.4);
    border-color: #ff3336;
}

.intro-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Intro Animations */
@keyframes introFadeIn {
    to {
        opacity: 1;
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

.intro-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 50px;
    letter-spacing: 2px;
    font-weight: 300;
}

/* Explosion Effect for Exit */
@keyframes explode {
    0% {
        transform: scale(1);
        opacity: 1;
        filter: blur(0) brightness(1);
    }

    50% {
        filter: blur(5px) brightness(2) contrast(1.5);
        color: #e30b0e;
    }

    100% {
        transform: scale(3);
        opacity: 0;
        filter: blur(20px) brightness(5);
    }
}

.explode-out {
    animation: explode 0.8s forwards ease-in;
}

/* Data Streams (Matrix/Code Effect) */
/* Matrix Falling Code Effect */
.matrix-stream {
    position: absolute;
    color: rgba(227, 11, 14, 0.6);
    /* Slightly more visible red */
    font-family: 'Courier New', monospace;
    font-weight: 700;
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
    line-height: 1.2;
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.3);
    animation: matrixFall linear infinite;
    z-index: 1;
}

/* Hide scrollbar during intro */
html.intro-active,
body.intro-active {
    overflow: hidden !important;
}

body.intro-active .ticker-container {
    display: none !important;
}

/* Custom Scrollbar for the site - better integration */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #e30b0e;
    border-radius: 10px;
}

@keyframes matrixFall {
    0% {
        top: -100vh;
    }

    100% {
        top: 150vh;
    }
}

/* Mute Button Styles */
.intro-mute-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: auto;
    width: 65px;
    height: 65px;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(227, 11, 14, 0.4);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    z-index: 10001;
    /* Over everything including vignette */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s ease, opacity 0.8s ease;
}

.intro-mute-btn.show {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.intro-mute-btn:hover {
    background: rgba(227, 11, 14, 0.3);
    box-shadow: 0 0 20px rgba(227, 11, 14, 0.5);
    transform: scale(1.1);
}

.intro-mute-btn i {
    font-size: 1.8rem;
}