/* General Styles */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; /* Prevent scrolling */
    font-family: 'Inter', sans-serif;
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#background-video,
#background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire screen */
    z-index: 1; /* Layer for the background */
}

.content-overlay {
    position: relative; /* Change to relative to stack correctly */
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 2; /* Layer for the content, above the background */
}

/* Play Button */
.play-button {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 15px 30px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

    .play-button:hover {
        background: linear-gradient(90deg, #FA6C12 0%, #FF77D7 100%);
        color: black;
        transform: scale(1.03);
        box-shadow: 0 8px 30px rgba(255, 119, 215, 0.3);
    }



.play-svg-icon {
    width: 28px;
    height: 28px;
    fill: currentColor;
    stroke: currentColor;
    transition: all 0.3s ease;
}

.play-fa-icon {
    font-size: 28px;
    color: currentColor;
    transition: all 0.3s ease;
}

.play-button:hover .play-svg-icon,
.play-button:hover .play-fa-icon {
    transform: scale(1.05);
}

/* Video Popup */
.video-popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

    .video-popup.active {
        display: flex;
        opacity: 1;
    }

.popup-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.popup-content {
    position: relative;
    z-index: 1001;
    width: 100%;
    height: 100%;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-popup.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: fixed; /* Use fixed to position relative to viewport */
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.3s ease, opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

    .popup-close.hidden {
  opacity: 0;
        visibility: hidden;
    }

    .popup-close:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: rotate(90deg);
        color: #FF77D7;
    }

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0; /* Remove border-radius for full screen */
    box-shadow: none; /* Remove shadow for full screen */
}

    .video-wrapper iframe,
    .video-wrapper video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }


/* Responsive Design */
@media (max-width: 768px) {
    .play-button {
        padding: 12px 25px;
        font-size: 16px;
        gap: 10px; /* Reduce gap */
    }

    .play-fa-icon {
        font-size: 22px; /* Smaller icon */
    }

    .popup-close {
        top: 20px;
   right: 20px;
  width: 45px;
        height: 45px;
    font-size: 22px;
    }
}

@media (max-width: 480px) {
 .play-button {
 padding: 10px 20px;
        font-size: 14px;
  gap: 8px; /* Further reduce gap */
    }

    .play-fa-icon {
        font-size: 20px; /* Even smaller icon */
    }

    .popup-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}
