/* ==========================================
   Portfolio Details - Hero
========================================== */

.portfolio-hero{
    padding:120px 0 50px;
    background:
        radial-gradient(circle at top left, rgba(191,25,81,.10), transparent 35%),
        radial-gradient(circle at bottom right, rgba(243,76,0,.08), transparent 35%),
        linear-gradient(180deg,#ffffff,#f8fafc);
}

.case-study-badge{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:10px 18px;
    border-radius:999px;
    background:rgba(191,25,81,.08);
    color:#BF1951;
    font-weight:800;
    letter-spacing:.5px;
    text-transform:uppercase;
    margin-bottom:22px;
}

.case-study-badge span{
    width:9px;
    height:9px;
    border-radius:50%;
    background:#F34C00;
}

.portfolio-title{
    font-size:clamp(42px,5vw,72px);
    font-weight:950;
    line-height:1.05;
    letter-spacing:-2px;
    margin-bottom:18px;
}

.portfolio-subtitle{
    font-size:20px;
    color:#64748b;
    margin-bottom:26px;
}

.portfolio-meta{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-bottom:30px;
}

.portfolio-meta span{
    padding:10px 18px;
    border-radius:999px;
    background:#fff;
    border:1px solid rgba(15,23,42,.08);
    box-shadow:0 10px 30px rgba(15,23,42,.05);
    font-weight:700;
}

.project-actions{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    margin-bottom:35px;
}

.live-project{
    display:inline-flex;
    align-items:center;
    gap:10px;
    background:#e8fff1;
    color:#0f8a45;
    padding:12px 20px;
    border-radius:999px;
    font-weight:800;
}

.live-project::before{
    content:"";
    width:10px;
    height:10px;
    border-radius:50%;
    background:#22c55e;
    animation:livePulse 1.4s infinite;
}

@keyframes livePulse{
    0%{
        box-shadow:0 0 0 0 rgba(34,197,94,.5);
    }

    100%{
        box-shadow:0 0 0 12px rgba(34,197,94,0);
    }
}

.portfolio-cover{
    border-radius:28px;
    overflow:hidden;
    box-shadow:0 30px 80px rgba(15,23,42,.15);
}

.portfolio-cover img{
    width:100%;
    height:420px;
    object-fit:cover;
    display:block;
}

.portfolio-detail-section {
    padding: 90px 0;
    background: #fff;
}

.detail-block {
    margin-bottom: 34px;
}

.detail-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #BF1951;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 14px;
}

.detail-label i {
    color: #F34C00;
}

.detail-block h2 {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 950;
    letter-spacing: -1px;
    margin-bottom: 18px;
}

.detail-block p {
    color: #64748b;
    font-size: 17px;
    line-height: 1.85;
    white-space: pre-line;
}

.challenge-solution-card {
    height: 100%;
    background: #fff;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 22px 60px rgba(15,23,42,.07);
}

.challenge-solution-card .icon-box {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg,#BF1951,#F34C00);
    font-size: 23px;
    margin-bottom: 22px;
}

.challenge-solution-card h3 {
    font-weight: 900;
    margin-bottom: 14px;
}

.challenge-solution-card p {
    color: #64748b;
    line-height: 1.8;
    white-space: pre-line;
}

.features-tech-section {
    padding: 90px 0;
    background: #f8fafc;
}

.feature-card {
    height: 100%;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 16px 42px rgba(15,23,42,.06);
}

.feature-card i {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    background: linear-gradient(135deg,#BF1951,#F34C00);
}

.feature-card span {
    font-weight: 800;
    color: #0f172a;
}

.tech-stack-box {
    background: #fff;
    border-radius: 28px;
    padding: 32px;
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 22px 60px rgba(15,23,42,.07);
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-badge {
    padding: 11px 18px;
    border-radius: 999px;
    background: rgba(191,25,81,.08);
    color: #BF1951;
    font-weight: 900;
    border: 1px solid rgba(191,25,81,.14);
}

.project-gallery-section {
    padding: 90px 0;
    background: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.gallery-item {
    border-radius: 26px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 22px 60px rgba(15,23,42,.09);
    border: 1px solid rgba(15,23,42,.08);
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: .35s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-large {
    grid-column: span 2;
}

.gallery-item-large img {
    height: 360px;
}

@media(max-width: 991px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item-large {
        grid-column: span 2;
    }
}

@media(max-width: 575px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item-large {
        grid-column: span 1;
    }

    .gallery-item img,
    .gallery-item-large img {
        height: 230px;
    }
}

.business-impact-section {
    padding: 90px 0;
    background:
        radial-gradient(circle at top left, rgba(191,25,81,.08), transparent 32%),
        radial-gradient(circle at bottom right, rgba(243,76,0,.08), transparent 32%),
        #f8fafc;
}

.impact-card {
    background: #fff;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 30px;
    padding: 38px;
    box-shadow: 0 24px 70px rgba(15,23,42,.08);
}

.impact-card p {
    color: #64748b;
    font-size: 18px;
    line-height: 1.9;
    white-space: pre-line;
    margin-bottom: 0;
}