/* Projects Grid Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

a.project-card {
    display: block;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

a.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.project-thumbnail {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #1a1a2e;
}

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

a.project-card:hover .project-thumbnail img {
    transform: scale(1.05);
}

.project-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e2a3a 0%, #2a3f5f 100%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 48px;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

a.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 100%);
    padding: 20px;
    z-index: 1;
}

.project-title-overlay h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.view-project {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
}

.project-tags {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    z-index: 2;
}

.project-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(95, 206, 206, 0.9);
    backdrop-filter: blur(8px);
    color: #1a1a2e;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.project-info {
    padding: 20px;
    background: var(--bg-card);
}

.project-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }

    .project-thumbnail {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}