/* ==============================================
   Portfolio Button - Custom Styling
   Matches Home Button Hover Effects
   ============================================== */

/* Override default theme-btn-s2 for portfolio button */
.portfolio-btn .theme-btn-s2 {
    /* Fill Background */
    background: linear-gradient(135deg, #0096ff 0%, #00c896 100%);

    /* Text Color */
    color: #ffffff !important;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;

    /* Button Style */
    padding: 18px 40px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);

    /* Position for glow effect */
    position: relative;
    z-index: 1;

    /* Smooth transitions */
    transition: all 0.4s ease;

    /* Inner shadow for depth */
    box-shadow:
        inset 0 2px 10px rgba(255, 255, 255, 0.2),
        inset 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Glow Effect Behind Button */
.portfolio-btn .theme-btn-s2::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, #0096ff, #00c896, #64ffda);
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    filter: blur(25px);
    transition: opacity 0.4s ease;
}

/* Animated Glow - Always Visible */
.portfolio-btn .theme-btn-s2::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #0096ff, #00c896, #64ffda);
    border-radius: 50px;
    z-index: -1;
    filter: blur(20px);
    opacity: 0.6;
    animation: portfolioGlowPulse 3s ease-in-out infinite;
}

/* Hover State */
.portfolio-btn .theme-btn-s2:hover {
    background: linear-gradient(135deg, #00c896 0%, #64ffda 100%);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow:
        0 10px 30px rgba(0, 150, 255, 0.4),
        0 5px 15px rgba(0, 200, 150, 0.3),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
}

.portfolio-btn .theme-btn-s2:hover::before {
    opacity: 0.8;
}

.portfolio-btn .theme-btn-s2:hover::after {
    opacity: 1;
    filter: blur(30px);
}

/* Active/Click State */
.portfolio-btn .theme-btn-s2:active {
    transform: translateY(-1px);
    box-shadow:
        0 5px 15px rgba(0, 150, 255, 0.3),
        inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Glow Pulse Animation */
@keyframes portfolioGlowPulse {

    0%,
    100% {
        opacity: 0.6;
        filter: blur(20px);
    }

    50% {
        opacity: 0.9;
        filter: blur(25px);
    }
}

/* Responsive - Mobile */
@media (max-width: 767px) {
    .portfolio-btn .theme-btn-s2 {
        padding: 14px 30px;
        font-size: 14px;
    }

    .portfolio-btn .theme-btn-s2::after {
        filter: blur(15px);
    }
}

/* Responsive - Tablet */
@media (max-width: 991px) {
    .portfolio-btn .theme-btn-s2 {
        padding: 16px 35px;
        font-size: 15px;
    }
}