/* ================================================
   Video Showcase Section Styles
   Custom styles for video section with play button
   ================================================ */

/* Color Palette */
:root {
    --vs-primary: #26c976;
    --vs-secondary: #ff5722;
    --vs-white: #ffffff;
    --vs-overlay: rgba(0, 0, 0, 0.5);
    --vs-overlay-hover: rgba(0, 0, 0, 0.4);
}

/* Main Section Container */
.video-showcase-section {
    position: relative;
    min-height: 500px;
    background-image: url('../images/std1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Overlay */
.vs-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgb(38 241 84 / 80%) 0%, rgb(4 94 14 / 60%) 100%);    z-index: 1;
    transition: all 0.3s ease;
}


/* Content */
.vs-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 20px;
}

/* Title */
.vs-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--vs-white);
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Subtitle */
.vs-subtitle {
    font-size: 18px;
    color: var(--vs-white);
    margin-bottom: 50px;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Play Button Wrapper */
.vs-play-button-wrapper {
    position: relative;
    display: inline-block;
}

/* Play Button */
.vs-play-button {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--vs-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.vs-play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.vs-play-button:active {
    transform: scale(0.95);
}

/* Play Icon */
.vs-play-icon {
    width: 35px;
    height: 35px;
    color: var(--vs-primary);
    margin-left: 5px;
    transition: all 0.3s ease;
}

.vs-play-button:hover .vs-play-icon {
    color: var(--vs-secondary);
    transform: scale(1.1);
}

/* Pulse Rings */
.vs-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 3px solid var(--vs-white);
    border-radius: 50%;
    animation: vs-pulse 2s ease-out infinite;
    opacity: 0;
}

.vs-pulse-ring-2 {
    animation-delay: 1s;
}

@keyframes vs-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

/* Rotating Animation */
@keyframes vs-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.vs-play-button::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid transparent;
    border-top-color: var(--vs-white);
    border-right-color: var(--vs-white);
    border-radius: 50%;
    animation: vs-rotate 3s linear infinite;
    opacity: 0.3;
}

/* Video Modal */
.vs-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.vs-video-modal.active {
    display: flex;
}

/* Modal Overlay */
.vs-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
    animation: vs-fade-in 0.3s ease;
}

@keyframes vs-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Modal Content */
.vs-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    z-index: 10000;
    animation: vs-zoom-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes vs-zoom-in {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Close Button */
.vs-close-button {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: var(--vs-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.vs-close-button:hover {
    background: var(--vs-primary);
    color: var(--vs-white);
    transform: rotate(90deg);
}

.vs-close-button i {
    font-size: 20px;
}

/* Video Container */
.vs-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.vs-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .video-showcase-section {
        min-height: 450px;
        background-attachment: scroll;
    }

    .vs-title {
        font-size: 38px;
    }

    .vs-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .vs-play-button {
        width: 90px;
        height: 90px;
    }

    .vs-play-icon {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 767px) {
    .video-showcase-section {
        min-height: 400px;
    }

    .vs-content {
        padding: 60px 15px;
    }

    .vs-title {
        font-size: 32px;
    }

    .vs-subtitle {
        font-size: 15px;
        margin-bottom: 35px;
    }

    .vs-play-button {
        width: 80px;
        height: 80px;
    }

    .vs-play-icon {
        width: 28px;
        height: 28px;
    }

    .vs-modal-content {
        width: 95%;
    }

    .vs-close-button {
        top: -45px;
        width: 35px;
        height: 35px;
    }

    .vs-close-button i {
        font-size: 18px;
    }
}

@media (max-width: 575px) {
    .video-showcase-section {
        min-height: 350px;
    }

    .vs-title {
        font-size: 26px;
    }

    .vs-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .vs-play-button {
        width: 70px;
        height: 70px;
    }

    .vs-play-icon {
        width: 25px;
        height: 25px;
    }

    .vs-close-button {
        top: -40px;
        width: 32px;
        height: 32px;
    }

    .vs-close-button i {
        font-size: 16px;
    }
}

/* Print Styles */
@media print {

    .video-showcase-section,
    .vs-video-modal {
        display: none;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    .vs-play-button,
    .vs-play-icon,
    .vs-pulse-ring,
    .vs-play-button::before,
    .vs-modal-overlay,
    .vs-modal-content {
        animation: none;
        transition: none;
    }
}