/* ============================================================
   RoboSpati — Portfolio page
   ============================================================ */

/* ---- Category filter ---- */
.filter-buttons .btn-filter { border-radius: var(--radius-pill); }

/* ---- Detail hero image ---- */
.project-hero-image {
    margin: 0 0 2.5rem;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(3, 22, 47, 0.14);
    border: 1px solid rgba(3, 22, 47, 0.08);
    background: #03162F;
}
.project-hero-image img,
.project-cover-img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 420px;
    max-height: 580px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-hero-image:hover img,
.project-hero-image:hover .project-cover-img {
    transform: scale(1.02);
}

/* ---- Alternating showcase cards (Exact Mockup Image 2) ---- */
.section-portfolio-showcase {
    background: #FFFFFF;
}

.showcase-card {
    display: grid;
    grid-template-columns: 1fr 1.12fr;
    background: #FFFFFF;
    border: 1px solid #E8EEF5;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 2.25rem;
    box-shadow: 0 4px 24px rgba(3, 27, 58, 0.03);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.showcase-card:hover {
    transform: translateY(-4px);
    border-color: #03162F;
    box-shadow: 0 16px 36px rgba(3, 22, 47, 0.08);
}
.showcase-card:hover .showcase-diamond-img {
    transform: scale(1.04);
}

.showcase-card--reverse {
    grid-template-columns: 1.12fr 1fr;
}
.showcase-card--reverse .showcase-visual { order: 2; }
.showcase-card--reverse .showcase-body { order: 1; }

.showcase-visual {
    position: relative;
    background: #EEF7FD;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    overflow: hidden;
}

.showcase-index-badge {
    position: absolute;
    top: 24px;
    left: 28px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    color: #7BAED9;
    letter-spacing: 0.05em;
    z-index: 2;
}

.showcase-diamond-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-body {
    padding: clamp(2.4rem, 4.5vw, 3.8rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-tag-dash {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #03162F;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.section-tag-dash::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 2px;
    background: #03162F;
    border-radius: 2px;
}

.showcase-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    font-weight: 700;
    color: #0B192C;
    margin-bottom: 0.85rem;
    line-height: 1.25;
}
.showcase-title a {
    color: #0B192C;
    text-decoration: none;
    transition: color 0.2s ease;
}
.showcase-title a:hover {
    color: #03162F;
}

.showcase-desc {
    font-size: 0.96rem;
    color: #64748B;
    line-height: 1.65;
    margin-bottom: 1.4rem;
}

.showcase-meta-outcome {
    padding: 0.8rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.4rem;
}
.showcase-meta-outcome .meta-label {
    font-size: 0.88rem;
    color: #64748B;
    font-weight: 500;
}
.showcase-meta-outcome .meta-value {
    font-size: 0.88rem;
    color: #03162F;
    font-weight: 600;
}

.showcase-link-clean {
    color: #03162F;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}
.showcase-link-clean:hover {
    color: #062246;
    transform: translateX(3px);
}

/* ---- Measured Impact Section (Mockup Image 2) ---- */
.portfolio-impact-section {
    background: #FFFFFF;
    padding-top: 4.5rem;
    padding-bottom: 2rem;
}

.section-title-clean {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: #0B192C;
    line-height: 1.22;
    max-width: 680px;
    margin: 0 auto;
}

.portfolio-stat-card {
    background: #FFFFFF;
    border: 1px solid #E8EEF5;
    border-radius: 20px;
    padding: 2.8rem 1.8rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(3, 27, 58, 0.02);
    transition: all 0.3s ease;
}
.portfolio-stat-card:hover {
    transform: translateY(-4px);
    border-color: #03162F;
    box-shadow: 0 12px 30px rgba(3, 22, 47, 0.08);
}

.stat-card-number {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 4vw, 3.4rem);
    font-weight: 700;
    color: #0B192C;
    line-height: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
}
.stat-card-number .suffix {
    color: #0B192C;
    font-size: 0.85em;
    font-weight: 700;
    margin-left: 2px;
}

.stat-card-label {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    color: #03162F;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.75rem;
}

/* ---- Project meta (detail) ---- */
.project-meta dt {
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    margin-top: .9rem;
}
.project-meta dd { color: var(--heading-color); margin: .15rem 0 0; }
.project-meta i { color: var(--cta); }

@media (max-width: 991.98px) {
    .showcase-card,
    .showcase-card--reverse {
        grid-template-columns: 1fr;
    }
    .showcase-card--reverse .showcase-visual {
        order: 0;
    }
    .showcase-card--reverse .showcase-body {
        order: 0;
    }
    .showcase-visual {
        min-height: 280px;
    }
}
