/* Motion Blur Portfolio Showcase for Bulletin Section */
.motion-blur-portfolio {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(26,26,46,0.4), rgba(16,33,62,0.6));
    position: relative;
    overflow: hidden;
}

.motion-blur-portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 60% 40%, rgba(0,212,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    position: relative;
}

.portfolio-item {
    position: relative;
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(0,212,255,0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4,0,0.2,1);
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.portfolio-item:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: rgba(0,212,255,0.6);
    box-shadow: 0 25px 80px rgba(0,212,255,0.3), 0 0 0 1px rgba(0,212,255,0.2);
}

.portfolio-glow {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, transparent, rgba(0,212,255,0.4), transparent);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.6s;
    z-index: -1;
}

.portfolio-item:hover .portfolio-glow {
    opacity: 1;
}

.portfolio-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0,102,255,0.1), rgba(0,212,255,0.05));
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.4,0,0.2,1);
    filter: brightness(0.9) contrast(1.1);
}

/* Motion Blur Effect on Hover */
.portfolio-item:hover .portfolio-image img {
    transform: scale(1.15);
    filter: blur(2px) brightness(1.1) contrast(1.2);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0,0,0,0.4) 0%,
        rgba(0,212,255,0.2) 50%,
        rgba(0,0,0,0.6) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-item:hover .image-overlay {
    opacity: 1;
}

.overlay-icon {
    color: white;
    font-size: 3rem;
    transform: scale(0.8);
    transition: transform 0.4s ease;
    text-shadow: 0 0 20px rgba(0,212,255,0.8);
}

.portfolio-item:hover .overlay-icon {
    transform: scale(1);
}

.portfolio-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.portfolio-badge.featured {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.portfolio-badge.project {
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.portfolio-badge.award {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.portfolio-content {
    padding: 2rem;
    position: relative;
}

.portfolio-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.portfolio-item:hover .portfolio-title {
    color: #00d4ff;
}

.portfolio-description {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.portfolio-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.portfolio-meta i {
    color: #00d4ff;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.portfolio-tags span {
    background: rgba(0,212,255,0.15);
    color: #00d4ff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0,212,255,0.2);
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-tags span {
    background: rgba(0,212,255,0.25);
    border-color: rgba(0,212,255,0.4);
}

.portfolio-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(0,212,255,0.3);
    width: 100%;
    text-align: center;
}

.portfolio-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,212,255,0.5);
    background: linear-gradient(135deg, #0066ff, #00d4ff);
}

.portfolio-action i {
    transition: transform 0.3s ease;
}

.portfolio-action:hover i {
    transform: translateX(5px);
}

/* Motion Blur Animation Keyframes */
@keyframes motionBlur {
    0% {
        filter: blur(0px);
        transform: translateX(0);
    }
    50% {
        filter: blur(3px);
        transform: translateX(10px);
    }
    100% {
        filter: blur(0px);
        transform: translateX(0);
    }
}

.portfolio-item.animate-blur .portfolio-image img {
    animation: motionBlur 2s ease-in-out;
}

/* Staggered Animation for Portfolio Items */
.portfolio-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .motion-blur-portfolio {
        padding: 4rem 0;
    }
    
    .portfolio-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .portfolio-image {
        height: 180px;
    }
    
    .portfolio-content {
        padding: 1.5rem;
    }
    
    .portfolio-title {
        font-size: 1.2rem;
    }
    
    .portfolio-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .portfolio-content {
        padding: 1rem;
    }
    
    .portfolio-action {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .overlay-icon {
        font-size: 2.5rem;
    }
}

/* Interactive Hover Effects */
.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(0,212,255,0.1) 50%, transparent 51%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.portfolio-item:hover::before {
    opacity: 1;
    animation: scanLine 1.5s ease-in-out;
}

@keyframes scanLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Portfolio Actions */
.portfolio-actions {
    text-align: center;
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.portfolio-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: rgba(0,212,255,0.1);
    border: 2px solid rgba(0,212,255,0.3);
    color: #00d4ff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-btn:hover {
    background: #00d4ff;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,212,255,0.4);
}

.portfolio-btn i {
    transition: transform 0.3s ease;
}

.portfolio-btn:hover i {
    transform: translateX(5px);
}