/*
 * 🌟 Welcome to MGV Pixels: Pioneers in Medical Animation 🌟
 * 
 * You are witnessing the innovative work crafted by **APLUS TECHNOLOGIES**.
 *
 * As the chosen ones in the realm of medical animation, we strive to create
 * visually stunning and scientifically accurate animations that captivate and inform.
 * 
 * Join us on this journey as we transform complex medical concepts into 
 * engaging visual narratives, bringing clarity and understanding to the forefront.
 * 
 * 💫 Together, we can illuminate the path to better healthcare through 
 * artistic excellence and cutting-edge technology. 💫
 * 
 * Explore our work and discover the magic of medical animation!
 * 
 * ⚠️ Please note: Any content copied from this site without permission 
 * from MGV Pixels will be considered illegal and a violation 
 * of copyright laws. We take copyright infringement seriously.
 *
 * ❗️ Please do not edit or remove this header. It is essential for 
 * maintaining our brand integrity and compliance.
*/

.modal,
.play-icon-overlay {
    transform: translate(-50%, -50%)
}

.animation-item:hover,
.close,
.play-icon-overlay {
    cursor: pointer
}

.animation-section {
    padding: 50px 0;
    background-color: #1a1a1a;
    text-align: center;
    color: #fff
}

.animation-section p {
    font-size: 20px;
    color: #bbb7b7;
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto
}

.animation-section .content-container {
    max-width: 1400px;
    margin: 0 auto
}

.animation-section .animation-title {
    font-size: 50px;
    margin-bottom: 30px;
    letter-spacing: 1.5px
}

.animation-section .animation-description {
    font-size: 24px;
    margin-bottom: 50px
}

.video-collection {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px
}

.animation-item {
    flex: 1 1 calc(50% - 20px);
    text-align: left;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
    max-width: 100%
}

.animation-video {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    user-select: none;
}

.animation-item .video-caption {
    margin: 15px 0;
    font-size: 20px;
    color: #90ff00;
    text-align: center;
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, .8);
    border-radius: 8px;
    transition: transform .3s, background-color .3s
}

.animation-item .thumbnail-image {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    width: 90%;
    max-width: 900px;
    height: auto;
    background-color: rgba(0, 0, 0, .95);
    text-align: center;
    padding: 30px
}

.modal video {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    margin: 5% auto
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: 700
}

.video-container {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden
}

.play-icon-overlay {
    position: absolute;
    top: 90%;
    left: 95%;
    font-size: 50px;
    color: #90ff00;
    opacity: .8;
    transition: opacity .3s
}

.play-icon-overlay:hover {
    opacity: 1
}

.video-controls {
    display: flex;
    justify-content: center;
    margin-top: 15px
}

.video-controls button {
    background: 0 0;
    border: none;
    color: #fff;
    font-size: 28px;
    margin: 0 15px;
    cursor: pointer
}

.video-controls button:hover {
    color: #0c0
}

@media (max-width:1400px) {
    .animation-section .animation-title {
        font-size: 46px
    }

    .animation-section .animation-description {
        font-size: 22px
    }
}

@media (max-width:1200px) {
    .animation-item {
        flex: 1 1 calc(50% - 15px)
    }
}

@media (max-width:992px) {
    .animation-item {
        flex: 1 1 calc(100% - 20px)
    }
}

@media (max-width:768px) {
    .animation-section {
        padding: 40px 0
    }

    .animation-title {
        font-size: 36px
    }

    .animation-description {
        font-size: 18px
    }

    .video-container {
        height: 250px
    }

    .play-icon-overlay {
        font-size: 40px
    }

    .video-controls button {
        font-size: 22px
    }
}

@media (max-width:576px) {
    .animation-section {
        padding: 30px 0
    }

    .animation-title {
        font-size: 28px
    }

    .animation-description {
        font-size: 16px
    }

    .video-container {
        height: 200px
    }
}