.portfolio-section {
    width: 100%;
    max-width: 1120px;
    margin: auto;
    padding: 25px 15px 60px;
}

.portfolio-intro {
    max-width: 500px;
    margin-bottom: 25px;
}

.portfolio-intro h4 {
    color: #222222;
    font-size: 13px;
    line-height: 1.6;
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
}


/* =========================
   GRID
========================= */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}


/* =========================
   CARD
========================= */

.portfolio-card {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #222;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}


/* =========================
   IMAGE
========================= */

.portfolio-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.06);
}


/* =========================
   DARK OVERLAY
========================= */

.portfolio-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 35%,
        rgba(0, 0, 0, 0.15) 45%,
        rgba(0, 0, 0, 0.88) 100%
    );
    pointer-events: none;
}


/* =========================
   CONTENT
========================= */

.portfolio-content {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 18px 70px 18px 24px;
    min-height: auto;
}


/* Category hide */
.project-category {
    display: none;
}


/* Title */
.portfolio-content h3 {
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 7px;
}


/* Description */
.portfolio-content p {
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    opacity: 0.95;
}


/* Normal link text hide */
.project-link {
    display: none;
}


/* =========================
   ROUND ARROW
========================= */

.portfolio-card::before {
    content: "›";

    position: absolute;
    z-index: 5;

    right: 24px;
    bottom: 30px;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;
    color: #43AA7D;

    border-radius: 50%;

    font-size: 42px;
    font-weight: 300;
    line-height: 1;

    transition: all 0.3s ease;
}

.portfolio-card:hover::before {
    transform: translateX(5px);
    background: #43AA7D;
    color: #fff;
}


/* =========================
   LIGHTBOX
========================= */

.portfolio-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;

    background: rgba(0, 0, 0, 0.93);

    justify-content: center;
    align-items: center;

    padding: 20px;
}

.portfolio-lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
}

.portfolio-close {
    position: absolute;
    right: 30px;
    top: 15px;

    color: #fff;
    font-size: 40px;
    cursor: pointer;
}


/* =========================
   TABLET
========================= */

@media (max-width: 768px) {

    .portfolio-section {
        max-width: 700px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .portfolio-card {
        height: 230px;
    }

    .portfolio-content h3 {
        font-size: 19px;
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 480px) {

    .portfolio-section {
        padding: 25px 15px 50px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .portfolio-card {
        height: 240px;
    }

    .portfolio-content {
        padding: 18px 75px 18px 20px;
    }

    .portfolio-content h3 {
        font-size: 20px;
    }

    .portfolio-content p {
        font-size: 13px;
    }

    .portfolio-card::before {
        width: 45px;
        height: 45px;
        right: 20px;
        bottom: 28px;
        font-size: 38px;
    }
}