.demo-video .play-icon {
    width: 100px;
    height: 100px;
    cursor: pointer;
    transition: transform 0.2s;
}

.demo-video .play-icon:hover {
    transform: scale(1.1);
}

/* --- VIDEO MODAL STYLES (Using <video> tag) --- */

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.9);
    padding-top: 48px;
}

/* Modal Content/Box */
.modal-content {
    background-color: transparent; 
    margin: 5% auto;
    padding: 0;
    width: 80%;
    max-width: 900px; 
    border-radius: var(--border-radius-sm);
    position: relative;
}

/* The Close Button (X) */
.close-button {
    color: #fff;
    font-size: var(--font-size-xl);
    font-weight: bold;
    position: absolute;
    top: 9px;
    right: 8px;
    cursor: pointer;
    background: #00000089;
    padding: 8px 4px;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    z-index: 1001;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5); 
    transition: color 0.2s;
}

.close-button:hover,
.close-button:focus {
    color: #999;
}

/* Video Container for 16:9 Aspect Ratio */
.video-container {
    position: relative;
    /* 16:9 aspect ratio */
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius-sm);
}

/* TARGET THE <video> ELEMENT */
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Mobile Adjustments for Video Section and Modal */

@media (max-width: 768px) {
    .demo-video-section {
        flex-direction: column;
        gap: 24px;
    }
    
    .modal {
        padding-top: 24px;
    }
    .modal-content {
        width: 95%; 
        margin: 24px auto;
    }
    .close-button {
        top: 4px; 
        right: 16px;
        font-size: var(--font-size-3xl);
    }
}

@media (max-width: 500px) {
    .demo-video .play-icon {
    width: 80px;
    height: 80px;
  }
}
