/* ==========================================================================
   1. RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0b1325; /* Dark fallback background */
    color: #ffffff;
    overflow-x: hidden;
}

/* ==========================================================================
   2. HERO VIDEO BACKGROUND
   ========================================================================== */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Lowest background layer */
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures video fills screen without stretching */
}

/* Darkens the video so white text remains perfectly readable */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2; /* Sits directly over video container */
}

/* ==========================================================================
   3. HERO CONTENT & TYPOGRAPHY
   ========================================================================== */
.hero-content {
    color: #ee00d7;
    position: relative;
    max-width: 900px;
    width: 100%;
    z-index: 3; /* Safely floats above everything else */
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.tagline {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(0, 217, 255, 0.9);
    margin-bottom: 3rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   4. INTERACTIVE GRID NAVIGATION
   ========================================================================== */
.landing-menu {
    width: 100%;
}

li {
    padding: 6px;
    margin: 6px;
}

.landing-menu ul {
    list-style: none;
    /* Creates a responsive 2-column layout on desktops, collapses to 1-column on mobile */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Custom styling for the long informational button so it stands out evenly */
.landing-menu ul li:nth-child(4) {
    grid-column: span 1;
}

/* Turn links into clean, modern pill-buttons */
.menu-btn {
    display: block;
    text-decoration: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px); /* Soft glass effect over the video */
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 1.1rem 1.5rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Elegant hover animation */
.menu-btn:hover {
    background: rgba(144, 0, 255, 0.95);
    color: #00f2ff; /* Text color flips to dark on hover */
    border-color: #9000ad;
    transform: translateY(3px) scale(1.10); /* Subtle lifting motion */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   5. MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .tagline {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }
    
    .landing-menu ul {
        grid-template-columns: 1fr; /* Forces single column stack on mobile phones */
        gap: 0.85rem;
    }
    
    .menu-btn {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }
}