/*---------------------------------------------
** Portfolios listing – split hero with leaning project "blades"
** Loaded only on front/portfolios.blade.php (before style.css, hence `html` prefix
** where theme rules are overridden). --pfh-accent = theme base colour.
---------------------------------------------*/
:root { --pfh-accent: #2b5797; }

html .pfh { overflow: hidden; }
.pfh-dots {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    z-index: 1;
    background-image: radial-gradient(rgba(255, 255, 255, .22) 1.2px, transparent 1.2px);
    background-size: 18px 18px;
    -webkit-mask-image: linear-gradient(to left, #000 20%, transparent 90%);
    mask-image: linear-gradient(to left, #000 20%, transparent 90%);
    pointer-events: none;
}

/* ---- text column ---- */
html .pfh .breadcrumb-txt.pfh-txt { padding: 210px 0 110px; }
html .pfh-crumb { display: flex; gap: 0; margin: 0 0 26px; }
html .pfh .breadcrumb-txt span { font-size: 20px; margin-bottom: 6px; color: #9fd3ff; }
html .pfh .breadcrumb-txt h1 { font-size: 54px; line-height: 1.12; letter-spacing: -1px; }
.pfh-lead { max-width: 500px; margin: 20px 0 0; font-size: 16px; line-height: 1.75; color: rgba(255, 255, 255, .78); }

.pfh-stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 34px 0 0; padding: 0; list-style: none; }
.pfh-stats li { display: flex; align-items: center; gap: 12px; }
html .pfh .breadcrumb-txt .pfh-stat-icon {
    flex: 0 0 46px;
    margin: 0;
    font-family: inherit;
    text-transform: none;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
}
.pfh-stats strong { display: block; font-size: 24px; font-weight: 700; line-height: 1.1; color: #fff; }
html .pfh .pfh-stats small { display: block; margin-top: 3px; font-family: inherit; font-size: 12.5px; font-weight: 400; color: rgba(255, 255, 255, .65); }

/* ---- showcase ---- */
.pfh-visual {
    position: absolute;
    right: max(20px, calc((100vw - 1320px) / 2));
    bottom: 0;
    z-index: 5;
    width: 720px;
    height: 480px;
}
.pfh-blade {
    position: absolute;
    bottom: 0;
    display: block;
    transform-origin: bottom center;
    animation: pfh-rise .9s cubic-bezier(.2, .8, .2, 1) both;
    filter: drop-shadow(-14px 0 24px rgba(0, 0, 0, .35));
    transition: transform .45s cubic-bezier(.2, .8, .2, 1), filter .45s;
}
.pfh-blade svg { display: block; overflow: visible; }
.pfh-img { transition: transform .8s cubic-bezier(.2, .8, .2, 1); transform-box: fill-box; transform-origin: center; }
.pfh-blade:hover { transform: translateY(-14px); filter: drop-shadow(-14px 10px 30px rgba(0, 0, 0, .5)); }
.pfh-blade:hover .pfh-img { transform: scale(1.08); }
.pfh-blade:focus { outline: 0; }
.pfh-blade:focus-visible { transform: translateY(-14px); }

.pfh-blade-tag {
    position: absolute;
    left: 50%;
    bottom: 26px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    color: #0a3041;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .5);
    opacity: 0;
    transform: translate(-30%, 8px);
    transition: opacity .3s, transform .3s;
    pointer-events: none;
}
.pfh-blade:hover .pfh-blade-tag,
.pfh-blade:focus-visible .pfh-blade-tag { opacity: 1; transform: translate(-30%, 0); }

@keyframes pfh-rise {
    from { opacity: 0; transform: translateY(70px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .pfh-blade { animation: none; }
}

/* ---- responsive ---- */
@media (max-width: 1599px) {
    .pfh-visual { transform: scale(.8); transform-origin: bottom right; }
}
@media (max-width: 1399px) {
    .pfh-visual { transform: scale(.74); }
}
@media (max-width: 1199px) {
    .pfh-visual { transform: scale(.7); }
    html .pfh .breadcrumb-txt h1 { font-size: 44px; }
}
@media (max-width: 991px) {
    html .pfh .breadcrumb-txt.pfh-txt { padding: 170px 0 30px; }
    .pfh-visual { position: relative; right: auto; margin: 0 auto; transform: scale(.62); transform-origin: bottom center; height: 480px; margin-top: -170px; }
    .pfh-dots { width: 100%; }
}
@media (max-width: 767px) {
    html .pfh .breadcrumb-txt h1 { font-size: 34px; }
    .pfh-stats { gap: 18px; }
    .pfh-visual { transform: scale(.48); margin-top: -250px; margin-left: 50%; translate: -50% 0; transform-origin: bottom center; }
}
@media (max-width: 480px) {
    .pfh-visual { display: none; }
    html .pfh .breadcrumb-txt.pfh-txt { padding-bottom: 70px; }
}

/* ---- RTL ---- */
[dir="rtl"] .pfh-visual { right: auto; left: max(20px, calc((100vw - 1320px) / 2)); }
[dir="rtl"] .pfh-dots { right: auto; left: 0; -webkit-mask-image: linear-gradient(to right, #000 20%, transparent 90%); mask-image: linear-gradient(to right, #000 20%, transparent 90%); }
