
/* =========================================
   Aria Decor - Portfolio
========================================= */

.portfolio-page {
    direction: rtl;
    max-width: 1240px;
    margin: 45px auto;
    padding: 24px;
    color: #252a26;
    font-family: inherit;
}

.portfolio-heading {
    text-align: center;
    margin-bottom: 42px;
}

.portfolio-heading h1 {
    font-size: clamp(25px, 4vw, 38px);
    font-weight: 900;
    line-height: 1.7;
    margin: 0 0 12px;
    color: #252a26;
    letter-spacing: -0.5px;
}

.portfolio-heading h1::after {
    content: "";
    display: block;
    width: 76px;
    height: 4px;
    margin: 12px auto;
    border-radius: 10px;
    background: linear-gradient(90deg, #a77d3e, #e2c38b);
}

.portfolio-heading p {
    color: #737871;
    font-size: 15px;
    line-height: 2;
    max-width: 650px;
    margin: 0 auto;
}

/* Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;
}

/* Project card */
.portfolio-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #e9e6df;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(31, 36, 32, 0.055);
    transition: transform 0.3s ease,
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-7px);
    border-color: #d6bd91;
    box-shadow: 0 16px 36px rgba(31, 36, 32, 0.12);
}

/* Project image */
.portfolio-card > a:first-child {
    display: block;
    overflow: hidden;
    background: #f3f1ec;
}

.portfolio-card img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover img {
    transform: scale(1.045);
}

/* Card content */
.portfolio-card-body {
    padding: 21px;
}

.portfolio-card h2 {
    margin: 0 0 13px;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.8;
}

.portfolio-card h2 a {
    color: #252a26;
    text-decoration: none;
    transition: color 0.2s ease;
}

.portfolio-card h2 a:hover {
    color: #a77d3e;
}

.portfolio-card p {
    color: #737871;
    font-size: 14px;
    line-height: 1.9;
    margin: 5px 0;
}

/* Details button */
.portfolio-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: 18px;
    padding: 12px 16px;
    border: 1px solid #282e29;
    border-radius: 10px;
    background: #282e29;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.25s ease,
                border-color 0.25s ease;
}

.portfolio-link:hover {
    background: #a77d3e;
    border-color: #a77d3e;
}

/* Empty state */
.portfolio-empty {
    text-align: center;
    padding: 55px 20px;
    border: 1px dashed #d7c8ae;
    border-radius: 18px;
    background: #faf9f6;
}

.portfolio-empty h2 {
    color: #292e29;
    font-size: 22px;
}

.portfolio-empty p {
    color: #777;
    line-height: 2;
}

/* Tablet */
@media (max-width: 950px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .portfolio-card img {
        height: 225px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .portfolio-page {
        margin: 22px auto;
        padding: 14px;
    }

    .portfolio-heading {
        margin-bottom: 27px;
    }

    .portfolio-heading p {
        font-size: 14px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portfolio-card {
        border-radius: 15px;
    }

    .portfolio-card img {
        height: 235px;
    }

    .portfolio-card-body {
        padding: 17px;
    }

    .portfolio-card h2 {
        font-size: 18px;
    }

    .portfolio-link {
        padding: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portfolio-card,
    .portfolio-card img,
    .portfolio-link {
        transition: none;
    }
}
