section.Portfolio {
    width: 1200px;
    justify-self: center;
    text-align-last: center;
}

.por-wrapper {
    display: flex;
    gap: 20px;
    flex-direction: row;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    height: 200px;
}

/* From Uiverse.io by AKAspidey01 */
/* From Uiverse.io by mateusneves */
.morebtn {
    position: relative;
    font-size: 14px;
    height: 3em;
    padding: 0 3em;
    border: none;
    background-color: var(--primary);
    color: #fff;
    text-transform: uppercase;
    overflow: hidden;
    border-radius: 5px;
    margin-top: 20px;
}

.morebtn::before {
    content: '';
    display: block;
    position: absolute;
    z-index: 0;
    bottom: 0;
    left: 0;
    height: 0px;
    width: 100%;
    background: var(--primary);
    background: linear-gradient(180deg, var(--primary) 20%, var(--secondary) 100%);
    transition: 0.2s;
}

.morebtn .label {
    position: relative;
}

.morebtn .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3em;
    width: 3em;
    position: absolute;
    top: 3em;
    left: 0;
    opacity: 0;
    transition: 0.4s;
}

.morebtn:hover::before {
    height: 100%;
}

.morebtn:hover .icon {
    top: 0;
    opacity: 1;
}


/* IMAGE */
.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

/* OVERLAY */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    opacity: 0;
    transition: 0.5s ease;
}

/* TEXT */
.portfolio-overlay h3 {
    color: #fff;
    font-size: 22px;
    margin: 0;
}

.portfolio-overlay p {
    color: #ddd;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 10px;
}

/* BUTTON */
.portfolio-btn {
    padding: 10px 26px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-size: 14px;
    transition: 0.3s;
}

.portfolio-btn:hover {
    background: var(--secondary);
}

/* HOVER EFFECT */
.portfolio-card:hover img {
    filter: blur(4px) brightness(0.8);
    transform: scale(1.05);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-swiper {
    height: fit-content;
}



/* دسکتاپ */
.por-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* موبایل */
@media (max-width: 768px) {
    .por-wrapper {
        display: block;
        /* Swiper کنترلش می‌کنه */
    }

    section.Portfolio {
        width: 100%;
        justify-self: center;
        text-align-last: center;
    }
}