.project-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    text-align: left;
}

.project-card {
    background: rgba(30, 30, 40, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s cubic-bezier(.2,.8,.2,1), border-color 0.25s ease;
}

@media (min-width: 700px) {
    .project-card {
        flex-direction: row;
        min-height: 220px;
    }
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    border-color: rgba(160, 130, 230, 0.35);
}

.project-image {
    width: 100%;
    height: 200px;
    background: rgba(0, 0, 0, 0.25);
    object-fit: cover;
    flex-shrink: 0;
}

@media (min-width: 700px) {
    .project-image {
        width: 320px;
        height: auto;
    }
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-title {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    color: #dcc3ff;
}

.project-desc {
    margin-top: 0;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #e0e0e0;
    flex: 1;
}

.project-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem; /* Larger margin on top */
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem; /* Spacing between icon and text */
    padding: 0.35rem 0.75rem; /* Smaller padding */
    background: rgba(160, 130, 230, 0.12);
    border: 1px solid rgba(160, 130, 230, 0.3);
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem; /* Smaller font size */
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
}

.project-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.project-link:hover {
    background: rgba(160, 130, 230, 0.25);
    border-color: rgba(160, 130, 230, 0.6);
}

.project-link:active {
    transform: scale(0.97);
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem auto;
    max-width: 800px;
}

.pagination-btn {
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(160, 130, 230, 0.2);
    border-color: rgba(160, 130, 230, 0.5);
}

.pagination-btn.active {
    background: rgba(160, 130, 230, 0.4);
    border-color: rgba(160, 130, 230, 0.8);
    font-weight: bold;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(10px) }
    to { opacity: 1; transform: translateY(0) }
}
