/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* CRITICAL FIX: Changed background to transparent. 
   If this is solid black (#000), it paints a black canvas 
   OVER your video, blocking it from view.
*/
body, html {
    width: 100%;
    height: 100%;
    background: transparent; 
    background-color: transparent;
    color: #fff;
    position: relative;
    overflow: hidden; /* Prevents accidental scrolling */
}

/* Video Background styling - Force it to the absolute bottom layer */
#bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    z-index: -2; /* Pushed to the absolute bottom */
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none; /* Allows clicks to pass through to buttons */
    background-color: #000; /* Falls back to black only if the video fails to load */
}

/* Dark overlay to ensure text is readable over the video */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45); /* Adjust darkness here (0.0 to 1.0) */
    z-index: -1; /* Sits directly on top of the video, but behind the text grid */
    pointer-events: none;
}

/* Grid Layout - Sitting safely at the front (z-index: 1) */
.grid-container {
    position: relative;
    z-index: 1; 
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile browser bars */
    padding: 40px; 
}

/* Corner alignments */
.corner {
    display: flex;
    flex-direction: column;
}

.top-left {
    justify-content: flex-start;
    align-items: flex-start;
}

.top-right {
    justify-content: flex-start;
    align-items: flex-end;
    text-align: right;
}

.bottom-left {
    justify-content: flex-end;
    align-items: flex-start;
}

.bottom-right {
    justify-content: flex-end;
    align-items: flex-end;
}

/* Typography & Elements */
h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.clock {
    font-size: 0.9rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.clock .label {
    opacity: 0.5;
    margin-right: 8px;
}

/* CTA Button styling */
.cta-button {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
}

.cta-button:hover {
    background: #fff;
    color: #000;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .grid-container {
        padding: 24px; /* Pulls content inward for mobile screen edges */
    }
    
    h1 {
        font-size: 1.2rem;
    }
    
    .clock {
        font-size: 0.8rem;
    }
    
    .bottom-right, .bottom-left {
        padding-bottom: 16px; /* Keeps elements safely above mobile navigation bars */
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 0.8rem;
    }
}