.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.project-item {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.project-item:hover::before {
    transform: scaleX(1);
}

.project-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 16px 32px var(--shadow-color);
}

.project-image {
    width: 100%;
    height: 200px;
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border-color);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.25rem;
    transition: transform 0.4s ease;
}

.project-item:hover .project-image img {
    transform: scale(1.05);
}

.project-image-placeholder {
    color: var(--text-muted);
    font-size: 2.5rem;
}

.project-content {
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.9rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}

.project-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    flex: 1;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.project-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 0.5rem;
}

.project-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 0.9rem;
}

.project-link:hover {
    color: var(--primary);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-subtle);
    color: var(--primary);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.tag:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.tag i,
.tag img {
    font-size: 0.9rem;
    width: 0.9rem;
    height: 0.9rem;
    object-fit: contain;
}

.project-highlights {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.project-highlights li {
    color: var(--text-secondary);
    padding-left: 1.2rem;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.5;
}

.project-highlights li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.view-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}
