.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #000;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.project-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.project-info .subheading {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 8px 0;
    font-weight: normal;
    font-style: normal;
    line-height: 1.4;
}

.project-info p {
    margin: 0 0 10px 0;
    color: #444;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: 2.9em;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: auto;
    padding-top: 10px;
}

.project-link {
    margin: 10px 0;
}

.project-link a {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: background-color 0.2s ease;
}

.project-link a:hover {
    background: #333;
}

.project-duration {
    font-size: 0.8rem;
    color: #666;
    margin: 5px 0;
    font-style: italic;
}

.project-image-placeholder {
    width: 100%;
    height: 250px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.placeholder-content {
    text-align: center;
    padding: 20px;
}

.placeholder-text {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.placeholder-content small {
    font-size: 0.8rem;
    opacity: 0.7;
}

.section-header {
    font-size: 1.2rem;
    font-weight: normal;
    margin: 40px 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}