/* =============================================
   PORTFOLIO PAGE — portfolio.css
   HRN Tech Solutions
   Option 1: Flat 16:9 Wide Banner ⟷ 3D Exploded Anatomy
   Luxury Single-Banner Case Study Modal
   ============================================= */

/* ---- Hero ---- */
.portfolio-hero {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 5rem;
    overflow: hidden;
    background: #030508;
}
.portfolio-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, #000 100%);
}

/* Breadcrumb */
.portfolio-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}
.breadcrumb-link { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.breadcrumb-link:hover { color: #fff; }
.breadcrumb-sep { font-size: 0.7rem; color: rgba(255,255,255,0.3); }
.breadcrumb-current { color: #fff; font-weight: 600; }

/* Portfolio Badge */
.portfolio-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    padding: 6px 18px;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.badge-dot {
    width: 7px; height: 7px;
    background: #00f2fe;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.4); }
    50%       { box-shadow: 0 0 0 6px rgba(0, 242, 254, 0); }
}

/* Hero Title */
.portfolio-hero-title {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.portfolio-hero-highlight {
    background: linear-gradient(90deg, #00f2fe, #4facfe, #00f2fe);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* ---- Filter Bar & 3D Controls ---- */
.portfolio-filter-section {
    padding: 0 0 30px;
    position: relative;
    z-index: 2;
}
.portfolio-controls-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 60px;
    padding: 8px 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.portfolio-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.filter-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50px;
    padding: 8px 20px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}
.filter-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.filter-btn.active {
    background: #00f2fe;
    color: #030508;
    border-color: #00f2fe;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}
.filter-count {
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.72rem;
    padding: 1px 7px;
    border-radius: 20px;
    margin-left: 4px;
}
.filter-btn.active .filter-count {
    background: #030508;
    color: #00f2fe;
}

/* Global 3D Explode Button */
.global-explode-btn {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.35);
    color: #00f2fe;
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.global-explode-btn:hover {
    background: rgba(0, 242, 254, 0.2);
    border-color: #00f2fe;
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.35);
}
.global-explode-btn.active {
    background: #00f2fe;
    color: #030508;
    border-color: #00f2fe;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
}

/* View Mode Switcher */
.portfolio-view-switcher {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 4px;
}
.view-toggle-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.view-toggle-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: #00f2fe;
}

/* ==========================================================================
   PORTFOLIO GRID & CARD CONTAINER
   ========================================================================== */
.portfolio-iso-section {
    padding: 20px 0 80px;
    position: relative;
    z-index: 2;
}

.iso-grid-wrapper {
    display: grid;
    gap: 26px;
    transition: all 0.35s ease;
}
.iso-grid-wrapper.grid-mode {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1150px) {
    .iso-grid-wrapper.grid-mode {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .iso-grid-wrapper.grid-mode {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   SHOWCASE (LIST MODE) — LUXURY 2-COLUMN SPLIT
   ========================================================================== */
.iso-grid-wrapper.list-mode {
    grid-template-columns: 1fr;
    gap: 32px;
}
.iso-grid-wrapper.list-mode .iso-card-inner {
    display: grid;
    grid-template-columns: 1.05fr 1.25fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: 
        "header stage"
        "body   stage";
    gap: 16px 40px;
    align-items: stretch;
    padding: 32px;
    background: linear-gradient(145deg, rgba(14, 18, 28, 0.95) 0%, rgba(6, 8, 14, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
}
.iso-grid-wrapper.list-mode .iso-card:hover .iso-card-inner,
.iso-grid-wrapper.list-mode .iso-card.exploded .iso-card-inner {
    border-color: rgba(0, 242, 254, 0.45);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 242, 254, 0.18);
}
.iso-grid-wrapper.list-mode .iso-card-header {
    grid-area: header;
    margin-bottom: 0;
}
.iso-grid-wrapper.list-mode .iso-stage {
    grid-area: stage;
    height: 100%;
    min-height: 290px;
    margin: 0;
    border-radius: 20px;
    background: radial-gradient(circle at 50% 50%, rgba(16, 26, 44, 0.8) 0%, rgba(3, 5, 8, 0.95) 100%);
    border: 1px solid rgba(0, 242, 254, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.iso-grid-wrapper.list-mode .iso-card-body {
    grid-area: body;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.iso-grid-wrapper.list-mode .iso-project-title {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.iso-grid-wrapper.list-mode .iso-project-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 18px;
}
.iso-grid-wrapper.list-mode .iso-metric-pill {
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 700;
}
.iso-grid-wrapper.list-mode .iso-tech-pill {
    padding: 4px 12px;
    font-size: 0.75rem;
}
.iso-grid-wrapper.list-mode .iso-details-btn {
    padding: 8px 22px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(0, 242, 254, 0.12);
    border-color: rgba(0, 242, 254, 0.4);
    color: #00f2fe;
}
.iso-grid-wrapper.list-mode .iso-details-btn:hover {
    background: #00f2fe;
    color: #030508;
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.4);
}

@media (max-width: 991px) {
    .iso-grid-wrapper.list-mode .iso-card-inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas: 
            "header"
            "stage"
            "body";
        gap: 18px;
        padding: 20px;
    }
    .iso-grid-wrapper.list-mode .iso-stage {
        height: 240px;
        min-height: unset;
    }
}

/* Card Container */
.iso-card {
    border-radius: 24px;
    transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.35s ease, opacity 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}
.iso-card:hover {
    transform: translateY(-6px);
}

.iso-card-inner {
    background: rgba(14, 18, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.iso-card:hover .iso-card-inner,
.iso-card.exploded .iso-card-inner {
    border-color: rgba(0, 242, 254, 0.45);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 242, 254, 0.15);
}

/* Card Header */
.iso-card-header {
    margin-bottom: 12px;
}
.iso-index-badge {
    font-family: 'Satoshi', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 9px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}
.iso-cat-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(8px);
}
.cat-web {
    color: #00f2fe;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25);
}
.cat-app {
    color: #34d399;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.25);
}
.cat-marketing {
    color: #fb7185;
    background: rgba(251, 113, 133, 0.08);
    border: 1px solid rgba(251, 113, 133, 0.25);
}
.cat-design {
    color: #c084fc;
    background: rgba(192, 132, 252, 0.08);
    border: 1px solid rgba(192, 132, 252, 0.25);
}

/* Card-level Explode Button */
.iso-card-explode-btn {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.iso-card-explode-btn:hover {
    color: #00f2fe;
    border-color: rgba(0, 242, 254, 0.4);
}
.iso-card-explode-btn.active {
    background: rgba(0, 242, 254, 0.2);
    border-color: #00f2fe;
    color: #00f2fe;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* ==========================================================================
   STAGE (FLAT 16:9 BANNER ⟷ 3D EXPLODED ANATOMY)
   ========================================================================== */
.iso-stage {
    height: 235px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 4px 0 18px;
    border-radius: 18px;
    background: radial-gradient(circle at 50% 50%, rgba(16, 26, 44, 0.6) 0%, rgba(3, 5, 8, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    perspective: 1200px;
    perspective-origin: 50% 50%;
    cursor: pointer;
    user-select: none;
    overflow: visible;
}

.iso-stack-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(0deg) rotateZ(0deg) rotateY(0deg) scale(1);
    transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.25, 1);
}

.iso-card:hover .iso-stack-viewport,
.iso-card.exploded .iso-stack-viewport {
    transform: rotateX(54deg) rotateZ(-30deg) rotateY(8deg) scale(0.88);
}

/* 3D Laser Corner Guides */
.iso-laser-guides {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transform-style: preserve-3d;
    opacity: 0;
    transition: opacity 0.45s ease;
}
.iso-card:hover .iso-laser-guides,
.iso-card.exploded .iso-laser-guides {
    opacity: 1;
}

.guide-corner {
    position: absolute;
    width: 2px;
    height: 140px;
    background: linear-gradient(to bottom, rgba(0, 242, 254, 0.9), rgba(0, 242, 254, 0.15) 50%, rgba(0, 242, 254, 0.9));
    transform-origin: top center;
    box-shadow: 0 0 6px rgba(0, 242, 254, 0.8);
}
.gc-tl { top: 0; left: 0; transform: translateZ(85px) rotateX(-90deg); }
.gc-tr { top: 0; right: 0; transform: translateZ(85px) rotateX(-90deg); }
.gc-bl { bottom: 0; left: 0; transform: translateZ(85px) rotateX(-90deg); }
.gc-br { bottom: 0; right: 0; transform: translateZ(85px) rotateX(-90deg); }

/* ==========================================================================
   ISOMETRIC PLANES
   ========================================================================== */
.iso-plane {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.25, 1), box-shadow 0.65s ease, opacity 0.45s ease, border-color 0.4s ease;
    overflow: hidden;
    backface-visibility: visible;
}

.plane-tag-label {
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 0.54rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1px 7px;
    border-radius: 10px;
    background: rgba(0, 242, 254, 0.18);
    color: #00f2fe;
    border: 1px solid rgba(0, 242, 254, 0.35);
    z-index: 10;
}
.tech-label {
    background: rgba(52, 211, 153, 0.18);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.35);
}
.data-label {
    background: rgba(251, 113, 133, 0.18);
    color: #fb7185;
    border-color: rgba(251, 113, 133, 0.35);
}

/* LAYER 1: Banner UI */
.plane-ui {
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    transform: translateZ(0px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 3;
    opacity: 1;
}
.iso-card:hover .plane-ui,
.iso-card.exploded .plane-ui {
    transform: translateZ(85px) translateY(-32px);
    border-color: rgba(0, 242, 254, 0.6);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 242, 254, 0.25);
}

.plane-browser-bar {
    background: rgba(6, 8, 14, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 26px;
    z-index: 5;
}
.plane-dots {
    display: flex;
    gap: 4px;
}
.plane-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}
.plane-dots span:nth-child(1) { background: #ff5f56; }
.plane-dots span:nth-child(2) { background: #ffbd2e; }
.plane-dots span:nth-child(3) { background: #27c93f; }

.plane-url-bar {
    font-size: 0.62rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.plane-live-dot {
    font-size: 0.55rem;
    font-weight: 800;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 4px;
}
.pulse-dot-green {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 5px #10b981;
    animation: pulseDot 1.4s infinite;
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

.plane-banner-canvas {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    height: calc(100% - 26px);
}
.plane-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.plane-grid-mesh {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 14px 14px;
    opacity: 0.45;
}
.plane-center-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    gap: 4px;
    padding: 0 14px;
    text-align: center;
}
.plane-hero-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 12px rgba(0, 242, 254, 0.5));
    transition: transform 0.4s ease;
}
.iso-card:hover .plane-hero-icon {
    transform: scale(1.15);
}
.plane-brand-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.3px;
    background: rgba(0, 0, 0, 0.5);
    padding: 3px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.plane-brand-sub {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

.plane-curtain {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 8, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 20;
    backdrop-filter: blur(4px);
}
.iso-card:hover .plane-curtain {
    opacity: 1;
}
.plane-curtain span {
    background: rgba(0, 242, 254, 0.2);
    border: 1px solid rgba(0, 242, 254, 0.6);
    color: #00f2fe;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 0 14px rgba(0, 242, 254, 0.35);
}

/* LAYER 2: Architecture */
.plane-tech {
    background: rgba(9, 14, 26, 0.94);
    border: 1.5px solid rgba(52, 211, 153, 0.35);
    transform: translateZ(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 14px;
    z-index: 2;
    opacity: 0;
}
.iso-card:hover .plane-tech,
.iso-card.exploded .plane-tech {
    transform: translateZ(28px) translateY(0px);
    opacity: 1;
    border-color: rgba(52, 211, 153, 0.7);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.75), 0 0 20px rgba(52, 211, 153, 0.2);
}

.plane-circuit-matrix {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    margin-top: 14px;
}
.pipeline-node {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    min-width: 0;
}
.pipeline-node i { font-size: 1.15rem; }
.pipeline-node span {
    font-size: 0.58rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.pipeline-line {
    width: 16px;
    height: 2px;
    background: rgba(255, 255, 255, 0.18);
    position: relative;
    flex-shrink: 0;
}
.pulse-packet {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00f2fe;
    border-radius: 50%;
    top: -1px;
    left: 0;
    box-shadow: 0 0 6px #00f2fe;
    animation: flowPacket 1.5s infinite linear;
}
.pulse-packet.delay-1 { animation-delay: 0.5s; }
.pulse-packet.delay-2 { animation-delay: 1.0s; }

@keyframes flowPacket {
    0%   { left: 0%; opacity: 0; }
    30%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* LAYER 3: Telemetry */
.plane-data {
    background: rgba(5, 8, 15, 0.96);
    border: 1.5px solid rgba(251, 113, 133, 0.35);
    transform: translateZ(-4px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 16px;
    z-index: 1;
    opacity: 0;
}
.iso-card:hover .plane-data,
.iso-card.exploded .plane-data {
    transform: translateZ(-35px) translateY(34px);
    opacity: 1;
    border-color: rgba(251, 113, 133, 0.7);
    box-shadow: 0 35px 65px rgba(0, 0, 0, 0.95), 0 0 25px rgba(251, 113, 133, 0.2);
}

.plane-telemetry-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}
.telemetry-badge {
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: #00f2fe;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.telemetry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.telemetry-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 4px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.t-val {
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
}
.t-lbl {
    font-size: 0.52rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

/* ==========================================================================
   CARD BODY & FOOTER
   ========================================================================== */
.iso-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.iso-metric-pill {
    font-size: 0.74rem;
    font-weight: 700;
    color: #00f2fe;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.22);
    border-radius: 8px;
    padding: 3px 10px;
    display: inline-flex;
    align-items: center;
    width: fit-content;
}
.iso-project-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.iso-project-title:hover {
    color: #00f2fe;
}
.title-arrow {
    font-size: 0.85rem;
    opacity: 0.4;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.iso-card:hover .title-arrow {
    transform: translate(3px, -3px);
    opacity: 1;
    color: #00f2fe;
}
.iso-project-desc {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1;
}
.iso-tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.iso-tech-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    display: inline-flex;
    align-items: center;
}
.iso-live-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s, transform 0.2s;
}
.iso-live-link:hover {
    color: #00f2fe;
    transform: translateX(2px);
}
.iso-details-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.iso-details-btn:hover {
    background: #00f2fe;
    color: #030508;
    border-color: #00f2fe;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.35);
}

/* No Results */
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: rgba(255,255,255,0.3);
    gap: 16px;
    font-size: 1.1rem;
}
.no-results i { font-size: 3rem; }
.no-results a { color: #00f2fe; text-decoration: underline; }

/* ==========================================================================
   LUXURY REDESIGNED CASE STUDY MODAL (SINGLE BANNER HERO)
   ========================================================================== */
.portfolio-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 4, 8, 0.88);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.25, 1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.portfolio-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.portfolio-modal {
    background: linear-gradient(145deg, rgba(14, 18, 28, 0.96) 0%, rgba(6, 8, 14, 0.98) 100%);
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: 26px;
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(25px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95), 0 0 45px rgba(0, 242, 254, 0.12);
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 242, 254, 0.3) transparent;
}
.portfolio-modal.active {
    transform: translateY(0) scale(1);
}

.modal-ambient-glow {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Close Button */
.portfolio-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 20;
}
.portfolio-modal-close:hover {
    background: rgba(0, 242, 254, 0.2);
    border-color: #00f2fe;
    color: #00f2fe;
    transform: rotate(90deg);
}

.portfolio-modal-content {
    padding: 32px;
}
@media (max-width: 600px) {
    .portfolio-modal-content {
        padding: 20px 16px;
    }
}

/* Modal Header */
.portfolio-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.modal-project-icon-box {
    width: 54px;
    height: 54px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #00f2fe;
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.2);
}
.modal-header-meta {
    flex: 1;
}
.modal-category-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.modal-status-live {
    font-size: 0.68rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 20px;
    padding: 2px 9px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.modal-project-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.25;
}

/* ==========================================================================
   SINGLE CINEMATIC HERO BANNER SHOWCASE FRAME
   ========================================================================== */
.modal-hero-banner-frame {
    border-radius: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    background: rgba(6, 8, 14, 0.95);
    overflow: hidden;
    margin-bottom: 26px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}
.modal-browser-topbar {
    padding: 8px 14px;
    background: rgba(10, 14, 22, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.modal-traffic-dots {
    display: flex;
    gap: 4px;
}
.modal-traffic-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.modal-traffic-dots span:nth-child(1) { background: #ff5f56; }
.modal-traffic-dots span:nth-child(2) { background: #ffbd2e; }
.modal-traffic-dots span:nth-child(3) { background: #27c93f; }

.modal-address-bar {
    flex: 1;
    max-width: 340px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.modal-view-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
}

/* Banner Viewport */
.modal-banner-viewport {
    height: 320px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
@media (max-width: 768px) {
    .modal-banner-viewport {
        height: 240px;
    }
}

.modal-single-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-banner-mesh {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.45;
}
.modal-banner-center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    padding: 0 24px;
    gap: 6px;
}
.modal-banner-hero-icon {
    font-size: 3.2rem;
    filter: drop-shadow(0 0 16px rgba(0, 242, 254, 0.6));
    margin-bottom: 4px;
}
.modal-banner-hero-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}
.modal-banner-hero-sub {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 520px;
    margin: 0;
    line-height: 1.5;
}
.modal-banner-glass-pill {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 4px 12px;
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(8px);
}

/* ==========================================================================
   2-COLUMN CASE STUDY DETAILS
   ========================================================================== */
.modal-details-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
}
@media (max-width: 820px) {
    .modal-details-grid {
        grid-template-columns: 1fr;
    }
}

.modal-section-badge {
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
}
.modal-project-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 18px;
}

/* Key Architecture Highlights Box */
.modal-architecture-highlights {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.arch-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}
.arch-highlight-item i {
    margin-top: 3px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Modal Tech Pills */
.modal-tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.modal-tech-pill {
    background: rgba(0, 242, 254, 0.06);
    border: 1px solid rgba(0, 242, 254, 0.22);
    border-radius: 30px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
}

/* Right Executive Card */
.modal-executive-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 3px solid #00f2fe;
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.executive-card-header {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.modal-info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.modal-info-item .info-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.modal-info-item .info-value {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 700;
}

/* Verified Outcome Callout */
.modal-outcome-box {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 12px;
    padding: 12px 14px;
}
.outcome-header {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #facc15;
    display: flex;
    align-items: center;
    gap: 6px;
}
.outcome-value {
    font-size: 0.88rem;
    font-weight: 800;
    color: #00f2fe;
    line-height: 1.4;
    margin-top: 4px;
}

/* Primary Action CTA */
.modal-primary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #00f2fe;
    color: #030508 !important;
    padding: 13px 24px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.92rem;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.35);
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 6px;
}
.modal-primary-cta:hover {
    background: #4facfe;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.55);
}

/* ---- Portfolio CTA ---- */
.portfolio-cta-section { padding: 40px 0 80px; }
.portfolio-cta-card {
    background: linear-gradient(135deg, rgba(18, 20, 29, 0.95) 0%, rgba(8, 9, 13, 0.98) 100%);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 28px;
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 242, 254, 0.12);
}
.portfolio-cta-glow {
    position: absolute;
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.18) 0%, transparent 70%);
    top: -120px; right: -80px;
    border-radius: 50%;
    pointer-events: none;
}
.portfolio-cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
}
.portfolio-cta-desc {
    color: rgba(255,255,255,0.6);
    font-size: 1.05rem;
    max-width: 540px;
    line-height: 1.7;
}
.cta-btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}
@media (max-width: 992px) {
    .cta-btn-group { align-items: flex-start; }
    .portfolio-cta-card { padding: 40px 28px; }
}
.cta-primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #00f2fe;
    color: #030508 !important;
    padding: 15px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.35);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}
.cta-primary-btn:hover {
    background: #4facfe;
    color: #030508 !important;
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(0, 242, 254, 0.6);
}
.cta-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    padding: 13px 30px;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}
.cta-secondary-btn:hover {
    border-color: rgba(0, 242, 254, 0.5);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

/* ---- min-vh-60 helper ---- */
.min-vh-60 { min-height: 60vh; }
