/* ═══════════════════════════════════════════════════════
   Remote Hive — Portfolio Page
   Sections: Hero + Stats · Awards · Showcase Grid
   BEM: rh-portfoliohero  /  rh-portfolioawards  /  rh-portfolioshowcase
   ═══════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
.rh-portfoliohero {
    --rh-portfoliohero-bg: #4a90e2;
    --rh-portfoliohero-accent: #0d9488;
    --rh-portfoliohero-text: #ffffff;
    --rh-portfoliohero-stat-shadow: rgba(0,0,0,0.12);
}

.rh-portfolioawards {
    --rh-portfolioawards-bg: #ffffff;
    --rh-portfolioawards-heading-clr: #0f172a;
}

.rh-portfolioshowcase {
    --rh-portfolioshowcase-bg: #ffffff;
    --rh-portfolioshowcase-heading-clr: #0f172a;
    --rh-portfolioshowcase-highlight: #4a90e2;
    --rh-portfolioshowcase-tab-bg: #f1f5f9;
    --rh-portfolioshowcase-tab-active: #4a90e2;
    --rh-portfolioshowcase-btn-bg: #4a90e2;
    --rh-portfolioshowcase-btn-hover: #3a7bd5;
    --rh-portfolioshowcase-overlay-bg: #ffffff;
}


/* ═══════════════════════════════════════════
   1 — PORTFOLIO HERO
   ═══════════════════════════════════════════ */
.rh-portfoliohero {
    position: relative;
    overflow: hidden;
    background: var(--rh-portfoliohero-bg);
    padding: 100px 24px 80px;
    text-align: center;
}

/* ── Canvas BG ── */
.rh-portfoliohero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ── Dot Grids ── */
.rh-portfoliohero__dots {
    position: absolute;
    display: grid;
    grid-template-columns: repeat(7, 8px);
    gap: 12px;
    z-index: 1;
    opacity: 0.22;
}

.rh-portfoliohero__dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
}

.rh-portfoliohero__dots--tr {
    top: 28px;
    right: 28px;
}

.rh-portfoliohero__dots--bl {
    bottom: 32px;
    left: 28px;
}

/* ── Content ── */
.rh-portfoliohero__content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
}

.rh-portfoliohero__title {
    font-size: 64px;
    font-weight: 800;
    color: var(--rh-portfoliohero-text);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.rh-portfoliohero__subtitle {
    font-size: 22px;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    max-width: 660px;
    margin: 0 auto 30px;
}

/* ── CTA Button ── */
.rh-portfoliohero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--rh-portfoliohero-text);
    color: var(--rh-portfoliohero-bg);
    font-size: 16px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rh-portfoliohero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    color: var(--rh-portfoliohero-bg);
}

.rh-portfoliohero__cta:focus,
.rh-portfoliohero__cta:active,
.rh-portfoliohero__cta:visited {
    color: var(--rh-portfoliohero-bg);
}

/* ── Stats Grid ── */
.rh-portfoliohero__stats {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 55px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.rh-portfoliohero__stat-card {
    text-align: center;
    padding: 32px 16px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 24px var(--rh-portfoliohero-stat-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rh-portfoliohero__stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.16);
}

.rh-portfoliohero__stat-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--rh-portfoliohero-accent);
    line-height: 1;
    margin-bottom: 10px;
}

.rh-portfoliohero__stat-label {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}


/* ═══════════════════════════════════════════
   2 — AWARDS
   ═══════════════════════════════════════════ */
.rh-portfolioawards {
    padding: 65px 24px 80px;
    background: var(--rh-portfolioawards-bg);
    text-align: center;
}

.rh-portfolioawards__heading {
    font-size: 48px;
    font-weight: 700;
    color: var(--rh-portfolioawards-heading-clr);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
}

.rh-portfolioawards__row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.rh-portfolioawards__item {
    width: 130px;
    margin: 0;
    transition: transform 0.3s ease;
}

.rh-portfolioawards__item:hover {
    transform: scale(1.08);
}

.rh-portfolioawards__item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}


/* ═══════════════════════════════════════════
   3 — PORTFOLIO SHOWCASE
   ═══════════════════════════════════════════ */
.rh-portfolioshowcase {
    padding: 80px 24px 90px;
    background: var(--rh-portfolioshowcase-bg);
    text-align: center;
}

/* ── Heading ── */
.rh-portfolioshowcase__heading {
    font-size: 48px;
    font-weight: 700;
    color: var(--rh-portfolioshowcase-heading-clr);
    line-height: 1.2;
    max-width: 850px;
    margin: 0 auto 45px;
    letter-spacing: -0.02em;
}

.rh-portfolioshowcase__highlight {
    color: var(--rh-portfolioshowcase-highlight);
}

/* ── Filter Tabs ── */
.rh-portfolioshowcase__tabs-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 50px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.rh-portfolioshowcase__tabs-wrap::-webkit-scrollbar {
    display: none;
}

.rh-portfolioshowcase__tabs {
    display: flex;
    gap: 8px;
    white-space: nowrap;
    width: max-content;
    padding: 4px 20px;
}

.rh-portfolioshowcase__tab {
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    background: var(--rh-portfolioshowcase-tab-bg);
    border: none;
    cursor: pointer;
    padding: 10px 22px;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-family: inherit;
    flex-shrink: 0;
}

.rh-portfolioshowcase__tab--active {
    color: #fff;
    background: var(--rh-portfolioshowcase-tab-active);
}

.rh-portfolioshowcase__tab:hover:not(.rh-portfolioshowcase__tab--active) {
    color: var(--rh-portfolioshowcase-heading-clr);
    background: #e2e8f0;
}

/* ── Grid ── */
.rh-portfolioshowcase__grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ── Card ── */
.rh-portfolioshowcase__card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 3 / 3.8;
    cursor: pointer;
    background: #f1f5f9;
}

.rh-portfolioshowcase__card--hidden {
    display: none;
}

.rh-portfolioshowcase__card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease;
}

.rh-portfolioshowcase__card-overlay {
    position: absolute;
    inset: 0;
    background: var(--rh-portfolioshowcase-overlay-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 28px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.rh-portfolioshowcase__card:hover .rh-portfolioshowcase__card-image {
    opacity: 0;
}

.rh-portfolioshowcase__card:hover .rh-portfolioshowcase__card-overlay {
    opacity: 1;
}

/* ── Card Overlay Content ── */
.rh-portfolioshowcase__card-desc {
    font-size: 15px;
    font-weight: 400;
    color: #475569;
    line-height: 1.7;
    text-align: left;
    margin-bottom: auto;
}

.rh-portfolioshowcase__card-bottom {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.rh-portfolioshowcase__card-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.rh-portfolioshowcase__card-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--rh-portfolioshowcase-btn-bg);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.rh-portfolioshowcase__card-btn:hover {
    background: var(--rh-portfolioshowcase-btn-hover);
    color: #fff;
}

.rh-portfolioshowcase__card-btn:focus,
.rh-portfolioshowcase__card-btn:active,
.rh-portfolioshowcase__card-btn:visited {
    color: #fff;
}

/* ── Load More ── */
.rh-portfolioshowcase__loadmore-wrap {
    text-align: center;
    margin-top: 40px;
}

.rh-portfolioshowcase__loadmore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--rh-portfolioshowcase-btn-bg);
    border: 2px solid var(--rh-portfolioshowcase-btn-bg);
    font-size: 16px;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.rh-portfolioshowcase__loadmore-btn:hover {
    background: var(--rh-portfolioshowcase-btn-bg);
    color: #fff;
}

.rh-portfolioshowcase__loadmore-btn--hidden {
    display: none;
}

/* ── Scroll-reveal utility ── */
.rh-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.rh-reveal--visible {
    opacity: 1;
    transform: translateY(0);
}


/* ═══════════════════════════════════════════
   RESPONSIVE — Laptop (1024–1279)
   ═══════════════════════════════════════════ */
@media (max-width: 1279px) {
    .rh-portfoliohero__title {
        font-size: 56px;
    }

    .rh-portfoliohero__subtitle {
        font-size: 20px;
    }

    .rh-portfolioawards__heading,
    .rh-portfolioshowcase__heading {
        font-size: 42px;
    }

    .rh-portfoliohero__stat-number {
        font-size: 42px;
    }
}


/* ═══════════════════════════════════════════
   RESPONSIVE — Tablet (768–1023)
   ═══════════════════════════════════════════ */
@media (max-width: 1023px) {
    .rh-portfoliohero {
        padding: 80px 24px 70px;
    }

    .rh-portfoliohero__title {
        font-size: 46px;
    }

    .rh-portfoliohero__subtitle {
        font-size: 19px;
    }

    .rh-portfolioawards__heading,
    .rh-portfolioshowcase__heading {
        font-size: 36px;
    }

    .rh-portfoliohero__stat-number {
        font-size: 36px;
    }

    .rh-portfolioshowcase__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .rh-portfolioshowcase__tab {
        font-size: 14px;
    }

    .rh-portfoliohero__stats {
        gap: 16px;
    }
}


/* ═══════════════════════════════════════════
   RESPONSIVE — Mobile Large (480–767)
   ═══════════════════════════════════════════ */
@media (max-width: 767px) {
    .rh-portfoliohero {
        padding: 60px 20px 60px;
    }

    .rh-portfoliohero__title {
        font-size: 38px;
    }

    .rh-portfoliohero__subtitle {
        font-size: 17px;
    }

    .rh-portfolioawards__heading,
    .rh-portfolioshowcase__heading {
        font-size: 30px;
    }

    .rh-portfoliohero__stat-number {
        font-size: 30px;
    }

    .rh-portfoliohero__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .rh-portfoliohero__stat-card:last-child {
        grid-column: 1 / -1;
    }

    .rh-portfoliohero__stat-card {
        padding: 24px 16px;
    }

    .rh-portfoliohero__dots--tr {
        top: 14px;
        right: 14px;
        grid-template-columns: repeat(5, 8px);
    }

    .rh-portfoliohero__dots--bl {
        bottom: 14px;
        left: 14px;
        grid-template-columns: repeat(5, 8px);
    }

    .rh-portfolioshowcase {
        padding: 60px 16px 70px;
    }

    .rh-portfolioshowcase__tab {
        font-size: 13px;
        padding: 9px 16px;
    }

    .rh-portfolioshowcase__grid {
        gap: 14px;
    }

    .rh-portfolioshowcase__card-btn {
        font-size: 15px;
    }

    .rh-portfoliohero__cta {
        font-size: 15px;
        padding: 12px 28px;
    }

    /* Awards 2-col grid */
    .rh-portfolioawards__row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        max-width: 320px;
    }

    .rh-portfolioawards__item {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .rh-portfolioawards__item img {
        width: 110px;
    }
}


/* ═══════════════════════════════════════════
   RESPONSIVE — Mobile Small (below 480)
   ═══════════════════════════════════════════ */
@media (max-width: 479px) {
    .rh-portfoliohero {
        padding: 50px 16px 50px;
    }

    .rh-portfoliohero__title {
        font-size: 32px;
    }

    .rh-portfoliohero__subtitle {
        font-size: 16px;
    }

    .rh-portfolioawards__heading,
    .rh-portfolioshowcase__heading {
        font-size: 26px;
    }

    .rh-portfoliohero__stat-number {
        font-size: 26px;
    }

    .rh-portfoliohero__stat-label {
        font-size: 12px;
    }

    .rh-portfoliohero__dots--tr {
        grid-template-columns: repeat(4, 8px);
        gap: 9px;
        opacity: 0.15;
    }

    .rh-portfoliohero__dots--bl {
        grid-template-columns: repeat(4, 8px);
        gap: 9px;
        opacity: 0.15;
    }

    .rh-portfolioshowcase__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .rh-portfolioshowcase__card {
        aspect-ratio: 3 / 3.5;
    }

    .rh-portfolioshowcase__tab {
        font-size: 12px;
        padding: 8px 14px;
    }

    .rh-portfolioawards__row {
        max-width: 260px;
        gap: 20px;
    }

    .rh-portfolioawards__item img {
        width: 95px;
    }

    .rh-portfoliohero__cta {
        font-size: 14px;
        padding: 11px 24px;
    }
}


/* ═══════════════════════════════════════════
   Desktop filter-tab centering
   ═══════════════════════════════════════════ */
@media (min-width: 900px) {
    .rh-portfolioshowcase__tabs-wrap {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .rh-portfolioshowcase__tabs {
        justify-content: center;
        width: auto;
        padding: 4px 0;
    }
}