﻿h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.8rem;
    background: linear-gradient(90deg,#ff00ff,#00eaff,#ffdd00);
    -webkit-background-clip: text;
    color: transparent;
    animation: fadeIn 1s ease;
}

/* -------------------------
   FILTER BUTTONS
-------------------------- */
.filter-buttons {
    text-align: center;
    margin-bottom: 30px;
}

    .filter-buttons button {
        padding: 10px 20px;
        margin: 5px;
        border: none;
        border-radius: 30px;
        font-size: 1rem;
        cursor: pointer;
        background: #222;
        color: #fff;
        transition: 0.3s;
    }

        .filter-buttons button:hover,
        .filter-buttons button.active {
            background: #ff00ff;
        }

/* -------------------------
   GALLERY GRID
-------------------------- */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 25px;
}

/* -------------------------
   VIDEO CARD
-------------------------- */
.video-card {
    position: relative;
    border-radius: 18px;
    padding: 3px;
    background: linear-gradient(135deg, #0f1e32, #0f1e32, #2990cb);
    background-size: 400% 400%;
    animation: gradientShift 6s ease infinite;
    cursor: pointer;
    transition: 0.3s;
}

    .video-card:hover {
        transform: scale(1.04);
    }

.video-inner {
    background: #111;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

    /* Thumbnail Video / Image */
    .video-inner video,
    .video-inner img {
        width: 100%;
        display: block;
        height: 190px;
        object-fit: cover;
        transition: 0.4s;
    }

    /* Hover Video Preview */
    .video-inner video {
        opacity: 0;
    }

.video-card:hover .video-inner video {
    opacity: 1;
}

/* Title */
.video-title {
    padding: 15px;
    font-weight: bold;
    font-size: 16px;
    color: #fff;
    text-align: center;
}

/* Neon Play Icon */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: 0.3s;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.play-btn {
    width: 70px;
    height: 70px;
    background: rgb(41 144 203);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px #37baec, 0 0 25px #2990cb;
}

    .play-btn::before {
        content: '';
        border-left: 22px solid #fff;
        border-top: 12px solid transparent;
        border-bottom: 12px solid transparent;
    }

/* -------------------------
   LIGHTBOX
-------------------------- */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox-content iframe {
    width: 80vw;
    height: 45vw;
    max-width: 900px;
    max-height: 506px;
    align-content:center;
    align-items:center;
}

#lightboxClose {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    cursor: pointer;
    color: white;
}


    .lightbox.active {
        opacity: 1;
        pointer-events: auto;
    }

    .lightbox video {
        width: 80%;
        max-width: 900px;
    }

.close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2.2rem;
    color: #ff00ff;
    cursor: pointer;
}

/* -------------------------
   ANIMATIONS
-------------------------- */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
