:root {
    --bg-color: #050505;
    --text-color: #ff3333;
    /* Red for dramatic effect */
    --glow-color: rgba(255, 51, 51, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    height: 100vh;
    /* Fallback */
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
}

.container {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    height: 100vh;
    /* Fallback */
    height: 100dvh;

    /* Add a vignette effect */
    background: radial-gradient(circle, transparent 20%, #000000 100%);
}

.scrolling-text {
    white-space: nowrap;
    font-size: 15vw;
    /* Very large font */
    font-weight: 900;
    color: var(--text-color);
    text-transform: uppercase;
    text-shadow: 0 0 20px var(--glow-color), 0 0 40px var(--glow-color);
    will-change: transform;
    /* Pulse animation for the glow */
    animation: glow-pulse 2s infinite alternate;
}

/* Animation class to be controlled by JS for more complex behavior */
.animate-scroll {
    /* Use 'scroll-left' animation defined below */
    /* We need to combine animations if we want both pulse and scroll on the same element, 
       but 'animation' property overwrites. 
       Better to separate them or use comma-separated values. */
    animation: scroll-left 60s linear infinite, glow-pulse 2s infinite alternate;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes glow-pulse {
    from {
        text-shadow: 0 0 20px var(--glow-color), 0 0 40px var(--glow-color);
    }

    to {
        text-shadow: 0 0 30px var(--glow-color), 0 0 60px var(--glow-color), 0 0 10px white;
    }
}

/* Utility to pause animation */
.paused {
    /* Only pause the scroll, keep the glow pulsing? 
       animation-play-state: paused pauses ALL animations. 
       That's fine, the text "freezes" completely. */
    animation-play-state: paused !important;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .scrolling-text {
        font-size: 35vw;
        /* Much larger on mobile to fill screen vertically */
    }
}