/* XK Interactive - Revolutionary Portfolio Filters */
/* Linear rectangular filters with glow, shift, and movement effects */

/* ===== PORTFOLIO FILTER SECTION ===== */
.portfolio-filter-section {
    background: linear-gradient(135deg, #0D1117 0%, #161B22 50%, #0D1117 100%);
    position: relative;
    overflow: hidden;
}

.portfolio-filter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(255, 210, 63, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.filter-container {
    position: relative;
    z-index: 2;
}

/* ===== FILTER HEADER ===== */
.filter-header {
    text-align: center;
    margin-bottom: 3rem;
}

.filter-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #F0F6FC;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FF6B35 0%, #FFD23F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.filter-subtitle {
    font-size: 1.2rem;
    color: #8B949E;
    margin: 0;
}

/* ===== LINEAR FILTER GRID ===== */
.linear-filter-grid {
    position: relative;
    margin-bottom: 2rem;
}

.filter-track {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.filter-glow-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #FF6B35 0%, #FFD23F 50%, #FF6B35 100%);
    border-radius: 2px;
    opacity: 0.6;
    animation: glowPulse 3s ease-in-out infinite;
    z-index: 1;
}

/* ===== LINEAR FILTER BUTTONS ===== */
.linear-filter-btn {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
    margin-left: 2rem;
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 12px;
    color: #F0F6FC;
    text-align: left;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
    transform: translateX(0);
}

.linear-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.6s ease;
}

.linear-filter-btn:hover::before {
    left: 100%;
}

.linear-filter-btn:hover {
    transform: translateX(10px) scale(1.02);
    border-color: rgba(255, 107, 53, 0.4);
    background: rgba(255, 107, 53, 0.05);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.linear-filter-btn.active {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.5);
    transform: translateX(15px) scale(1.03);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.3);
}

.linear-filter-btn.active .filter-energy {
    opacity: 1;
    animation: energyFlow 2s ease-in-out infinite;
}

/* ===== FILTER CONTENT ===== */
.filter-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    width: 100%;
    position: relative;
    z-index: 2;
}

.filter-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF6B35 0%, #FFD23F 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.linear-filter-btn:hover .filter-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.linear-filter-btn.active .filter-icon {
    transform: rotate(10deg) scale(1.15);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.5);
}

.filter-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-grow: 1;
}

.filter-label {
    font-size: 1.3rem;
    font-weight: 600;
    color: #F0F6FC;
    transition: color 0.3s ease;
}

.filter-count {
    font-size: 0.9rem;
    color: #8B949E;
    transition: color 0.3s ease;
}

.linear-filter-btn:hover .filter-label,
.linear-filter-btn.active .filter-label {
    color: #FF6B35;
}

.linear-filter-btn:hover .filter-count,
.linear-filter-btn.active .filter-count {
    color: #FFD23F;
}

/* ===== FILTER ENERGY EFFECTS ===== */
.filter-energy {
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #FF6B35 0%, #FFD23F 50%, #FF6B35 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-particles {
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 20px;
    height: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.linear-filter-btn:hover .filter-particles,
.linear-filter-btn.active .filter-particles {
    opacity: 1;
}

.filter-particles::before,
.filter-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FF6B35;
    border-radius: 50%;
    animation: particleFloat 2s ease-in-out infinite;
}

.filter-particles::before {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.filter-particles::after {
    bottom: 0;
    right: 0;
    animation-delay: 1s;
}

/* ===== FILTER STATS ===== */
.filter-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 107, 53, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 12px;
    min-width: 120px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 53, 0.4);
    background: rgba(255, 107, 53, 0.1);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #FF6B35;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #8B949E;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== PORTFOLIO GRID SECTION ===== */
.portfolio-grid-section {
    background: #0D1117;
    position: relative;
}

.portfolio-grid-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FF6B35, transparent);
    animation: scanLine 3s ease-in-out infinite;
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
        box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
    }
}

@keyframes energyFlow {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-10px) scale(1.2);
        opacity: 1;
    }
}

@keyframes scanLine {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ===== REFINED PORTFOLIO ACTION BUTTONS ===== */
.portfolio-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 8px;
    color: #F0F6FC;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.4s ease;
}

.portfolio-action-btn:hover::before {
    left: 100%;
}

.portfolio-action-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 107, 53, 0.4);
    background: rgba(255, 107, 53, 0.1);
    color: #FF6B35;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.portfolio-action-btn i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.portfolio-action-btn:hover i {
    transform: scale(1.1);
}

.portfolio-action-btn span {
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Specific button variants */
.gallery-btn {
    border-color: rgba(52, 152, 219, 0.3);
}

.gallery-btn:hover {
    border-color: rgba(52, 152, 219, 0.6);
    background: rgba(52, 152, 219, 0.1);
    color: #3498DB;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.video-btn {
    border-color: rgba(231, 76, 60, 0.3);
}

.video-btn:hover {
    border-color: rgba(231, 76, 60, 0.6);
    background: rgba(231, 76, 60, 0.1);
    color: #E74C3C;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
}

.site-btn {
    border-color: rgba(46, 204, 113, 0.3);
}

.site-btn:hover {
    border-color: rgba(46, 204, 113, 0.6);
    background: rgba(46, 204, 113, 0.1);
    color: #2ECC71;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.2);
}

/* Portfolio actions container */
.portfolio-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 107, 53, 0.1);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .filter-title {
        font-size: 2rem;
    }

    .filter-subtitle {
        font-size: 1rem;
    }

    .filter-track {
        max-width: 100%;
    }

    .linear-filter-btn {
        margin-left: 1rem;
    }

    .filter-content {
        padding: 1rem 1.5rem;
        gap: 1rem;
    }

    .filter-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .filter-label {
        font-size: 1.1rem;
    }

    .filter-count {
        font-size: 0.8rem;
    }

    .filter-stats {
        gap: 1.5rem;
    }

    .stat-item {
        min-width: 100px;
        padding: 0.75rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Portfolio action buttons mobile */
    .portfolio-action-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        gap: 0.4rem;
    }

    .portfolio-action-btn i {
        font-size: 0.7rem;
    }

    .portfolio-action-btn span {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .filter-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .filter-text {
        align-items: center;
    }

    .linear-filter-btn:hover,
    .linear-filter-btn.active {
        transform: translateX(5px) scale(1.01);
    }

    .filter-stats {
        flex-direction: column;
        gap: 1rem;
    }

    /* Portfolio action buttons extra small screens */
    .portfolio-action-btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.7rem;
        gap: 0.35rem;
        margin-right: 0.4rem;
        margin-bottom: 0.4rem;
    }

    .portfolio-action-btn i {
        font-size: 0.65rem;
    }

    .portfolio-action-btn span {
        font-size: 0.65rem;
    }

    .portfolio-actions {
        gap: 0.4rem;
        margin-top: 0.8rem;
        padding-top: 0.8rem;
    }
}
