/* ==============================================
   Portfolio Tab Buttons - Hover Effects
   Matches Social Media Icons Style
   ============================================== */

/* Portfolio Tab Navigation Buttons */
.portfolio-tap .nav-link {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border-radius: 8px;
    z-index: 1;
}

/* Default state - maintain existing styling but prepare for hover */
.portfolio-tap .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0096ff 0%, #00c896 50%, #64ffda 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: 8px;
}

/* Glow effect */
.portfolio-tap .nav-link::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #0096ff, #00c896, #64ffda);
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.4s ease;
    z-index: -2;
    border-radius: 8px;
}

/* Hover State - Show gradient background */
.portfolio-tap .nav-link:hover::before {
    opacity: 1;
}

/* Hover State - Show glow */
.portfolio-tap .nav-link:hover::after {
    opacity: 0.6;
}

/* Hover State - Transform and shadow */
.portfolio-tap .nav-link:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 150, 255, 0.3);
    color: #ffffff !important;
}

/* Active State - Different gradient */
.portfolio-tap .nav-link.active {
    background: linear-gradient(135deg, #0096ff 0%, #00c896 100%) !important;
    color: #ffffff !important;
    box-shadow:
        0 5px 20px rgba(0, 150, 255, 0.4),
        0 2px 10px rgba(0, 200, 150, 0.3);
    position: relative;
}

/* Active State - Glow */
.portfolio-tap .nav-link.active::after {
    opacity: 0.5;
    animation: activeTabGlow 3s ease-in-out infinite;
}

/* Animation for active tab */
@keyframes activeTabGlow {

    0%,
    100% {
        opacity: 0.5;
        filter: blur(15px);
    }

    50% {
        opacity: 0.8;
        filter: blur(20px);
    }
}

/* Ensure text color is maintained */
.portfolio-tap .nav-link:hover,
.portfolio-tap .nav-link.active {
    background-clip: padding-box;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .portfolio-tap .nav-link:hover {
        transform: translateX(3px);
    }
}