﻿.portfolio-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 9px;
    background: #050505;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

    /* خط نورانی متحرک */
    .portfolio-btn::before {
        content: "";
        position: absolute;
        z-index: -2;
        width: 160%;
        height: 350%;
        background: conic-gradient( transparent 0deg, transparent 250deg, #ffffff 285deg, #00e5ff 315deg, transparent 350deg );
        animation: neonRotate 3s linear infinite;
    }

    /* سطح داخلی دکمه */
    .portfolio-btn::after {
        content: "";
        position: absolute;
        inset: 2px;
        z-index: -1;
        border-radius: 7px;
        background: #050505;
    }

    /* افکت هاور */
    .portfolio-btn:hover {
        color: #ffffff;
        transform: translateY(-3px);
        box-shadow: 0 0 6px rgba(0, 229, 255, 0.7), 0 0 14px rgba(0, 229, 255, 0.45), 0 0 28px rgba(0, 229, 255, 0.25);
    }

    .portfolio-btn i {
        transition: transform 0.3s ease;
    }

    .portfolio-btn:hover i {
        transform: scale(1.18);
    }

@keyframes neonRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
