/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Arial', 'Helvetica', sans-serif;
    overflow: hidden;
}

/* Main container */
.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #000;
    overflow: hidden;
}

/* Background video */
#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    color: transparent;
    font-size: 0;
    line-height: 0;
}

#background-video::before {
    content: '';
    display: none;
}

/* Background overlay for better text readability */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 2;
}

/* Title header */
.title-header {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 70%,
        transparent 100%
    );
}

.title-header .main-title,
h1.main-title {
    font-size: clamp(2rem, 5vw, 4rem) !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 10px 20px !important;
    border-radius: 10px !important;
    transform-origin: center !important;
    text-align: center !important;
    color: #ff0000 !important;
    animation: titleStrobe 0.5s linear infinite !important;
    animation-fill-mode: both !important;
    animation-play-state: running !important;
}

/* Strobe animation - flashing colors - MUST BE VISIBLE */
@keyframes titleStrobe {
    0% {
        color: #ff0000 !important;
        text-shadow: 
            0 0 5px #ff0000,
            0 0 10px #ff0000,
            0 0 15px #ff0000,
            0 0 20px #ff0000,
            0 0 30px #ff0000,
            0 0 40px #ff0000 !important;
    }
    25% {
        color: #ffff00 !important;
        text-shadow: 
            0 0 5px #ffff00,
            0 0 10px #ffff00,
            0 0 15px #ffff00,
            0 0 20px #ffff00,
            0 0 30px #ffff00,
            0 0 40px #ffff00 !important;
    }
    50% {
        color: #00ff00 !important;
        text-shadow: 
            0 0 5px #00ff00,
            0 0 10px #00ff00,
            0 0 15px #00ff00,
            0 0 20px #00ff00,
            0 0 30px #00ff00,
            0 0 40px #00ff00 !important;
    }
    75% {
        color: #0000ff !important;
        text-shadow: 
            0 0 5px #0000ff,
            0 0 10px #0000ff,
            0 0 15px #0000ff,
            0 0 20px #0000ff,
            0 0 30px #0000ff,
            0 0 40px #0000ff !important;
    }
    100% {
        color: #ff0000 !important;
        text-shadow: 
            0 0 5px #ff0000,
            0 0 10px #ff0000,
            0 0 15px #ff0000,
            0 0 20px #ff0000,
            0 0 30px #ff0000,
            0 0 40px #ff0000 !important;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .title-header {
        padding: 1.5rem 1rem;
    }
    
    .main-title {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }
}

@media (max-width: 480px) {
    .title-header {
        padding: 1rem 0.5rem;
    }
    
    .main-title {
        font-size: clamp(1.2rem, 3.5vw, 2rem);
        letter-spacing: 0.03em;
    }
}

/* Ensure image loads properly */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: -1;
}

/* Hide audio element */
audio {
    display: none;
}

/* Hide video fallback text when video is supported */
#background-video {
    color: transparent;
    font-size: 0;
}

#background-video::before {
    content: '';
}

/* Footer with visit counter */
.page-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.4) 30%,
        rgba(0, 0, 0, 0.8) 100%
    );
    padding: 1rem;
    text-align: center;
}

.footer-content {
    color: white;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.05em;
}

#visit-counter {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

/* Responsive footer */
@media (max-width: 768px) {
    .page-footer {
        padding: 0.75rem;
    }
    
    .footer-content {
        font-size: 0.85rem;
    }
    
    #visit-counter {
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .page-footer {
        padding: 0.5rem;
    }
    
    .footer-content {
        font-size: 0.75rem;
    }
    
    #visit-counter {
        padding: 0.3rem 0.6rem;
    }
}
