/* Reset */
body, html {
    margin: 0;
    padding: 0;
    /* font-family: Arial, sans-serif; */
}

/* Video Section */
.video-section {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.video-container {
    width: 100%;
    height: 100%;
}

.video-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw; /* Full viewport width */
    height: 56.25vw; /* Maintain 16:9 aspect ratio */
    max-width: none; /* Prevent the default iframe scaling */
    transform: translate(-50%, -50%); /* Center the video by default */
}

#backgroundVideo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintain the aspect ratio */
}

@media (max-width: 991px) {
    .video-container iframe {
        transform: translate(-50%, calc(-50% - 60px)); /* Center and move 100px upward for mobile */
    }
}

/* Video Controls */
.controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 10px;
}

.control-button {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-button:hover {
    background: rgba(255, 255, 255, 0.8);
    color: black;
}

/* Hello World Section */
.hello-world-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f4f4;
    font-size: 2rem;
    font-family: Arial, sans-serif;
    color: #333;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

#preloader i {
    font-size: 50px;
    color: white;
    animation: spin 1s linear infinite;
}

#preloader h1 {
    color: white;
    font-family: 'Arial', sans-serif;
    font-size: 24px;
    margin-top: 20px;
    letter-spacing: 2px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#preloader.hidden {
    display: none;
}
