*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    /* Keep the height auto so #scroll-container defines the scrollable area */
    background-color: #000;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    /* Smooth overlay interactions but let the page scroll freely */
}

/* 
 * The scroll container defines how far the user can scroll.
 * We set this to 500vh to give a luxuriously long scrub distance.
 */
#scroll-container {
    height: 500vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1; /* Below the fixed elements */
}

/* 
 * The fixed wrapper that pins the video to the screen. 
 */
#video-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    overflow: hidden;
    background-color: #000;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* Let any clicks pass through if needed */
}

/*
 * Fixed Contact Overlay - Bottom Left
 */
#contact-overlay {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 10;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    width: min(calc(100vw - 4rem), 380px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

#contact-overlay:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.logo-title {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.contact-title {
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.contact-email, .contact-social {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 300;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: color 0.3s ease;
}

.contact-email:hover, .contact-social:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.contact-form textarea {
    resize: none;
}

.btn-send {
    background: #fff;
    color: #000;
    border: none;
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: 0.5rem;
}

.btn-send:hover {
    background: #e0e0e0;
}

.btn-send:active {
    transform: scale(0.98);
}

.btn-deck {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.btn-deck:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive Overrides */
@media (max-width: 768px) {
    #contact-overlay {
        bottom: 1rem;
        left: 1rem;
        width: calc(100vw - 2rem);
        padding: 1.5rem;
    }
    
    .logo-title {
        font-size: 1.5rem;
    }
    
    #scroll-container {
        /* Still keep plenty of scroll on mobile but 500vh feels longer due to lower screen real-estate */
        height: 400vh;
    }
}
