* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background: #000;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
}

/* LOADER */
.loader {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s, visibility 1s;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader h1 {
    font-size: 70px;
    letter-spacing: 10px;
    margin-bottom: 30px;
}

.loader-bar-track {
    width: 240px;
    height: 3px;
    background: #222;
}

.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: #ff3030;
    transition: width .15s linear;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(0, 0, 0, .3);
    backdrop-filter: blur(15px);
}

.logo {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 4px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 40px;
    transition: .3s;
}

nav a:hover {
    color: #ff3030;
}

/* VIDEO / CANVAS */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
    background: #000;
}

#frames-canvas {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* TEXT / OVERLAY */
.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: right;
    z-index: 5;
    width: 100%;
    padding: 0 20px;
    pointer-events: none;
}

.venom-logo {

    width:700px;
    max-width:90vw;

}


.venom-logo text {

    font-family:Impact, Arial Black, sans-serif;

    font-size:150px;

    font-weight:900;

    fill:#050505;

    stroke:url(#neonGradient);

    stroke-width:6;

    stroke-dasharray:900;

    stroke-dashoffset:900;

    animation:
    venomStroke 2.5s linear infinite;


    filter:
    drop-shadow(0 0 5px white)
    drop-shadow(0 0 15px #ff3030)
    drop-shadow(0 0 35px #ff0000);

}


@keyframes venomStroke {

    0% {

        stroke-dashoffset:900;

    }


    100% {

        stroke-dashoffset:0;

    }

}

.overlay p {
    margin-top: 25px;
    font-size: 26px;
    letter-spacing: 5px;
    text-shadow: 0 0 15px rgba(255, 48, 48, .5);
}
/* VENOM REAL NEON EDGE */

.overlay h1 {

    position: relative;

    font-size:110px;
    font-weight:900;
    letter-spacing:8px;

    color:#050505;

    -webkit-text-stroke:3px white;

    text-shadow:
    0 0 10px #000000,
    0 0 30px #ffffff,
    0 0 70px #7a30ff;

}


/* خط نورانی روی لبه حروف */

.overlay h1::after {

    content:"VENOM";

    position:absolute;

    inset:0;

    color:transparent;

    -webkit-text-stroke:3px transparent;


    background:
    linear-gradient(
        90deg,
        transparent,
        #ff3030,
        #ff9d30,
        #30d0ff,
        #7a30ff,
        transparent
    );


    background-size:300% 100%;


    -webkit-background-clip:text;

    background-clip:text;


    animation:
    venom-light 3s linear infinite;


    filter:
    drop-shadow(0 0 8px #ff3030)
    drop-shadow(0 0 20px #7a30ff);

}



@keyframes venom-light {

    0%{
        background-position:0% 50%;
    }


    100%{
        background-position:300% 50%;
    }

}

/* SCROLL HEIGHT */
.scroll-space {
    height: 900vh;
    position: relative;
    z-index: 10;
}

/* PROGRESS */
.progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #222;
    z-index: 200;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: #ff3030;
}

@media (max-width: 768px) {
    header {
        padding: 20px;
    }

    .logo {
        font-size: 18px;
    }

    nav {
        display: none;
    }

    .overlay h1 {
        font-size: 55px;
    }

    .overlay p {
        font-size: 18px;
    }
}
