/* Basic styles and reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    overflow: hidden; /* Prevents potential scrollbars */
}

/* Background video styling */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place video behind all content */
    overflow: hidden;
}

.video-background iframe {
    /* Stretch video while maintaining aspect ratio */
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 100/56.25 = 16/9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 100/56.25*100 */
    transform: translate(-50%, -50%);
    pointer-events: none; /* Makes the video unclickable */
}

/* Main container */
main {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes hero and footer to the edges */
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    color: white;
}

/* "Glassmorphism" block styling */
.hero-section {
    max-width: 960px;
    width: 100%;
    padding: 50px 40px;
    text-align: center;
    
    /* Frosted glass effect */
    background: rgba(200, 200, 210, 0.25); /* Semi-transparent silver background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* For Safari support */
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); /* Material-style shadow */
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 700; /* Bold font */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6); /* Shadow for readability */
}

.hero-section p {
    font-size: 1.2rem;
    margin-top: 15px;
    font-weight: 400;
}

/* Sponsors block styling */
.sponsors-section {
    width: 100%;
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.4); /* Dark background for contrast */
    border-radius: 10px;
}

.sponsors-section h2 {
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.sponsor-logos {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap to the next line */
    justify-content: center;
    align-items: center;
    gap: 25px; /* Space between words */
}

.sponsor-logos span {
    font-size: 1.1rem;
    font-weight: 700;
    opacity: 0.9;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem; /* Smaller heading on small screens */
    }
    .hero-section p {
        font-size: 1rem;
    }
    .sponsor-logos {
        gap: 15px;
    }
}

/* --- STYLES FOR ERROR PAGE --- */

/* Style for the "Page Not Found" subtitle */
.error-subtitle {
    font-size: 1.5rem !important; /* Use !important to override the default p style */
    font-weight: 700;
    margin-bottom: 20px;
}

/* Style for the "Go to Homepage" button */
.home-button {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.home-button:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px); /* Slight lift effect on hover */
}