.port-hero {
    position: relative;
    width: 100%;
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 120px var(--pad) 60px;
    overflow: hidden;
    background: url(ig/ww.png) no-repeat center center;
}

.port-hero-bg {
    position: absolute;
    top: 20%;
    left: 55%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.14) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.port-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.port-hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 0.98;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 22px;
}

.port-hero h1 span{
    color: #dd894d;
}
.port-hero-sub {
    font-size: clamp(14px, 2vw, 17px);
    color: rgba(55, 222, 217, 0.6);
    max-width: 520px;
    line-height: 1.7;
}

.port-hero-stats {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 36px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.phs {
    text-align: left;
}

.phs h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--gold);
    letter-spacing: 1px;
    line-height: 1;
}

.phs span {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.phs-div {
    width: 1px;
    height: 38px;
    background: rgba(255, 255, 255, 0.12);
}

/* -------------------- FILTER BAR -------------------- */
.filter-section {
    background: var(--dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 28px var(--pad);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: rgba(8, 8, 8, 0.92);
}

.filter-bar {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    flex-shrink: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.filter-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
    font-weight: 600;
}

/* -------------------- MASONRY GRID -------------------- */
.port-grid-section {
    padding: 70px var(--pad) 40px;
    background:#973d9c;
}

.port-masonry {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 260px;
    gap: 18px;
}

.port-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.port-tall {
    grid-row: span 2;
}

.port-wide {
    grid-column: span 2;
}

.port-img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.port-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
    filter: brightness(0.82);
    background: #141414;
}

.port-item:hover .port-img-wrap img {
    transform: scale(1.08);
    filter: brightness(0.4);
}

.port-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.15) 55%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.port-overlay-content {
    width: 100%;
}

.port-cat-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.port-overlay-content h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
    line-height: 1.25;
}

.port-overlay-content p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 14px;
}

.port-view-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 30px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.35s ease;
    font-family: 'Poppins', sans-serif;
}

.port-item:hover .port-view-btn {
    opacity: 1;
    transform: translateY(0);
}

.port-view-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
}

/* Gold corner accent on hover */
.port-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gold);
    z-index: 3;
    transition: width 0.5s ease;
}

.port-item:hover::after {
    width: 100%;
}

/* -------------------- LOAD MORE -------------------- */
.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.load-more-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold);
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.load-more-btn:hover {
    background: var(--gold);
    color: #000;
}

.load-more-btn svg {
    transition: transform 0.3s;
}

.load-more-btn:hover svg {
    transform: translateY(2px);
}

/* ============================================================
   PROJECT MODAL (Detail Lightbox)
   ============================================================ */
.proj-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    z-index: 9999;
    overflow-y: auto;
    animation: fadeInModal 0.3s ease;
}

.proj-modal.active {
    display: block;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.proj-modal-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 70px 24px 80px;
    position: relative;
}

.proj-close {
    position: fixed;
    top: 24px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
}

.proj-close:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

.proj-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

/* LEFT — image viewer */
.proj-main-img {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #0c0c0c;
    aspect-ratio: 4/3;
}

.proj-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: imgFade 0.4s ease;
}

@keyframes imgFade {
    from {
        opacity: 0.3;
    }

    to {
        opacity: 1;
    }
}

.proj-img-nav {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.proj-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: all 0.3s;
}

.proj-nav-btn:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

.proj-img-counter {
    background: rgba(0, 0, 0, 0.55);
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

/* Thumbnail strip */
.proj-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.proj-thumb {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.proj-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.proj-thumb:hover {
    opacity: 0.85;
}

.proj-thumb.active {
    opacity: 1;
    border-color: var(--gold);
}

/* RIGHT — info panel */
.proj-right {
    padding-top: 6px;
}

.proj-modal-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.proj-modal-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    letter-spacing: 1px;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 10px;
}

.proj-modal-loc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 24px;
}

.proj-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 24px 0;
}

.proj-modal-desc {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.85;
}

.proj-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.proj-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.proj-meta-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.proj-meta-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
}

.proj-vids-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.proj-vids-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.proj-vid-item {
    border-radius: 10px;
    overflow: hidden;
    background: #0c0c0c;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.proj-vid-item video {
    width: 100%;
    display: block;
    max-height: 130px;
    object-fit: cover;
    background: #000;
}

.proj-vid-label {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.65);
    padding: 8px 10px;
}

.proj-cta {
    margin-top: 30px;
    text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .port-masonry {
        grid-template-columns: repeat(3, 1fr);
    }

    .proj-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .proj-meta-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .port-masonry {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
        gap: 12px;
    }

    .port-wide {
        grid-column: span 2;
    }

    .port-tall {
        grid-row: span 2;
    }

    .port-hero {
        padding: 110px 20px 50px;
        min-height: 60vh;
    }

    .port-hero-stats {
        gap: 22px;
    }

    .phs h3 {
        font-size: 1.8rem;
    }

    .filter-bar {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .proj-modal-inner {
        padding: 70px 16px 60px;
    }

    .proj-thumbs {
        grid-template-columns: repeat(5, 1fr);
    }

    .proj-vids-grid {
        grid-template-columns: 1fr;
    }

    .proj-close {
        top: 14px;
        right: 14px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .port-masonry {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 170px;
    }

    .port-overlay-content h3 {
        font-size: 15px;
    }

    .port-cat-tag {
        font-size: 9px;
        padding: 3px 10px;
    }
}

/* ============================================================
   PREMIUM UPGRADE — v2
   Richer motion, refined typography/spacing, cinematic modal
   ============================================================ */

/* -------- Typography & spacing polish -------- */
.port-hero-sub,
.filter-btn,
.port-cat-tag,
.proj-meta-label {
    letter-spacing: 0.5px;
}

.port-hero h1 {
    text-shadow: 0 10px 45px rgba(0, 0, 0, 0.55);
}

.port-hero-content,
.port-hero-stats {
    animation: heroFadeUp 0.9s cubic-bezier(.22, 1, .36, 1) both;
}

.port-hero-stats {
    animation-delay: 0.15s;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header h2 {
    position: relative;
}

.filter-section {
    padding-top: 26px;
    padding-bottom: 26px;
}

/* -------- Filter bar: sliding gold indicator -------- */
.filter-bar {
    position: relative;
}

.filter-indicator {
    position: absolute;
    bottom: -6px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), #f5d97a);
    border-radius: 2px;
    transition: left 0.45s cubic-bezier(.65, 0, .35, 1), width 0.45s cubic-bezier(.65, 0, .35, 1);
    pointer-events: none;
}

.filter-btn {
    transition: all 0.35s cubic-bezier(.22, 1, .36, 1);
}

.filter-btn.active {
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
}

/* -------- Grid items: premium hover + stagger -------- */
.port-item {
    animation: fadeUp 0.7s cubic-bezier(.22, 1, .36, 1) both;
    animation-delay: calc(var(--i, 0) * 0.06s);
    transition: transform 0.55s cubic-bezier(.22, 1, .36, 1), box-shadow 0.55s ease;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.port-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.35), 0 26px 60px rgba(0, 0, 0, 0.55);
}

/* Sheen sweep across image on hover */
.port-img-wrap {
    position: relative;
}

.port-img-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.10) 50%, transparent 70%);
    transform: translateX(-130%);
    transition: transform 0.9s ease;
    z-index: 2;
    pointer-events: none;
}

.port-item:hover .port-img-wrap::before {
    transform: translateX(130%);
}

.port-cat-tag {
    transition: all 0.35s ease;
}

.port-item:hover .port-cat-tag {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.12);
}

.port-view-btn {
    transition: all 0.35s cubic-bezier(.22, 1, .36, 1);
}

.load-more-btn {
    transition: all 0.4s cubic-bezier(.22, 1, .36, 1);
}

.load-more-btn:hover {
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.25);
}

/* ============================================================
   PROJECT MODAL — cinematic open/close, crossfade, progress
   ============================================================ */

.proj-modal {
    backdrop-filter: blur(0px);
    transition: backdrop-filter 0.45s ease;
}

.proj-modal.active {
    backdrop-filter: blur(8px);
}

.proj-modal-inner {
    transform: scale(0.96) translateY(10px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(.22, 1, .36, 1), opacity 0.4s ease;
}

.proj-modal.active .proj-modal-inner {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Progress bar on the main image */
.proj-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 5;
    overflow: hidden;
    border-radius: 0 0 6px 6px;
}

.proj-progress-fill {
    height: 100%;
    width: 10%;
    background: linear-gradient(90deg, var(--gold), #f5d97a);
    transition: width 0.45s cubic-bezier(.65, 0, .35, 1);
}

/* Crossfade for main image */
.proj-main-img img {
    transition: opacity 0.35s ease, transform 0.6s cubic-bezier(.22, 1, .36, 1);
}

.proj-main-img img.fading {
    opacity: 0;
    transform: scale(1.03);
}

.proj-nav-btn {
    transition: all 0.35s cubic-bezier(.22, 1, .36, 1);
}

.proj-nav-btn:active {
    transform: scale(0.88);
}

.proj-thumb {
    transition: all 0.35s cubic-bezier(.22, 1, .36, 1);
}

.proj-thumb.active {
    box-shadow: 0 0 0 2px var(--gold), 0 6px 18px rgba(212, 175, 55, 0.35);
}

/* Right panel: staggered content reveal, only on open */
.proj-modal.active .proj-right>* {
    animation: projReveal 0.55s cubic-bezier(.22, 1, .36, 1) both;
}

.proj-modal.active .proj-right>*:nth-child(1) {
    animation-delay: .06s;
}

.proj-modal.active .proj-right>*:nth-child(2) {
    animation-delay: .11s;
}

.proj-modal.active .proj-right>*:nth-child(3) {
    animation-delay: .16s;
}

.proj-modal.active .proj-right>*:nth-child(4) {
    animation-delay: .21s;
}

.proj-modal.active .proj-right>*:nth-child(5) {
    animation-delay: .26s;
}

.proj-modal.active .proj-right>*:nth-child(6) {
    animation-delay: .31s;
}

.proj-modal.active .proj-right>*:nth-child(7) {
    animation-delay: .36s;
}

.proj-modal.active .proj-right>*:nth-child(8) {
    animation-delay: .41s;
}

@keyframes projReveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close button micro-interaction */
.proj-close {
    transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.45s cubic-bezier(.34, 1.56, .64, 1);
}

.proj-close:hover {
    transform: rotate(90deg) scale(1.06);
}

/* CTA button shimmer */
.proj-cta {
    position: relative;
    overflow: hidden;
}

.proj-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    transition: left 0.65s ease;
}

.proj-cta:hover::after {
    left: 130%;
}

/* Custom modal scrollbar */
.proj-modal::-webkit-scrollbar {
    width: 8px;
}

.proj-modal::-webkit-scrollbar-track {
    background: transparent;
}

.proj-modal::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.35);
    border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {

    .port-item,
    .proj-modal-inner,
    .proj-modal.active .proj-right>*,
    .port-hero-content,
    .port-hero-stats {
        animation: none !important;
        transition: none !important;
    }
}