﻿.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.portfolio-card {
    background: #334155;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 320px;
    max-width: 100%;
}

.portfolio-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.portfolio-details {
    flex-grow: 1; /* Fills remaining height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
}

.project-title {
    color: #38bdf8;
    margin-bottom: 0.5rem;
}

.project-description {
    flex-grow: 1; /* Pushes button down */
    color: #f1f5f9;
    margin-bottom: 1rem;
}

.project-links {
    margin-top: auto;
}

.portfolio-card {
    background: #334155;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 320px;
    max-width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .portfolio-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }

.portfolio-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-thumbnail {
    transform: scale(1.05);
}

.project-links a:hover {
    box-shadow: 0 0 10px #7dd3fc;
}

.portfolio-subtitle {
    font-size: 1rem;
    max-width: 700px;
    margin: 1rem auto;
    line-height: 1.7;
    white-space: normal;
    word-wrap: break-word;
}
