
.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}
.background-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This is the key */
    /* All other CSS is similar */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}
.text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.4);
    /* This overlay blocks clicks to video */
    pointer-events: auto;
}

h1 {
    text-align: center;
    color: white;
    margin-bottom: 10px;
    font-size: 2.5em;
    font-weight: 700;
}

.main-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out;
}

.subtitle {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out 0.5s both;
}

.cta-button {
    padding: 15px 30px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease;
    animation: fadeInUp 1s ease-out 1s both;
}

.cta-button:hover {
    background: #ff5252;
}

/* Alternative method: Invisible overlay */
.invisible-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    background: transparent;
    /* This prevents ALL clicks from reaching the video */
    pointer-events: auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    .subtitle {
        font-size: 2rem;
    }
}
