body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('silkruote.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.dust-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none; /* Let clicks pass through if needed, though we track mouse on window/body */
    
    /* The dust look */
    background-color: rgba(30, 30, 30, 0.6); /* Darken slightly */
    
    /* Apply the noise */
    /* We can use the SVG filter on a pseudo element or the element itself. 
       Using a pseudo element for the noise texture allows us to mix it better. */
}

.dust-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Use the SVG filter defined in HTML */
    filter: url(#noiseFilter);
    opacity: 0.6; /* Adjust noise intensity */
    mix-blend-mode: overlay;
}

/* The interactive clearing effect */
.dust-overlay {
    /* 
       Masking:
       Transparent = Hidden (Cleared dust)
       Opaque = Visible (Dusty)
       
       We want a circle at cursor to be transparent.
    */
    -webkit-mask-image: radial-gradient(circle 150px at var(--x, 50%) var(--y, 50%), transparent 0%, black 100%);
    mask-image: radial-gradient(circle 150px at var(--x, 50%) var(--y, 50%), transparent 0%, black 100%);
    
    /* Smooth transition for the mask movement if desired, but instant is usually better for 'flashlight' feel. 
       Let's add a slight transition to the opacity if we want it to fade in/out, but for position, instant is best.
    */
}

/* UI Elements */
.logo {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 3;
    color: #fff;
    font-family: 'Courier New', Courier, monospace; /* Tech/Military feel */
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 4px;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.quote {
    position: absolute;
    top: 50%;
    left: 80px;
    transform: translateY(-50%);
    z-index: 3;
    color: #fff;
    font-family: sans-serif;
    font-size: 1.5rem;
    line-height: 1.6;
    max-width: 400px;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
    border-left: 4px solid #fff;
    padding-left: 20px;
}

.waitlist-btn {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 3;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid #fff;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    letter-spacing: 2px;
    cursor: pointer;
}

.waitlist-btn:hover {
    background-color: #fff;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    width: 580px; /* Slightly larger than iframe */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #ccc;
}

/* Responsive Design for Tablets and Mobile */
@media screen and (max-width: 1024px) {
    .quote {
        left: 40px;
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 768px) {
    .logo {
        top: 20px;
        left: 20px;
        font-size: 1.5rem;
    }

    .quote {
        top: 40%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80%;
        max-width: none;
        text-align: center;
        border-left: none;
        border-bottom: 3px solid #fff;
        padding-left: 0;
        padding-bottom: 20px;
        font-size: 1.2rem;
    }

    .waitlist-btn {
        right: 50%;
        bottom: 50px;
        transform: translateX(50%);
        width: auto;
        white-space: nowrap;
        font-size: 1rem;
        padding: 12px 30px;
    }

    .modal-content {
        width: 90%;
        padding: 10px;
    }
    
    .close-modal {
        right: 10px;
        top: -35px;
    }
}

@media screen and (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .quote {
        font-size: 1rem;
        width: 90%;
    }

    .waitlist-btn {
        width: 80%;
        text-align: center;
    }
}
