/* ==========================================================================
   Cinematic Homepage Style for MW Dashboard (Complete)
   ========================================================================== */

:root {
    --text-color: #ffffff;
    --button-bg-color: rgba(0, 0, 0, 0.2);
    --button-border-color: rgba(255, 255, 255, 0.5);
    --button-hover-bg: rgba(255, 255, 255, 0.1);
    --transition-speed: 0.5s ease;
    --brand-orange: #FF8C00; /* Added brand orange color variable */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    background-color: #000000;
}

/* --- Preloader Styles --- */
#preloader {
    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: opacity 0.75s ease, visibility 0.75s;
    visibility: visible;
    opacity: 1;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top: 5px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Main Page Styles --- */
#video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease; /* Slow, cinematic fade */
}

.video-scene.active {
    opacity: 1;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    z-index: 2;
}

#navigation-hub {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    padding: 2rem;
}

/* Modified brand-title to remove default color */
.brand-title { 
    font-size: 4rem; 
    font-weight: 700; 
    /* color: var(--text-color); REMOVED - colors now handled by spans */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); 
    margin-bottom: 2.5rem; 
} 

/* New styles for specific parts of the brand title */
.brand-mw {
    color: var(--text-color); /* White */
}

.brand-dashboard {
    color: var(--brand-orange); /* Orange from the logo */
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 900px;
    width: 100%;
} 

.nav-button { 
    color: var(--text-color); 
    background-color: var(--button-bg-color); 
    border: 1px solid var(--button-border-color); 
    padding: 15px 20px; 
    text-decoration: none; 
    font-weight: 600; 
    border-radius: 8px; 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    transition: background-color var(--transition-speed), transform var(--transition-speed); 
} 

.nav-button:hover { 
    background-color: var(--button-hover-bg); 
    transform: translateY(-3px); 
} 

@media (max-width: 768px) { 
    .brand-title { 
        font-size: 2.5rem; 
    } 
    .button-grid { 
        grid-template-columns: 1fr; 
    } 
}