.card {
    width: 18rem;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.375rem;
    background-color: #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    overflow: hidden;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 1rem;
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.card-img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}


.card {
    transition: box-shadow 0.3s cubic-bezier(0.4,0,0.2,1), transform 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: none;
    border-radius: 0.75rem;
    overflow: visible;
}

.card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    transform: translateY(-4px) scale(1.02);
}

.card-img-top {
    width: 100%;
    object-fit: cover;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: box-shadow 0.3s, transform 0.3s;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.card-img-top:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.16);
    transform: scale(1.04);
}

.card-body {
    padding: 1.5rem;
    background: #fff;
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}


.portfolio-item {
    box-shadow: none;
    background: transparent;
    border-radius: 0.75rem;
    overflow: hidden;
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.3s;
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

.portfolio-item:hover .portfolio-info {
    opacity: 1;
}

.portfolio-wrap {
    padding: 0;
}

.row.portfolio-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}