/* ==========================================================================
   D-KODE PORTFOLIO PAGE STYLES — STRICTLY ISOLATED & SCOPED
   Target Pages: portfolio.html, portfolio-category.html, project-details.html
   Parent Scope: .portfolio-page
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. STICKY FOOTER & FULL-HEIGHT FLEX LAYOUT
   -------------------------------------------------------------------------- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: #000000;
    color: #ffffff;
}

.portfolio-page {
    position: relative;
    background-color: #000000;
    color: #ffffff;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

.portfolio-page > main {
    flex: 1 0 auto;
}

.portfolio-page .lm-footer,
.lm-footer {
    margin-top: auto !important;
    width: 100%;
    position: relative;
    z-index: 3;
    background: #08080c !important;
    border-top: 1px solid rgba(255, 170, 0, 0.2) !important;
    overflow: hidden !important;
}

/* --------------------------------------------------------------------------
   1. PAGE CONTAINER & HERO SECTION
   -------------------------------------------------------------------------- */

.portfolio-page .portfolio-hero {
    position: relative;
    padding-top: 160px;
    padding-bottom: 60px;
    background: radial-gradient(circle at 50% 0%, rgba(255, 120, 0, 0.08) 0%, rgba(10, 10, 15, 0) 70%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-page .portfolio-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

/* Hero Badge */
.portfolio-page .portfolio-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(255, 170, 0, 0.08);
    border: 1px solid rgba(255, 170, 0, 0.25);
    border-radius: 50px;
    color: #ffaa00;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.1);
}

.portfolio-page .portfolio-hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ffaa00;
    box-shadow: 0 0 10px #ffaa00;
    animation: portfolioPulse 2s infinite;
}

@keyframes portfolioPulse {
    0% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.4; transform: scale(0.9); }
}

/* Hero Title & Subtitle */
.portfolio-page .portfolio-hero-title {
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: #ffffff;
    text-transform: uppercase;
}

.portfolio-page .portfolio-hero-title span {
    background: linear-gradient(135deg, #ffffff 0%, #ffaa00 50%, #ff5500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portfolio-page .portfolio-hero-desc {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    max-width: 820px;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Key Metrics Pills */
.portfolio-page .portfolio-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
}

.portfolio-page .portfolio-stat-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.portfolio-page .portfolio-stat-pill i {
    color: #ffaa00;
    font-size: 14px;
}

.portfolio-page .portfolio-stat-pill:hover {
    background: rgba(255, 170, 0, 0.06);
    border-color: rgba(255, 170, 0, 0.25);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   2. CLIENT BRANDS MARQUEE RAIL — CLEAN CONTROLLED BRAND THEME
   -------------------------------------------------------------------------- */
.portfolio-page .portfolio-brands-section {
    padding: 55px 0;
    background: #000000 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
    position: relative;
}

.portfolio-page .portfolio-brands-label {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.portfolio-page .portfolio-brands-label::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 2px;
    background: #ffaa00;
    border-radius: 2px;
    opacity: 0.8;
}

.portfolio-page .portfolio-brands-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.portfolio-page .portfolio-brands-track {
    display: inline-flex;
    align-items: center;
    gap: 60px;
    animation: portfolioBrandsMarquee 38s linear infinite;
}

.portfolio-page .portfolio-brands-marquee:hover .portfolio-brands-track {
    animation-play-state: paused;
}

/* ENLARGED LOGO SLOT FOR GREATER VISIBILITY & IMPACT */
.portfolio-page .portfolio-brand-item {
    width: 180px;
    height: 75px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    background: transparent;
    border: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-page .portfolio-brand-item img {
    max-width: 100%;
    max-height: 58px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: saturate(0.85);
    opacity: 0.85;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-page .portfolio-brand-item:hover img {
    filter: saturate(1) brightness(1.08);
    opacity: 1;
    transform: scale(1.06);
}

@keyframes portfolioBrandsMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   3. CATEGORY DISCOVERY SHOWCASE SECTION & COMPACT REFERENCE CARDS
   -------------------------------------------------------------------------- */
.portfolio-page .portfolio-category-section {
    padding: 60px 0 80px;
    position: relative;
}

.portfolio-page .portfolio-category-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.portfolio-page .portfolio-section-header {
    margin-bottom: 35px;
}

.portfolio-page .portfolio-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffaa00;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.portfolio-page .portfolio-section-label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: #ffaa00;
}

.portfolio-page .portfolio-section-title {
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.portfolio-page .portfolio-section-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    max-width: 680px;
    line-height: 1.6;
    font-weight: 300;
}

/* Category Grid Layout */
.portfolio-page .category-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    width: 100%;
}

.portfolio-page .portfolio-cat-card {
    position: relative;
    background: rgba(14, 12, 10, 0.88);
    border: 1px solid rgba(255, 170, 0, 0.18);
    border-radius: 24px;
    padding: 20px 18px 18px 18px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.portfolio-page .portfolio-cat-card--featured {
    background: linear-gradient(180deg, rgba(38, 22, 12, 0.95) 0%, rgba(14, 12, 10, 0.9) 100%);
    border-color: rgba(255, 170, 0, 0.45);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 120, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.portfolio-page .portfolio-cat-card--featured .portfolio-cat-card__arrow-btn {
    background: linear-gradient(135deg, #ffaa00 0%, #ff3300 100%);
    border-color: #ffaa00;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 85, 0, 0.5);
}

.portfolio-page .portfolio-cat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 170, 0, 0.45);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 120, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.portfolio-page .portfolio-cat-card:hover .portfolio-cat-card__title {
    color: #ffaa00;
}

.portfolio-page .portfolio-cat-card:hover .portfolio-cat-card__img {
    transform: scale(1.03);
}

.portfolio-page .portfolio-cat-card:hover .portfolio-cat-card__arrow-btn {
    background: linear-gradient(135deg, #ffaa00 0%, #ff3300 100%);
    border-color: #ffaa00;
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(255, 85, 0, 0.5);
}

.portfolio-page .portfolio-cat-card__header {
    padding: 0 4px 14px 4px;
}

.portfolio-page .portfolio-cat-card__title {
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.3px;
    transition: color 0.3s ease;
}

.portfolio-page .portfolio-cat-card__body {
    position: relative;
    width: 100%;
    margin-top: 2px;
}

.portfolio-page .portfolio-cat-card__tabs {
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 12px;
    z-index: 1;
    pointer-events: none;
}

.portfolio-page .portfolio-cat-card__tab {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 12px 12px 0 0;
    background: rgba(35, 28, 20, 0.7);
    border: 1px solid rgba(255, 170, 0, 0.18);
    border-bottom: none;
}

.portfolio-page .portfolio-cat-card__tab--2 {
    top: -6px;
    width: 82%;
    height: 10px;
    opacity: 0.4;
}

.portfolio-page .portfolio-cat-card__tab--1 {
    top: 0px;
    width: 91%;
    height: 10px;
    opacity: 0.75;
}

.portfolio-page .portfolio-cat-card__img-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    overflow: hidden;
    background: #050508;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8), 0 8px 20px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.portfolio-page .portfolio-cat-card__img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-page .portfolio-cat-card__arrow-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(14, 14, 20, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.8);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.portfolio-page .portfolio-cat-card__arrow-btn svg {
    width: 18px;
    height: 18px;
    stroke: #ffffff;
    display: block;
    transition: stroke 0.3s ease, transform 0.3s ease;
}

/* --------------------------------------------------------------------------
   4. CATEGORY PROJECTS GRID & CARDS (portfolio-category.html)
   -------------------------------------------------------------------------- */
.portfolio-page .cat-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    width: 100%;
}

.portfolio-page .cat-project-card {
    position: relative;
    background: rgba(14, 12, 10, 0.88);
    border: 1px solid rgba(255, 170, 0, 0.18);
    border-radius: 24px;
    padding: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.portfolio-page .cat-project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 170, 0, 0.45);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 120, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.portfolio-page .cat-project-thumb-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    overflow: hidden;
    background: #050508;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.portfolio-page .cat-project-thumb-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-page .cat-project-card:hover .cat-project-thumb-img {
    transform: scale(1.04);
}

/* FLOATING BRAND LOGO BADGE ON CARDS — BORDERLESS & SLIGHTLY LARGER */
.portfolio-page .cat-project-brand-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 6px 14px;
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    border: none;
    max-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.portfolio-page .cat-project-brand-badge.clickable {
    cursor: pointer;
}

.portfolio-page .cat-project-brand-badge.clickable:hover {
    background: rgba(10, 10, 15, 0.95);
    transform: scale(1.06);
}

.portfolio-page .cat-project-brand-badge img {
    max-height: 36px;
    max-width: 140px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.portfolio-page .cat-project-external-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(14, 14, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.portfolio-page .cat-project-external-btn:hover {
    background: linear-gradient(135deg, #ffaa00 0%, #ff3300 100%);
    border-color: #ffaa00;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 85, 0, 0.6);
}

.portfolio-page .cat-project-external-btn svg {
    stroke: #ffffff;
}

.portfolio-page .cat-project-body {
    padding-top: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.portfolio-page .cat-project-title {
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.25;
}

.portfolio-page .cat-project-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.portfolio-page .cat-project-title a:hover {
    color: #ffaa00;
}

.portfolio-page .cat-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.portfolio-page .cat-project-tag-pill {
    padding: 4px 12px;
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.25);
    border-radius: 50px;
    color: #ffaa00;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.portfolio-page .cat-project-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 20px;
    font-weight: 300;
}

.portfolio-page .cat-project-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-page .cat-project-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #ffaa00;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.portfolio-page .cat-project-details-btn:hover {
    color: #ffffff;
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   5. DYNAMIC PROJECT DETAILS PAGE (project-details.html)
   -------------------------------------------------------------------------- */
.portfolio-page .project-details-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.portfolio-page .pd-section {
    margin-bottom: 70px;
}

.portfolio-page .pd-top-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    margin-bottom: 30px;
}

.portfolio-page .pd-back-link,
.portfolio-page .pd-cat-link {
    color: #ffaa00;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.portfolio-page .pd-back-link:hover,
.portfolio-page .pd-cat-link:hover {
    color: #ffffff;
}

.portfolio-page .pd-sep {
    color: rgba(255, 255, 255, 0.3);
}

.portfolio-page .pd-current {
    color: rgba(255, 255, 255, 0.7);
}

.portfolio-page .pd-hero-card {
    position: relative;
    background: #08080d;
    border: 1px solid rgba(255, 170, 0, 0.35);
    border-radius: 28px;
    padding: 60px 48px 48px 48px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    margin-bottom: 50px;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-page .pd-hero-card:hover {
    border-color: rgba(255, 170, 0, 0.55);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 120, 0, 0.22);
}

.portfolio-page .pd-hero-card__bg {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-position: right center;
    background-repeat: no-repeat;
    filter: blur(1px) brightness(1.15) contrast(1.05);
    opacity: 1;
    transform: scale(1.05);
    -webkit-mask-image: radial-gradient(ellipse 85% 85% at 70% 50%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0.65) 75%, rgba(0, 0, 0, 0) 100%);
    mask-image: radial-gradient(ellipse 85% 85% at 70% 50%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0.65) 75%, rgba(0, 0, 0, 0) 100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
    z-index: 0;
    pointer-events: none;
}

.portfolio-page .pd-hero-card:hover .pd-hero-card__bg {
    transform: scale(1.08);
    filter: blur(0px) brightness(1.2) contrast(1.08);
}

.portfolio-page .pd-hero-card__overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 70% 50%, transparent 35%, rgba(8, 8, 13, 0.5) 70%, rgba(8, 8, 13, 0.95) 100%),
        linear-gradient(90deg, rgba(8, 8, 13, 0.94) 0%, rgba(8, 8, 13, 0.78) 45%, rgba(8, 8, 13, 0.25) 80%, rgba(8, 8, 13, 0.05) 100%),
        linear-gradient(180deg, rgba(8, 8, 13, 0.5) 0%, transparent 45%, rgba(8, 8, 13, 0.6) 100%);
    z-index: 1;
    pointer-events: none;
}

.portfolio-page .pd-hero-card__content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.portfolio-page .pd-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.portfolio-page .pd-category-badge {
    padding: 6px 16px;
    background: rgba(10, 10, 15, 0.65);
    border: 1px solid rgba(255, 170, 0, 0.4);
    border-radius: 50px;
    color: #ffaa00;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* HERO CARD BRAND LOGO — BORDERLESS, CLEAN & NOTICEABLY LARGER */
.portfolio-page .pd-brand-badge {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.portfolio-page .pd-brand-badge img {
    max-height: 85px;
    max-width: 320px;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
    transition: transform 0.3s ease;
}

.portfolio-page .pd-brand-badge img:hover {
    transform: scale(1.05);
}

.portfolio-page .pd-title {
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.2;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.95), 0 0 4px rgba(0, 0, 0, 0.9);
}

.portfolio-page .pd-desc {
    font-size: 17px;
    line-height: 1.7;
    color: #ffffff;
    max-width: 800px;
    margin-bottom: 24px;
    font-weight: 400;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 0 0 3px rgba(0, 0, 0, 0.9);
}

.portfolio-page .pd-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.portfolio-page .pd-tag-pill {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 500;
}

.portfolio-page .pd-hero-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    background: rgba(255, 170, 0, 0.12);
    border: 1px solid rgba(255, 170, 0, 0.35);
    border-radius: 50px;
    color: #ffaa00 !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-page .pd-hero-review-btn:hover {
    background: rgba(255, 170, 0, 0.25);
    border-color: #ffaa00;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 170, 0, 0.3);
}

/* INTEGRATED HERO REVIEW BLOCK */
.portfolio-page .pd-hero-review-block {
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.portfolio-page .pd-hero-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.portfolio-page .pd-hero-review-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffaa00;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.portfolio-page .pd-hero-review-stars {
    display: flex;
    gap: 4px;
    color: #ffaa00;
    font-size: 13px;
}

.portfolio-page .pd-hero-review-quote {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: #ffffff;
    font-style: italic;
    margin: 0 0 10px 0;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.portfolio-page .pd-hero-review-client {
    font-size: 13px;
    font-weight: 700;
    color: #ffaa00;
    letter-spacing: 0.5px;
}

.portfolio-page .pd-hero-review-client-link {
    color: #ffaa00 !important;
    text-decoration: none;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.portfolio-page .pd-hero-review-client-link:hover {
    color: #ffffff !important;
    text-decoration: underline;
    opacity: 0.9;
}

.portfolio-page .pd-hero-review-block--empty {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.portfolio-page .pd-hero-review-empty-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin: 4px 0 0 0;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.portfolio-page .pd-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.portfolio-page .pd-tag-pill {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 500;
}

.portfolio-page .pd-cta-wrap {
    margin-top: 20px;
}

.portfolio-page .pd-live-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #ffaa00 0%, #ff3300 100%);
    color: #000000 !important;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.35s ease;
    box-shadow: 0 8px 25px rgba(255, 85, 0, 0.3);
}

.portfolio-page .pd-live-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(255, 85, 0, 0.5);
}

/* 5.1 UNIFIED SHOWCASE CONTAINER & GRID */
.portfolio-page .pd-showcase-section {
    margin-bottom: 70px;
}

.portfolio-page .pd-showcase-card {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(14, 12, 10, 0.85);
    border: 1px solid rgba(255, 170, 0, 0.2);
    border-radius: 32px;
    padding: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

/* Ambient Orange Backlight Gradients */
.portfolio-page .pd-showcase-card::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 170, 0, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.portfolio-page .pd-showcase-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 85, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.portfolio-page .pd-showcase-grid {
    position: relative;
    z-index: 1;
    width: 100%;
}

.portfolio-page .pd-showcase-grid--split {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(240px, 0.65fr);
    gap: 36px;
    align-items: start;
}

.portfolio-page .pd-showcase-grid--desktop-only {
    display: flex;
    justify-content: center;
    width: 100%;
}

.portfolio-page .pd-showcase-grid--desktop-only .pd-showcase-col--desktop {
    max-width: 1000px;
    width: 100%;
}

.portfolio-page .pd-showcase-grid--mobile-only {
    display: flex;
    justify-content: center;
    width: 100%;
}

.portfolio-page .pd-showcase-grid--mobile-only .pd-showcase-col--mobile {
    max-width: 340px;
    width: 100%;
}

.portfolio-page .pd-showcase-col {
    display: flex;
    flex-direction: column;
}

.portfolio-page .pd-showcase-col--desktop {
    width: 100%;
}

.portfolio-page .pd-showcase-col--mobile {
    width: 100%;
    align-items: center;
}

/* Identical Column Header Alignment */
.portfolio-page .pd-col-header {
    margin-bottom: 24px;
    width: 100%;
}

.portfolio-page .pd-col-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffaa00;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.portfolio-page .pd-col-label::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 2px;
    background: #ffaa00;
    border-radius: 2px;
}

.portfolio-page .pd-col-title {
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin: 0;
    line-height: 1.2;
}

.portfolio-page .pd-showcase-hint {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* LARGE D-KODE DESKTOP / iMac MOCKUP FRAME POLISH */
.portfolio-page .pd-desktop-mockup {
    position: relative;
    width: 100%;
    display: block;
    filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.9));
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

.portfolio-page .pd-desktop-mockup:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 25px 55px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 25px rgba(255, 170, 0, 0.15));
}

.portfolio-page .pd-desktop-mockup__frame {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    z-index: 2;
    pointer-events: none;
    user-select: none;
}

.portfolio-page .pd-desktop-mockup__screen {
    position: absolute;
    top: 4.8%;
    left: 4.8%;
    width: 90.4%;
    height: 61.5%;
    overflow: hidden;
    z-index: 1;
    background: #000000;
    border-radius: 2px;
    cursor: pointer;
}

.portfolio-page .pd-desktop-yt-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

.portfolio-page .pd-desktop-interactive-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: top center;
    cursor: pointer;
    transform: translateY(0px);
    will-change: transform;
}

/* MOBILE PHONE DEVICE FRAME POLISH */
.portfolio-page .pd-phone-device {
    position: relative;
    width: 290px;
    height: 590px;
    background: #08080c;
    border: 9px solid #1a1a24;
    border-radius: 42px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 120, 0, 0.12);
    overflow: hidden;
    padding: 7px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.portfolio-page .pd-phone-device:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(255, 170, 0, 0.25);
}

.portfolio-page .pd-phone-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 85px;
    height: 18px;
    background: #000000;
    border-radius: 20px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.portfolio-page .pd-phone-speaker {
    width: 30px;
    height: 4px;
    background: #1a1a1a;
    border-radius: 4px;
}

.portfolio-page .pd-phone-camera {
    width: 7px;
    height: 7px;
    background: #0d0d15;
    border-radius: 50%;
}

.portfolio-page .pd-phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #000000;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 170, 0, 0.4) transparent;
}

.portfolio-page .pd-mobile-scroll-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: top center;
    cursor: zoom-in;
    animation: pdMobileSlowScroll 24s ease-in-out infinite alternate;
}

.portfolio-page .pd-phone-screen:hover .pd-mobile-scroll-img {
    animation-play-state: paused;
}

@keyframes pdMobileSlowScroll {
    0% { transform: translateY(0%); }
    15% { transform: translateY(0%); }
    85% { transform: translateY(calc(-100% + 100%)); }
    100% { transform: translateY(calc(-100% + 100%)); }
}

.portfolio-page .pd-phone-home-bar {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    z-index: 20;
    pointer-events: none;
}

/* 5.4 CLIENT REVIEW CARD */
.portfolio-page .pd-review-card {
    background: rgba(14, 12, 10, 0.88);
    border: 1px solid rgba(255, 170, 0, 0.25);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    text-align: center;
    max-width: 840px;
    margin: 0 auto;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7);
}

.portfolio-page .pd-review-stars {
    color: #ffaa00;
    font-size: 18px;
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.portfolio-page .pd-review-quote {
    font-size: 18px;
    line-height: 1.7;
    color: #ffffff;
    font-style: italic;
    font-weight: 300;
    margin-bottom: 20px;
}

.portfolio-page .pd-review-author {
    color: #ffaa00;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* 5.5 BOTTOM CTA BANNER */
.portfolio-page .pd-cta-banner-card {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 40px;
    background: linear-gradient(135deg, rgba(25, 18, 12, 0.95) 0%, rgba(10, 10, 15, 0.95) 100%);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 28px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.portfolio-page .pd-cta-banner-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 170, 0, 0.12);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 50px;
    color: #ffaa00;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.portfolio-page .pd-cta-banner-title {
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.portfolio-page .pd-cta-banner-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 28px;
}

/* 5.6 PORTFOLIO PAGE CTA SECTION & GLOWING CARD */
.portfolio-page .portfolio-cta-section {
    padding: 90px 40px 110px;
    position: relative;
    z-index: 2;
    background: radial-gradient(ellipse 80% 50% at 50% 50%, rgba(255, 120, 0, 0.06) 0%, transparent 75%);
}

.portfolio-page .portfolio-cta-card {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 48px;
    background: linear-gradient(135deg, rgba(22, 16, 12, 0.92) 0%, rgba(10, 10, 15, 0.95) 100%);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 32px;
    text-align: center;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 35px rgba(255, 120, 0, 0.12);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-page .portfolio-cta-card::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(255, 170, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.portfolio-page .portfolio-cta-card > * {
    position: relative;
    z-index: 1;
}

.portfolio-page .portfolio-cta-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 170, 0, 0.55);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 50px rgba(255, 120, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.portfolio-page .portfolio-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 50px;
    color: #ffaa00;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.1);
}

.portfolio-page .portfolio-cta-title {
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-size: clamp(28px, 3.8vw, 44px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.portfolio-page .portfolio-cta-desc {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    max-width: 680px;
    margin: 0 auto 36px auto;
    font-weight: 300;
}

.portfolio-page .portfolio-cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.portfolio-page .portfolio-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 34px;
    background: linear-gradient(135deg, #ffaa00 0%, #ff3300 100%);
    color: #000000 !important;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 25px rgba(255, 85, 0, 0.4);
    border: none;
}

.portfolio-page .portfolio-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 35px rgba(255, 85, 0, 0.6);
    color: #000000 !important;
}

.portfolio-page .portfolio-btn-primary i {
    transition: transform 0.3s ease;
}

.portfolio-page .portfolio-btn-primary:hover i {
    transform: translateX(4px);
}

.portfolio-page .portfolio-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 34px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}

.portfolio-page .portfolio-btn-secondary:hover {
    background: rgba(255, 170, 0, 0.15);
    border-color: #ffaa00;
    color: #ffaa00 !important;
    transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   6. LIGHTBOX INSPECTION MODAL (GLOBAL TO PORTFOLIO PAGE)
   -------------------------------------------------------------------------- */
.pd-lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    padding: 40px;
}

.pd-lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.pd-lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 38px;
    color: #ffffff;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 100000;
}

.pd-lightbox-close:hover {
    color: #ffaa00;
}

.pd-lightbox-content {
    max-width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    border: 1px solid rgba(255, 170, 0, 0.3);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
    background: #000000;
}

.pd-lightbox-content img {
    width: 100%;
    height: auto;
    display: block;
}

/* --------------------------------------------------------------------------
   7. ERROR STATE: PROJECT NOT FOUND
   -------------------------------------------------------------------------- */
.portfolio-page .project-not-found-card {
    text-align: center;
    padding: 80px 30px;
    background: rgba(14, 12, 10, 0.85);
    border: 1px solid rgba(255, 170, 0, 0.2);
    border-radius: 28px;
    max-width: 600px;
    margin: 40px auto;
}

.portfolio-page .pnf-icon {
    font-size: 56px;
    color: #ffaa00;
    margin-bottom: 20px;
}

.portfolio-page .pnf-title {
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.portfolio-page .pnf-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.portfolio-page .pnf-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.portfolio-page .pnf-back-btn:hover {
    background: rgba(255, 170, 0, 0.2);
    border-color: #ffaa00;
    color: #ffaa00;
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .portfolio-page .category-showcase-grid,
    .portfolio-page .cat-projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .portfolio-page .pd-showcase-card {
        padding: 30px 24px;
        border-radius: 24px;
    }

    .portfolio-page .pd-showcase-grid--split {
        grid-template-columns: 1fr;
        gap: 45px;
    }
    
    .portfolio-page .portfolio-hero-inner,
    .portfolio-page .portfolio-category-container,
    .portfolio-page .project-details-container,
    .portfolio-page #mobile-portfolio-section .sec-inner {
        padding: 0 24px;
    }

    .portfolio-page .portfolio-hero {
        padding-top: 140px;
    }

    .portfolio-page .pd-phone-device {
        width: 280px;
        height: 570px;
    }
}

@media (max-width: 640px) {
    .portfolio-page .category-showcase-grid,
    .portfolio-page .cat-projects-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .portfolio-page .portfolio-hero {
        padding-top: 120px;
        padding-bottom: 45px;
    }

    .portfolio-page .portfolio-hero-stats {
        flex-direction: column;
        align-items: stretch;
    }

    .portfolio-page .portfolio-cat-card,
    .portfolio-page .cat-project-card {
        padding: 16px 14px 14px 14px;
        border-radius: 20px;
    }

    .portfolio-page .portfolio-cat-card__title,
    .portfolio-page .cat-project-title {
        font-size: 18px;
    }

    .portfolio-page .portfolio-cat-card__arrow-btn,
    .portfolio-page .cat-project-external-btn {
        width: 38px;
        height: 38px;
        bottom: 6px;
        right: 6px;
    }

    .portfolio-page .portfolio-cat-card__arrow-btn svg,
    .portfolio-page .cat-project-external-btn svg {
        width: 16px;
        height: 16px;
    }

    .portfolio-page .pd-showcase-card {
        padding: 24px 16px;
        border-radius: 20px;
    }

    .portfolio-page .pd-hero-card {
        padding: 24px;
        border-radius: 20px;
    }

    .portfolio-page .pd-hero-card__overlay {
        background: 
            linear-gradient(180deg, rgba(8, 8, 13, 0.96) 0%, rgba(8, 8, 13, 0.88) 60%, rgba(8, 8, 13, 0.65) 100%);
    }

    .portfolio-page .pd-brand-badge img {
        max-height: 60px;
        max-width: 220px;
    }

    .portfolio-page .pd-phone-device {
        width: 250px;
        height: 520px;
        border-width: 6px;
        border-radius: 36px;
    }

    .portfolio-page .portfolio-cta-card {
        padding: 40px 20px;
        border-radius: 24px;
    }

    .portfolio-page .portfolio-cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .portfolio-page .portfolio-btn-primary,
    .portfolio-page .portfolio-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portfolio-page .pd-desktop-interactive-img,
    .portfolio-page .pd-mobile-scroll-img {
        animation: none !important;
        transition: none !important;
    }
}

/* --------------------------------------------------------------------------
   9. PROJECT DETAILS ENHANCEMENTS & UI POLISH (REVIEWS, SHARE MODAL, QR & ENQUIRY)
   -------------------------------------------------------------------------- */

/* Hero Action CTA Group */
.portfolio-page .pd-cta-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.portfolio-page .pd-share-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-page .pd-share-hero-btn:hover {
    background: rgba(255, 170, 0, 0.15);
    border-color: rgba(255, 170, 0, 0.5);
    color: #ffaa00 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 170, 0, 0.18);
}

/* --------------------------------------------------------------------------
   CLIENT REVIEW SECTION (ATTACHED & STRUCTURED)
   -------------------------------------------------------------------------- */
.portfolio-page .pd-top-review-section {
    margin-bottom: 50px;
}

/* Review Card (When Review Exists) */
.portfolio-page .pd-top-review-card {
    position: relative;
    background: rgba(12, 12, 18, 0.85);
    border: 1px solid rgba(255, 170, 0, 0.25);
    border-radius: 24px;
    padding: 32px 38px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65), inset 0 0 30px rgba(255, 170, 0, 0.08);
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.portfolio-page .pd-top-review-card:hover {
    border-color: rgba(255, 170, 0, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.85), inset 0 0 40px rgba(255, 170, 0, 0.14);
}

.portfolio-page .pd-top-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 14px;
}

.portfolio-page .pd-review-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.portfolio-page .pd-quote-icon {
    font-size: 22px;
    color: #ffaa00;
}

.portfolio-page .pd-review-stars {
    display: flex;
    gap: 4px;
    color: #ffaa00;
    font-size: 14px;
}

.portfolio-page .pd-review-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    margin-left: 4px;
}

.portfolio-page .pd-review-action-btn,
.portfolio-page .pd-add-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: rgba(255, 170, 0, 0.12);
    border: 1px solid rgba(255, 170, 0, 0.35);
    border-radius: 50px;
    color: #ffaa00 !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.portfolio-page .pd-review-action-btn:hover,
.portfolio-page .pd-add-review-btn:hover {
    background: rgba(255, 170, 0, 0.25);
    border-color: #ffaa00;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 170, 0, 0.3);
}

.portfolio-page .pd-top-review-quote {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
    font-style: italic;
    margin: 0 0 16px 0;
    font-weight: 300;
}

.portfolio-page .pd-top-review-client {
    font-size: 13px;
    font-weight: 700;
    color: #ffaa00;
    letter-spacing: 0.5px;
}

/* Empty Review Section (When No Review Yet) */
.portfolio-page .pd-empty-review-card {
    position: relative;
    background: rgba(12, 12, 18, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 24px 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 170, 0, 0.05);
    transition: all 0.3s ease;
}

.portfolio-page .pd-empty-review-card:hover {
    border-color: rgba(255, 170, 0, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(255, 170, 0, 0.1);
}

.portfolio-page .pd-empty-review-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffaa00;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.portfolio-page .pd-star-gold {
    color: #ffaa00;
    font-size: 12px;
}

.portfolio-page .pd-empty-review-title {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.portfolio-page .pd-empty-review-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* --------------------------------------------------------------------------
   SHOWCASE SECTION POLISH (DESKTOP + MOBILE SCALE & VISUAL BALANCE)
   -------------------------------------------------------------------------- */
.portfolio-page .pd-showcase-section {
    margin-bottom: 60px;
}

.portfolio-page .pd-showcase-card {
    position: relative;
    background: rgba(10, 10, 15, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.portfolio-page .pd-showcase-grid--split {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.portfolio-page .pd-col-header {
    margin-bottom: 20px;
    width: 100%;
}

.portfolio-page .pd-col-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffaa00;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.portfolio-page .pd-col-label::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 2px;
    background: #ffaa00;
    border-radius: 2px;
}

.portfolio-page .pd-col-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    margin: 0;
    line-height: 1.25;
}

/* Scaled Desktop Mockup */
.portfolio-page .pd-desktop-mockup {
    max-width: 96%;
    margin: 0 auto;
}

/* Scaled Phone Device Frame */
.portfolio-page .pd-phone-device {
    width: 270px;
    height: 550px;
    background: #08080c;
    border: 8px solid #1a1a24;
    border-radius: 38px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 120, 0, 0.12);
    margin: 0 auto;
}

.portfolio-page .pd-showcase-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(255, 170, 0, 0.08);
    border: 1px solid rgba(255, 170, 0, 0.2);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 18px;
    width: fit-content;
    align-self: center;
}

/* --------------------------------------------------------------------------
   "LIKE THIS PROJECT?" CTA CARD REDESIGN (CENTERED & AMBIENT GLOW)
   -------------------------------------------------------------------------- */
.portfolio-page .pd-similar-project-section {
    margin-bottom: 60px;
}

.portfolio-page .pd-similar-card {
    position: relative;
    background: linear-gradient(135deg, rgba(16, 14, 22, 0.95) 0%, rgba(10, 8, 14, 0.98) 100%);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 28px;
    padding: 48px 40px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.8), inset 0 0 50px rgba(255, 170, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    text-align: center;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.portfolio-page .pd-similar-card:hover {
    border-color: rgba(255, 170, 0, 0.5);
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.9), inset 0 0 60px rgba(255, 170, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.portfolio-page .pd-similar-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portfolio-page .pd-similar-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 170, 0, 0.12);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 50px;
    color: #ffaa00;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    margin-bottom: 14px;
}

.portfolio-page .pd-similar-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(24px, 3.2vw, 34px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.25;
}

.portfolio-page .pd-similar-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
    margin: 0 0 28px 0;
    font-weight: 300;
    max-width: 620px;
}

.portfolio-page .pd-similar-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
}

.portfolio-page .pd-wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    background: #25D366;
    color: #000000 !important;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

.portfolio-page .pd-wa-btn i {
    font-size: 17px;
}

.portfolio-page .pd-wa-btn:hover {
    background: #20bd5a;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
    color: #000000 !important;
}

.portfolio-page .pd-similar-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #ffaa00 0%, #ff3300 100%);
    color: #000000 !important;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 25px rgba(255, 85, 0, 0.35);
}

.portfolio-page .pd-similar-contact-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 35px rgba(255, 85, 0, 0.55);
    color: #000000 !important;
}

/* --------------------------------------------------------------------------
   SHARE POPUP MODAL REDESIGN (PREMIUM CHARCOAL GLASS & AMBIENT ORANGE GLOW)
   -------------------------------------------------------------------------- */
.pd-share-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.pd-share-modal.active {
    opacity: 1;
    visibility: visible;
}

.pd-share-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.pd-share-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    background: rgba(12, 12, 16, 0.95);
    border: 1px solid rgba(255, 170, 0, 0.35);
    border-radius: 28px;
    padding: 36px 28px 28px;
    box-shadow: inset 0 0 45px rgba(255, 170, 0, 0.12), 0 25px 65px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 170, 0, 0.15);
    text-align: center;
    transform: scale(0.92) translateY(15px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pd-share-modal.active .pd-share-dialog {
    transform: scale(1) translateY(0);
}

.pd-share-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.pd-share-close:hover {
    background: rgba(255, 85, 0, 0.22);
    border-color: #ffaa00;
    color: #ffffff;
    transform: rotate(90deg);
}

.pd-share-header {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pd-share-icon-wrap {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    background: rgba(255, 170, 0, 0.12);
    border: 1px solid rgba(255, 170, 0, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffaa00;
    font-size: 18px;
}

.pd-share-badge {
    color: #ffaa00;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.pd-share-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.2;
}

.pd-share-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.pd-share-qr-wrapper {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pd-share-qrcode {
    padding: 14px;
    background: #09090e;
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(255, 170, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-share-qrcode canvas,
.pd-share-qrcode img {
    display: block;
    border-radius: 8px;
}

.pd-share-qr-caption {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 10px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pd-share-url-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 4px 6px 4px 16px;
    margin-bottom: 20px;
}

.pd-share-link-icon {
    color: rgba(255, 170, 0, 0.8);
    font-size: 13px;
}

.pd-share-url-input {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-family: monospace;
    outline: none;
    width: 100%;
    text-overflow: ellipsis;
}

.pd-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: linear-gradient(135deg, #ffaa00 0%, #ff3300 100%);
    border: none;
    border-radius: 50px;
    color: #000000;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.pd-copy-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(255, 170, 0, 0.4);
}

.pd-copy-btn.copied {
    background: #25D366 !important;
    color: #000000 !important;
}

.pd-share-footer-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.pd-native-share-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 170, 0, 0.12);
    border: 1px solid rgba(255, 170, 0, 0.35);
    border-radius: 50px;
    color: #ffaa00;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.pd-native-share-btn:hover {
    background: rgba(255, 170, 0, 0.25);
    color: #ffffff;
}

.pd-share-dismiss-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.pd-share-dismiss-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS FOR POLISHED SECTIONS
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    .portfolio-page .pd-similar-card {
        padding: 34px 20px;
        border-radius: 24px;
    }

    .portfolio-page .pd-similar-actions {
        flex-direction: column;
        width: 100%;
    }

    .portfolio-page .pd-wa-btn,
    .portfolio-page .pd-similar-contact-btn {
        width: 100%;
    }

    .portfolio-page .pd-empty-review-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .portfolio-page .pd-add-review-btn {
        width: 100%;
        justify-content: center;
    }

    .portfolio-page .pd-top-review-card {
        padding: 24px 20px;
    }

    .pd-share-dialog {
        padding: 28px 20px 22px;
        border-radius: 24px;
    }
}

/* ==========================================================================
   PORTFOLIO SKELETON & PROGRESSIVE LOADING SYSTEM
   ========================================================================== */

/* Shimmer Animation — Dark Charcoal Base + Subtle Orange Tint Accent */
@keyframes portfolioSkeletonShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.portfolio-skeleton-base {
    background: linear-gradient(
        90deg,
        rgba(20, 18, 26, 0.9) 0%,
        rgba(255, 170, 0, 0.12) 35%,
        rgba(35, 30, 42, 0.95) 50%,
        rgba(255, 170, 0, 0.12) 65%,
        rgba(20, 18, 26, 0.9) 100%
    ) !important;
    background-size: 200% 100% !important;
    animation: portfolioSkeletonShimmer 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
}

/* Skeleton Category Cards */
.portfolio-cat-card-skeleton {
    position: relative;
    background: rgba(14, 12, 10, 0.88);
    border: 1px solid rgba(255, 170, 0, 0.14);
    border-radius: 24px;
    padding: 20px 18px 18px 18px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
    user-select: none;
}

.portfolio-cat-card-skeleton .skeleton-title {
    height: 24px;
    width: 65%;
    margin-bottom: 16px;
    border-radius: 6px;
}

.portfolio-cat-card-skeleton .skeleton-img-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

/* Skeleton Project Cards */
.cat-project-card-skeleton {
    position: relative;
    background: rgba(14, 12, 10, 0.88);
    border: 1px solid rgba(255, 170, 0, 0.14);
    border-radius: 24px;
    padding: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
    user-select: none;
}

.cat-project-card-skeleton .skeleton-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    position: relative;
}

.cat-project-card-skeleton .skeleton-body {
    padding-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cat-project-card-skeleton .skeleton-line-title {
    height: 22px;
    width: 80%;
    border-radius: 6px;
}

.cat-project-card-skeleton .skeleton-line-tag {
    height: 18px;
    width: 45%;
    border-radius: 50px;
}

.cat-project-card-skeleton .skeleton-line-desc {
    height: 14px;
    width: 95%;
    border-radius: 4px;
}

.cat-project-card-skeleton .skeleton-line-desc-2 {
    height: 14px;
    width: 70%;
    border-radius: 4px;
}

/* Project Details Skeleton Layout */
.pd-hero-skeleton {
    position: relative;
    background: #08080d;
    border: 1px solid rgba(255, 170, 0, 0.2);
    border-radius: 28px;
    padding: 60px 48px 48px 48px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
    margin-bottom: 50px;
}

.pd-hero-skeleton .skeleton-badge {
    height: 24px;
    width: 130px;
    border-radius: 50px;
}

.pd-hero-skeleton .skeleton-title-lg {
    height: 46px;
    width: 60%;
    border-radius: 10px;
}

.pd-hero-skeleton .skeleton-desc-lg {
    height: 20px;
    width: 80%;
    border-radius: 6px;
}

.pd-hero-skeleton .skeleton-btn-group {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.pd-hero-skeleton .skeleton-btn {
    height: 44px;
    width: 180px;
    border-radius: 50px;
}

/* Device Screen Skeletons */
.pd-desktop-mockup__screen.is-loading,
.pd-phone-screen.is-loading {
    background-color: #0d0d14;
    position: relative;
}

.pd-desktop-mockup__screen.is-loading::before,
.pd-phone-screen.is-loading::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(20, 18, 26, 0.9) 0%,
        rgba(255, 170, 0, 0.12) 35%,
        rgba(35, 30, 42, 0.95) 50%,
        rgba(255, 170, 0, 0.12) 65%,
        rgba(20, 18, 26, 0.9) 100%
    );
    background-size: 200% 100%;
    animation: portfolioSkeletonShimmer 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    z-index: 2;
}

/* Progressive Image Loading (Blur -> Sharp & Opacity Fade) */
.portfolio-img-progressive {
    opacity: 0;
    filter: blur(12px) scale(1.02);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, filter, transform;
}

.portfolio-img-progressive.is-loaded {
    opacity: 1;
    filter: blur(0) scale(1);
}

/* Staggered Progressive Reveal */
.portfolio-stagger-item {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(4px);
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-stagger-item.is-revealed {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Layout Shift Prevention Aspect Ratios */
.portfolio-cat-card__img-frame,
.cat-project-thumb-frame {
    aspect-ratio: 4 / 3 !important;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .portfolio-skeleton-base,
    .pd-desktop-mockup__screen.is-loading::before,
    .pd-phone-screen.is-loading::before {
        animation: none !important;
        background: rgba(255, 255, 255, 0.05) !important;
    }

    .portfolio-img-progressive {
        transition: opacity 0.2s ease !important;
        filter: none !important;
        transform: none !important;
    }

    .portfolio-stagger-item {
        transition: opacity 0.2s ease !important;
        transform: none !important;
        filter: none !important;
    }
}



