/* Project Image Placeholders with Gradients */

.project-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Gradient placeholders for projects */
.project-card:nth-child(1) .project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    z-index: 1;
}

.project-card:nth-child(1) .project-image::after {
    content: '🏠 ML';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    z-index: 2;
    opacity: 0.9;
}

.project-card:nth-child(2) .project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    z-index: 1;
}

.project-card:nth-child(2) .project-image::after {
    content: '👥 SAKSHAM';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    z-index: 2;
    opacity: 0.9;
    white-space: nowrap;
}

.project-card:nth-child(3) .project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #4facfe 100%);
    z-index: 1;
}

.project-card:nth-child(3) .project-image::after {
    content: '🤖 AI';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    z-index: 2;
    opacity: 0.9;
}

/* Hide broken images */
.project-image img {
    opacity: 0;
}

/* Animated gradient background */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.project-card:nth-child(1) .project-image::before,
.project-card:nth-child(2) .project-image::before,
.project-card:nth-child(3) .project-image::before {
    background-size: 200% 200%;
    animation: gradient-shift 10s ease infinite;
}

/* Overlay effects remain */
.project-overlay {
    z-index: 3;
}

/* Add decorative pattern */
.project-image::before {
    background-image: 
        linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.03) 10px,
            rgba(255, 255, 255, 0.03) 20px
        );
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-image {
        height: 200px;
    }
    
    .project-card:nth-child(1) .project-image::after,
    .project-card:nth-child(3) .project-image::after {
        font-size: 3rem;
    }
    
    .project-card:nth-child(2) .project-image::after {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .project-image {
        height: 180px;
    }
    
    .project-card:nth-child(1) .project-image::after,
    .project-card:nth-child(3) .project-image::after {
        font-size: 2.5rem;
    }
    
    .project-card:nth-child(2) .project-image::after {
        font-size: 2rem;
    }
}
