/* ================================================================
   portfolio.css — Full portfolio page
   ================================================================ */

/* ── Hero ──────────────────────────────────────────────────────── */
.tq-pf-hero {
    background: #232323;
    overflow: hidden;
}

.tq-pf-hero__body {
    max-width: 620px;
    margin: 0 auto;
    padding: 9rem 1.5rem 3.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tq-pf-hero__tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #d7fe7c;
    background: rgba(215, 254, 124, 0.1);
    border: 1px solid rgba(215, 254, 124, 0.22);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 1.75rem;
}

.tq-pf-hero__h1 {
    font-size: clamp(2.75rem, 5.5vw, 5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin-bottom: 1.25rem;
}

.tq-pf-hero__sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.7;
    margin-bottom: 2.25rem;
    max-width: 400px;
}

.tq-pf-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #d7fe7c;
    color: #232323;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 100px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 24px rgba(215, 254, 124, 0.2);
}
.tq-pf-hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(215, 254, 124, 0.36);
}
.tq-pf-hero__cta svg { transition: transform 0.2s; }
.tq-pf-hero__cta:hover svg { transform: translateY(3px); }

/* ── Scrolling strip ───────────────────────────────────────────── */
.tq-pf-strip-outer {
    position: relative;
    overflow: hidden;
    padding: 8px 0;
}

/* Fade edges */
.tq-pf-strip-outer::before,
.tq-pf-strip-outer::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 140px;
    z-index: 2;
    pointer-events: none;
}
.tq-pf-strip-outer::before {
    left: 0;
    background: linear-gradient(to right, #232323 20%, transparent);
}
.tq-pf-strip-outer::after {
    right: 0;
    background: linear-gradient(to left, #232323 20%, transparent);
}

.tq-pf-strip {
    display: flex;
    gap: 10px;
    width: max-content;
    will-change: transform;
}

.tq-pf-strip-item {
    flex-shrink: 0;
    width: 248px;
    height: 166px;
    border-radius: 10px;
    overflow: hidden;
}

.tq-pf-strip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.tq-pf-strip-item:hover img { transform: scale(1.06); }

/* ── Hero stats bar ────────────────────────────────────────────── */
.tq-pf-hero__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 2.25rem 1.5rem 2.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    margin-top: 24px;
}

.tq-pf-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tq-pf-hero__stat strong {
    font-size: 2rem;
    font-weight: 900;
    color: #d7fe7c;
    line-height: 1;
    letter-spacing: -0.02em;
}

.tq-pf-hero__stat span {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.03em;
}

.tq-pf-hero__stat-div {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
}

/* ── Works section ─────────────────────────────────────────────── */
.tq-pf-works {
    background: #f6f5f2;
}

.tq-pf-works-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 5rem;
}

/* ── Filter bar — NOT sticky ───────────────────────────────────── */
.tq-pf-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.tq-pf-filter {
    display: flex;
    gap: 6px;
}

.tq-pf-filter__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 100px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    color: #555;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: -0.01em;
    transition: border-color 0.18s, background 0.18s, color 0.18s;
}

.tq-pf-filter__count {
    background: rgba(0, 0, 0, 0.07);
    color: #999;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 100px;
    transition: background 0.18s, color 0.18s;
}

.tq-pf-filter__btn:hover {
    border-color: #4d61f4;
    color: #4d61f4;
}

.tq-pf-filter__btn.active {
    background: #4d61f4;
    border-color: #4d61f4;
    color: #fff;
}

.tq-pf-filter__btn.active .tq-pf-filter__count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.tq-pf-filter__showing {
    font-size: 0.78rem;
    color: #aaa;
    font-style: italic;
}

/* ── Masonry grid ──────────────────────────────────────────────── */
.tq-pf-grid {
    columns: 4;
    column-gap: 0.625rem;
}

.tq-pf-item {
    break-inside: avoid;
    margin-bottom: 0.625rem;
    border-radius: 0.875rem;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tq-pf-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.13);
}

.tq-pf-item.tq-pf-hidden { display: none; }

.tq-pf-item > img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.tq-pf-item:hover > img { transform: scale(1.04); }

/* ── Video wrapper ─────────────────────────────────────────────── */
.tq-pf-video-wrap {
    position: relative;
    background: #232323;
    border-radius: 0.875rem;
    overflow: hidden;
}

.tq-pf-video-wrap video {
    width: 100%;
    display: block;
    min-height: 100px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.tq-pf-item:hover .tq-pf-video-wrap video { transform: scale(1.04); }

/* ── Play overlay — very subtle ────────────────────────────────── */
.tq-pf-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(35, 35, 35, 0.18);
    transition: background 0.25s, opacity 0.25s;
}

.tq-pf-play-overlay:hover {
    background: rgba(35, 35, 35, 0.08);
}

/* Hide overlay when playing */
.tq-pf-playing .tq-pf-play-overlay {
    opacity: 0;
    pointer-events: none;
}

/* ── Play button ───────────────────────────────────────────────── */
.tq-pf-play-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #d7fe7c;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.22s;
    box-shadow: 0 4px 20px rgba(215, 254, 124, 0.35);
    flex-shrink: 0;
}

.tq-pf-play-btn svg {
    width: 18px;
    height: 18px;
    color: #232323;
    margin-left: 3px;
}

.tq-pf-play-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 28px rgba(215, 254, 124, 0.55);
}

/* ── Pause button ──────────────────────────────────────────────── */
.tq-pf-pause-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(35, 35, 35, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.22s, transform 0.22s;
    z-index: 5;
}

.tq-pf-pause-btn svg {
    width: 11px;
    height: 11px;
    color: #fff;
}

.tq-pf-playing .tq-pf-pause-btn {
    opacity: 1;
    transform: scale(1);
}

/* ── Expand button ─────────────────────────────────────────────── */
.tq-pf-expand-btn {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(35, 35, 35, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.22s, transform 0.22s;
    z-index: 5;
}
.tq-pf-expand-btn svg {
    width: 12px;
    height: 12px;
    color: #fff;
}
.tq-pf-playing .tq-pf-expand-btn {
    opacity: 1;
    transform: scale(1);
}

/* ── Video modal ───────────────────────────────────────────────── */
.tq-vid-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.tq-vid-modal[hidden] { display: none; }

.tq-vid-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.tq-vid-modal__box {
    position: relative;
    width: 100%;
    max-width: 860px;
    background: #232323;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
    z-index: 1;
    animation: tq-modal-in 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes tq-modal-in {
    from { transform: scale(0.94); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.tq-vid-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.18s, transform 0.18s;
}
.tq-vid-modal__close svg { width: 16px; height: 16px; color: #fff; }
.tq-vid-modal__close:hover { background: rgba(0, 0, 0, 0.8); transform: scale(1.08); }

.tq-vid-modal__player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tq-vid-modal__player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 640px) {
    .tq-vid-modal { padding: 12px; }
    .tq-vid-modal__box { border-radius: 12px; }
    .tq-vid-modal__player { aspect-ratio: auto; max-height: 80vh; }
}

/* ── CTA ───────────────────────────────────────────────────────── */
.tq-pf-cta {
    background: #232323;
    padding: 5rem 1.5rem;
    text-align: center;
}

.tq-pf-cta__inner {
    max-width: 480px;
    margin: 0 auto;
}

.tq-pf-cta__eyebrow {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
    margin-bottom: 0.75rem;
}

.tq-pf-cta__h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.tq-pf-cta__btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.tq-pf-cta__primary {
    background: #d7fe7c;
    color: #232323;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 100px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(215, 254, 124, 0.18);
}
.tq-pf-cta__primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(215, 254, 124, 0.35);
}

.tq-pf-cta__ghost {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 13px 22px;
    border-radius: 100px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    transition: color 0.18s, border-color 0.18s;
}
.tq-pf-cta__ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1279px) {
    .tq-pf-grid { columns: 3; }
}

@media (max-width: 1023px) {
    .tq-pf-hero__body { padding-top: 7.5rem; }
    .tq-pf-strip-item { width: 210px; height: 140px; }
    .tq-pf-grid { columns: 3; }
}

@media (max-width: 767px) {
    .tq-pf-hero__body { padding-top: 6.5rem; padding-bottom: 2.5rem; }
    .tq-pf-hero__h1 { font-size: clamp(2.2rem, 8vw, 3rem); }
    .tq-pf-hero__stats { gap: 1.75rem; padding: 1.75rem 1rem 2.25rem; }
    .tq-pf-hero__stat strong { font-size: 1.625rem; }
    .tq-pf-strip-item { width: 170px; height: 115px; }
    .tq-pf-strip-outer::before,
    .tq-pf-strip-outer::after { width: 60px; }

    .tq-pf-filter-bar { flex-direction: column; align-items: flex-start; }
    .tq-pf-filter__showing { display: none; }

    .tq-pf-grid { columns: 2; column-gap: 0.4rem; }
    .tq-pf-item { margin-bottom: 0.4rem; }
}

@media (max-width: 479px) {
    .tq-pf-hero__stats { gap: 1.25rem; }
    .tq-pf-hero__stat-div { display: none; }
    .tq-pf-strip-item { width: 148px; height: 100px; }
    .tq-pf-grid { columns: 2; }
    .tq-pf-play-btn { width: 42px; height: 42px; }
    .tq-pf-play-btn svg { width: 15px; height: 15px; }
    .tq-vid-modal { padding: 12px; }
    .tq-vid-modal__box { border-radius: 8px; }
}
