/* ============================================================
   FALLBACK DESIGN TOKENS
   portfolio.css expects these from the site-wide style.css,
   which wasn't provided — filled in here only so this demo
   renders standalone. Not part of your original files.
============================================================ */

:root {
    --green: #0AAE60;
    --green-deep-2: #007A43;
    --green-light: #E6F8EE;
    --yellow: #F4B400;
    --gray: #6B7280;
    --text: #1A1A1A;
    --line: #E7EAEC;
    --white: #FFFFFF;
    --r-xl: 22px;
    --r-md: 16px;
    --r-sm: 12px;
    --ease: cubic-bezier(.4, 0, .2, 1);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, .06);
    --shadow-md: 0 10px 26px rgba(0, 0, 0, .10);
    --shadow-lg: 0 22px 50px rgba(0, 0, 0, .14);
}

body {
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background: #fff;
    padding: 2rem 0;
}


/* ============================================================
   ETOUCH SOLUTIONS — portfolio.css
   Page-specific layer for portfolio.html only.
   Loaded AFTER css/style.css. Reuses shared components (style.css
   §19, §21, §22 and the home .client-box): the accent badge,
   gradient text, centred eyebrow + rule, the dark CTA panel and
   the client-logo box. Only what is new to this page lives below.
 
   Isotope, GLightbox and Swiper CSS come from their CDNs; this
   file only styles what wraps them so they blend with the brand.
 
   P1 Tokens · P2 Breadcrumb · P3 Hero · P4 Filter pills
   P5 Project cards · P6 Load more · P7 CTA target
   P8 Client carousel · P9 Responsive
============================================================ */


/* ------------------------------------------------------------
   P1 · PAGE TOKENS
------------------------------------------------------------ */

:root {
    --pf-mist: #F5FFF7;
}


/* ------------------------------------------------------------
   P2 · BREADCRUMB
------------------------------------------------------------ */

.pf-crumb {
    padding: .9rem 0 .2rem;
}

.pf-crumb .breadcrumb {
    margin-bottom: 0;
    font-size: .74rem;
    font-weight: 500;
}

.pf-crumb .breadcrumb-item a {
    color: var(--gray);
}

.pf-crumb .breadcrumb-item a:hover {
    color: var(--green);
}

.pf-crumb .breadcrumb-item.active {
    color: var(--text);
    font-weight: 600;
}


/* ------------------------------------------------------------
   P3 · HERO
------------------------------------------------------------ */

.pf-hero {
    position: relative;
    background: linear-gradient(160deg, #FFFFFF 0%, var(--pf-mist) 45%, #E9F9EF 100%);
    padding: 20px 0 54px;
    overflow: hidden;
}

.pf-hero::before {
    content: "";
    position: absolute;
    left: -120px;
    top: -150px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(10, 174, 96, .14), transparent 68%);
}

.pf-title {
    font-size: clamp(2rem, 4.4vw, 3rem);
    line-height: 1.16;
    font-weight: 800;
    color: #0E1B14;
    margin-bottom: 1.3rem;
}


/* Yellow accent bar sits directly under "Proud" (page-scoped
   override of the shared .t-grad, which is display:block in
   style.css §22.2). */

.pf-title .t-grad {
    display: inline-block;
    position: relative;
}

.pf-title .t-grad::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 4px;
    border-radius: 2px;
    background: var(--yellow);
}

.pf-lead {
    font-size: .84rem;
    color: var(--gray);
    line-height: 1.9;
    max-width: 410px;
    margin-bottom: 1.5rem;
}


/* Hero visual + vertical stack of stat chips */

.pf-visual {
    position: relative;
}

.pf-shot {
    position: relative;
    z-index: 1;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.pf-shot img {
    width: 100%;
    display: block;
    transition: transform .7s var(--ease);
}

.pf-shot:hover img {
    transform: scale(1.03);
}

.pf-stats {
    position: absolute;
    top: 6%;
    right: -2%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    width: 160px;
}

.pf-stat {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: var(--white);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-lg);
    padding: .55rem .7rem;
}

.pf-stat .ps-ico {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: .85rem;
    flex: 0 0 auto;
    background: var(--green-light);
    color: var(--green-deep-2);
}

.pf-stat:nth-child(2n) .ps-ico {
    background: rgba(244, 180, 0, .16);
    color: #C98F00;
}

.pf-stat .ps-val {
    font-size: 1rem;
    font-weight: 800;
    color: #0E1B14;
    line-height: 1.15;
}

.pf-stat .ps-cap {
    font-size: .58rem;
    color: var(--gray);
    line-height: 1.35;
}


/* ------------------------------------------------------------
   P4 · FILTER PILLS
------------------------------------------------------------ */

.pf-filter {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.pf-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--text);
    font-size: .72rem;
    font-weight: 600;
    padding: .5rem 1.05rem;
    border-radius: 50rem;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}

.pf-pill i {
    font-size: .82rem;
    color: var(--green-deep-2);
    transition: color .3s var(--ease);
}

.pf-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(10, 174, 96, .3);
    box-shadow: var(--shadow-md);
}

.pf-pill.is-active {
    background: var(--green-deep-2);
    border-color: var(--green-deep-2);
    color: var(--white);
    box-shadow: 0 10px 22px rgba(0, 122, 67, .28);
}

.pf-pill.is-active i {
    color: var(--yellow);
}


/* ------------------------------------------------------------
   P5 · PROJECT CARDS
------------------------------------------------------------ */

.pf-grid {
    position: relative;
}

.pf-card-wrap {
    margin-bottom: 1.5rem;
}

.pf-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.pf-card:hover {
    transform: translateY(-10px);
    border-color: rgba(10, 174, 96, .28);
    box-shadow: 0 24px 44px rgba(10, 174, 96, .18);
}

.pf-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 420 / 300;
}

.pf-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}

.pf-card:hover .pf-media img {
    transform: scale(1.07);
}

.pf-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 22, 14, 0) 55%, rgba(4, 22, 14, .55) 100%);
    opacity: 0;
    transition: opacity .35s var(--ease);
    pointer-events: none;
}

.pf-card:hover .pf-media::after,
.pf-card:focus-within .pf-media::after {
    opacity: 1;
}

.pf-cat-badge {
    position: absolute;
    top: .8rem;
    left: .8rem;
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--white);
    color: var(--green-deep-2);
    display: grid;
    place-items: center;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
}

.pf-cat-badge.is-gold {
    color: #C98F00;
}

.pf-body {
    padding: 1rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pf-name {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: .1rem;
}

.pf-cat {
    font-size: .68rem;
    color: var(--green-deep-2);
    font-weight: 600;
    margin-bottom: .55rem;
}

.pf-desc {
    font-size: .72rem;
    color: var(--gray);
    line-height: 1.75;
    margin-bottom: .9rem;
}

.pf-link {
    margin-top: auto;
    font-size: .72rem;
    font-weight: 700;
    color: var(--green-deep-2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    transition: gap .3s var(--ease), color .3s var(--ease);
}

.pf-link:hover {
    color: var(--green);
    gap: .55rem;
}


/* Load-More hides these until revealed */

.pf-card-wrap.is-locked {
    display: none !important;
}


/* Isotope needs positioning to animate; hidden state uses opacity */

.pf-grid.is-ready .pf-card-wrap {
    transition: transform .5s var(--ease), opacity .35s var(--ease);
}


/* ------------------------------------------------------------
   P6 · LOAD MORE
------------------------------------------------------------ */

.pf-more-wrap {
    text-align: center;
    margin-top: .8rem;
}

.pf-more-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: var(--white);
    color: var(--green-deep-2);
    font-size: .78rem;
    font-weight: 700;
    border: 1px solid rgba(10, 174, 96, .35);
    padding: .6rem 1.3rem;
    border-radius: 50rem;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}

.pf-more-btn:hover {
    background: var(--green-deep-2);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pf-more-btn i {
    transition: transform .5s var(--ease);
}

.pf-more-btn:hover i {
    transform: rotate(180deg);
}

.pf-more-btn.is-done {
    display: none;
}


/* ------------------------------------------------------------
   P7 · CTA TARGET
   Uses the shared .cta-dark panel; only the target illustration
   needs a page-specific size override.
------------------------------------------------------------ */

.pf-cta-art {
    width: 100%;
    max-width: 210px;
    margin: 0 auto;
    display: block;
}


/* ------------------------------------------------------------
   P8 · CLIENT CAROUSEL (Swiper)
------------------------------------------------------------ */

.pf-clients {
    position: relative;
    padding: .4rem 0;
}

.pf-clients .swiper-slide {
    display: grid;
    place-items: center;
    height: 92px;
}

.pf-clients .swiper-slide img {
    max-width: 100%;
    max-height: 60px;
    filter: grayscale(1);
    opacity: .55;
    transition: filter .35s var(--ease), opacity .35s var(--ease);
}

.pf-clients .swiper-slide:hover img,
.pf-clients .swiper-slide:focus-visible img {
    filter: none;
    opacity: 1;
}

.pf-nav {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    margin-top: .8rem;
}

.pf-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--green-deep-2);
    display: grid;
    place-items: center;
    font-size: .95rem;
    cursor: pointer;
    transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}

.pf-nav-btn:hover {
    background: var(--green);
    color: var(--white);
    transform: translateY(-2px);
}

.pf-nav-btn.swiper-button-disabled {
    opacity: .4;
    cursor: not-allowed;
}


/* ------------------------------------------------------------
   P9 · RESPONSIVE
------------------------------------------------------------ */

@media (max-width: 991.98px) {
    .pf-hero {
        text-align: center;
    }
    .pf-lead {
        margin-left: auto;
        margin-right: auto;
    }
    .pf-visual {
        margin-top: 2.5rem;
    }
    .pf-stats {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        margin-top: 1rem;
    }
    .pf-stat {
        flex: 1 1 42%;
    }
}

@media (max-width: 767.98px) {
    .pf-title {
        font-size: 1.9rem;
    }
    .pf-hero .btn {
        width: 100%;
        justify-content: center;
    }
    .pf-pill {
        font-size: .68rem;
        padding: .4rem .85rem;
    }
    .pf-nav {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .pf-stat {
        flex: 1 1 100%;
    }
    .pf-cat-badge {
        width: 36px;
        height: 36px;
        font-size: .88rem;
    }
}


/* ============================================================
   BRANDING / GRAPHIC DESIGN SUB FILTER
============================================================ */

.brand-sub-filter {
    display: none;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: .55rem;
    margin-top: -1rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .3s ease, transform .3s ease;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding-top: 10px;
}

.brand-sub-filter.is-visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.brand-sub-pill {
    font-size: .68rem;
    padding: .45rem .95rem;
    flex: 0 0 auto;
    white-space: nowrap;
    background: var(--yellow);
    border-color: var(--yellow);
    color: #111;
}

.brand-sub-pill i {
    color: #111;
}

.brand-sub-pill.is-active {
    background: #111;
    border-color: #111;
    color: var(--white);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
}

.brand-sub-pill.is-active i {
    color: var(--white);
}


/* ============================================================
   BRANDING CARD IMAGE
============================================================ */

.pf-card-wrap.branding .pf-media {
    aspect-ratio: 420 / 300;
    background: #f4f4f4;
}


/* ============================================================
   DIGITAL MARKETING SUB FILTER
============================================================ */

.dm-sub-filter {
    display: none;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: .55rem;
    margin-top: -1rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .3s ease, transform .3s ease;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding-top: 10px;
}


/* Show when Digital Marketing is active */

.dm-sub-filter.is-visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}


/* Slightly smaller than main category buttons */

.dm-sub-pill {
    font-size: .68rem;
    padding: .45rem .95rem;
    flex: 0 0 auto;
    white-space: nowrap;
}


/* Active digital marketing sub button */

.dm-sub-pill.is-active {
    background: var(--yellow);
    border-color: var(--yellow);
    color: #111;
    box-shadow: 0 8px 18px rgba(244, 180, 0, .22);
}

.dm-sub-pill.is-active i {
    color: #111;
}


/* ============================================================
   DIGITAL MARKETING CARD IMAGE
============================================================ */

.pf-card-wrap.digital-marketing .pf-media {
    aspect-ratio: 420 / 300;
    background: #f4f4f4;
}

.pf-card-wrap.digital-marketing .pf-media img {
    object-fit: contain;
    padding: 0;
}


/* Don't zoom dashboard screenshots too aggressively */

.pf-card-wrap.digital-marketing .pf-card:hover .pf-media img {
    transform: scale(1.02);
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 767.98px) {
    .dm-sub-filter,
    .brand-sub-filter {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: .2rem .2rem .7rem;
        margin-top: -1rem;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }
    .dm-sub-pill,
    .brand-sub-pill {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: .66rem;
        padding: .42rem .85rem;
    }
}

@media (max-width: 575.98px) {
    .dm-sub-filter,
    .brand-sub-filter {
        gap: .4rem;
    }
    .dm-sub-pill,
    .brand-sub-pill {
        font-size: .64rem;
        padding: .4rem .75rem;
    }
}