/* New Clean Portfolio Styles */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.project-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-card .project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-card .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-card .project-content {
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #4a6cf7 100%);
    color: white;
    position: relative;
}

.project-card .project-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.project-card .project-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    color: white;
    text-decoration: none;
    display: block;
}

.project-card .project-title:hover {
    color: #f1e4c3;
    text-decoration: none;
}

.project-card .project-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.project-card .project-tech {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    font-style: italic;
}

.project-card .project-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-card .project-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-card .project-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.project-card .project-link i {
    font-size: 14px;
}

/* Loading State */
.loading-message {
    grid-column: 1 / -1;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.loading-message .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
    color: #4a6cf7;
}

.loading-message p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.loading-message .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #4a6cf7 100%);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-weight: 600;
}

.loading-message .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px 0;
    }
    
    .project-card .project-content {
        padding: 20px;
    }
    
    .project-card .project-image {
        height: 180px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (min-width: 1025px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Animation */
.project-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
