@font-face {
    font-family: 'ClashDisplay-Variable';
    src: url('../fonts/ClashDisplay/Fonts/WEB/fonts/ClashDisplay-Variable.woff2') format('woff2'),
        url('../fonts/ClashDisplay/Fonts/WEB/fonts/ClashDisplay-Variable.woff') format('woff'),
        url('../fonts/ClashDisplay/Fonts/WEB/fonts/ClashDisplay-Variable.ttf') format('truetype');
    font-weight: 200 700;
    font-display: swap;
    font-style: normal;
}

:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent-color: #38bdf8;
}

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

body {
    font-family: 'ClashDisplay-Variable', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container {
    text-align: center;
    padding: 2rem;
    animation: fadeIn 1.5s ease-out;
    max-width: 600px;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

p {
    font-size: 1.25rem;
    color: #94a3b8;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.loader {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.loader::after {
    content: '';
    position: absolute;
    width: 40%;
    height: 100%;
    background: var(--accent-color);
    left: -40%;
    animation: loading 1.5s infinite ease-in-out;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1.2s cubic-bezier(0.87, 0, 0.13, 1);
    transform: translateY(0);
}

#loading-screen.hidden {
    transform: translateY(-100%);
    pointer-events: none;
}

.loader-text {
    font-family: 'ClashDisplay-Variable', sans-serif;
    color: transparent;
    font-size: 9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    /* Slideshow Background */
    -webkit-background-clip: text;
    background-clip: text;
    background-image: url('../images/loading-1.png');
    background-size: cover;
    background-position: center;
    animation: textSlideshow 2s linear forwards;
}

.marquee-container {
    display: flex;
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
}

.marquee-content {
    display: flex;
    animation: marquee 10s linear infinite;
    min-width: 100%;
    flex-shrink: 0;
    justify-content: space-around;
}

.marquee-content span {
    font-family: 'ClashDisplay-Variable', sans-serif;
    color: var(--text-color);
    font-size: 15vw;
    /* Responsive huge size */
    font-weight: 400;
    letter-spacing: -0.02em;
    padding: 0 0.2em;
    /* Spacing between words */
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

@keyframes textSlideshow {

    0%,
    24.99% {
        background-image: url('../images/loading-1.png');
    }

    25%,
    49.99% {
        background-image: url('../images/loading-2.png');
    }

    50%,
    74.99% {
        background-image: url('../images/loading-3.png');
    }

    75%,
    100% {
        background-image: url('../images/loading-4.png');
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loading {
    0% {
        left: -40%;
    }

    100% {
        left: 140%;
    }
}

@keyframes pulse {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

@media (max-width: 768px) {
    .loader-text {
        font-size: 18vw;
    }

    .marquee-content span {
        font-size: 20vw;
        padding: 0 0.1em;
    }
}