.center-text {
    text-align: center;
    width: 100%;
}

.portfolio-section {
    padding: 100px 0;
    background: #fff;
}

.video-wrapper {
    position: relative;
    margin: 0 100px; /* 100px gaps from left/right */
    height: 80vh;
    border-radius: 20px;
    overflow: hidden;
    cursor: none; /* Mouse hide kar diya taake button nazar aaye */
}

.showcase-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.video-wrapper:hover .showcase-video {
    filter: grayscale(0%);
}

/* --- MAGNETIC BUTTON --- */
.magnetic-btn {
    position: fixed; /* JS se handle hoga */
    width: 100px;
    height: 100px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    pointer-events: none;
    z-index: 50;
    transition: transform 0.1s ease-out, width 0.3s, height 0.3s;
}

#btn-target {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    height: 100px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .video-wrapper {
        margin: 0 20px; /* Mobile par gap kam kar diya */
        height: 50vh;
        cursor: auto;
    }
    .magnetic-btn {
        display: none; /* Mobile par mouse tracking nahi hoti */
    }
}


.magnetic-btn {
    position: fixed; /* Fixed hi rakhein taake screen par ghoome */
    width: 140px;
    height:50px;
     color: white;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    pointer-events: none; /* Sab se important: taake video click ho sakay */
    z-index: 999;
    opacity: 0;
    transform: scale(0);
    /* Smooth scaling transition */
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.3s ease;
}

/* Jab video par hover ho to button bara ho jaye */
.video-wrapper:hover .magnetic-btn {
    opacity: 1;
    transform: scale(1);
}

.video-wrapper {
    position: relative;
    cursor: none; /* Mouse chupa do taake sirf custom button dikhe */
}
