    /* ─────────────────────────────────────────
       BASE HERO & SECTION STYLES
    ───────────────────────────────────────── */
    .portfolio-hero {
        padding: 40px 0 40px;
        position: relative;
        overflow: hidden;
        background: #1a2530;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    }

    .portfolio-hero__inner {
        text-align: center;
        position: relative;
        z-index: 1;
        max-width: 720px;
        margin: 0 auto;
    }

    .portfolio-hero__title {
        font-size: clamp(2.2rem, 5vw, 3.2rem);
        line-height: 1.1;
        font-weight: 800;
        margin-bottom: 18px;
        color: #ffffff;
        letter-spacing: -0.03em;
    }

    .portfolio-hero__title span {
        color: #f59e0b;
    }

    .portfolio-hero__sub {
        font-size: 1.1rem;
        color: #bdc3c7;
        line-height: 1.65;
        margin: 0 auto;
    }

    /* Full width section container */
    .portfolio-grid-section {
        width: 100%;
        background: transparent;
        padding: 40px 0;
    }

    /* Bounds controller: Pins content bounds to match header exactly */
    .portfolio-grid-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 46px;
        box-sizing: border-box;
    }

    /* Symmetrical Grid layout */
    .portfolio-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 32px;
    }

    /* ─────────────────────────────────────────
       OPTIMIZED TWO-COLUMN MODAL OVERLAY
    ───────────────────────────────────────── */
    .portfolio-modal {
        position: fixed;
        inset: 0;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

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

    .modal-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(10, 15, 20, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 9998;
    }

    .modal-wrapper {
        position: relative;
        background: #1e293b;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        max-width: 500px;
        width: min(760px, calc(100vw - 48px));
        height: min(720px, calc(100vh - 48px));
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
        z-index: 10000;
        transform: scale(0.95) translateY(12px);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .portfolio-modal.modal-active .modal-wrapper {
        transform: scale(1) translateY(0);
    }

    /* PINNED CLOSE BUTTON (Locked to Modal Top Right) */
    .modal-close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(17, 24, 39, 0.7);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #ffffff;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
        z-index: 10010; /* Above all inner columns */
    }

    .modal-close-btn:hover {
        background: #f59e0b;
        color: #111827;
        border-color: #f59e0b;
        transform: rotate(90deg);
    }

    /* RIGHT COLUMN CONTENT CONTAINER */
    .modal-right-pane {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 0;
        flex: 1;
        position: relative;
        background: #1e293b;
        overflow: hidden;
    }

    /* LEFT SIDE MEDIA VIEWER */
    .modal-left-pane {
        width: 100%;
        height: 300px;
        flex-shrink: 0;
        position: relative;
        background: #111827;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .modal-left-pane::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: var(--modal-image-bg);
        background-size: cover;
        background-position: center;
        filter: blur(14px);
        transform: scale(1.08);
        opacity: 0.55;
        z-index: 0;
    }

    .modal-left-pane::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.3));
        z-index: 1;
    }

    .modal-showcase-img {
        position: relative;
        z-index: 2;
        width: 100%;
        height: 100%;
        /* object-fit: cover; */
        object-position: center;
        /* display: block; */
    }

    .modal-showcase-placeholder {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    }

    .modal-showcase-placeholder i {
        font-size: 72px;
        color: rgba(245, 158, 11, 0.2);
    }

    /* INNER SCROLLING AREA */
    .modal-scrollable-body {
        flex: 1;
        overflow-y: auto;
        padding: 10px 36px;
        padding-right: 32px;
    }

    /* Custom small scrollbar for right side body pane */
    .modal-scrollable-body::-webkit-scrollbar {
        width: 6px;
    }
    .modal-scrollable-body::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }
    .modal-scrollable-body::-webkit-scrollbar-thumb:hover {
        background: rgba(245, 158, 11, 0.3);
    }

    .modal-title {
        font-size: 1.75rem;
        font-weight: 800;
        color: #ffffff;
        margin: 0 0 20px 0;
        letter-spacing: -0.02em;
        max-width: calc(100% - 48px);
    }

    .modal-section-label {
        font-size: 0.72rem;
        text-transform: uppercase;
        color: #94a3b8;
        font-weight: 700;
        letter-spacing: 0.08em;
        margin-bottom: 8px;
    }

    .modal-data-group {
        margin-bottom: 20px;
    }

    /* Restricting long lists of items from extending */
    .modal-tech-stack, .modal-module-stack {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        max-height: 200px;
        overflow-y: auto;
        padding-right: 4px;
    }

    .modal-tech-stack::-webkit-scrollbar, .modal-module-stack::-webkit-scrollbar {
        width: 4px;
    }
    .modal-tech-stack::-webkit-scrollbar-thumb, .modal-module-stack::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.08);
        border-radius: 4px;
    }

    .modal-tech-badge {
        background: rgba(245, 158, 11, 0.06);
        color: #f59e0b;
        border: 1px solid rgba(245, 158, 11, 0.2);
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 0.78rem;
        font-weight: 600;
        letter-spacing: 0.02em;
    }

    .modal-module-badge {
        background: rgba(255, 255, 255, 0.04);
        color: #cbd5e1;
        border: 1px solid rgba(255, 255, 255, 0.08);
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 0.78rem;
        font-weight: 600;
    }

    .modal-long-desc {
        color: #94a3b8;
        font-size: 0.95rem;
        line-height: 1.6;
        margin: 0 0 24px;
    }

    .modal-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        padding-top: 4px;
    }

    .modal-action-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 20px;
        border-radius: 8px;
        font-size: 0.88rem;
        font-weight: 700;
        text-decoration: none;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .modal-action-btn--primary {
        background: #f59e0b;
        color: #111827;
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
    }

    .modal-action-btn--primary:hover {
        background: #d97706;
        transform: translateY(-2px);
    }

    .modal-action-btn--secondary {
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: #ffffff;
    }

    .modal-action-btn--secondary:hover {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.3);
    }

    /* ─────────────────────────────────────────
       EMPTY STATE & CTA STRIP
    ───────────────────────────────────────── */
    .portfolio-empty {
        text-align: center;
        padding: 64px 24px;
        color: #9ca3af;
    }

    .portfolio-empty i {
        font-size: 3rem;
        color: rgba(245, 158, 11, 0.3);
        margin-bottom: 16px;
    }

    .portfolio-cta {
        background: linear-gradient(135deg, #2c3e50 0%, #1a2530 100%);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding: 80px 24px;
    }

    .portfolio-cta__inner {
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
    }

    .portfolio-cta__inner h2 {
        font-size: 2rem;
        font-weight: 700;
        color: #ffffff;
        margin-bottom: 12px;
        letter-spacing: -0.02em;
    }

    .portfolio-cta__inner p {
        font-size: 1.05rem;
        color: #bdc3c7;
        margin-bottom: 32px;
        line-height: 1.65;
    }

    .btn-cta {
        display: inline-block;
        background: #f59e0b;
        color: #111827;
        font-weight: 700;
        font-size: 1rem;
        padding: 14px 32px;
        border-radius: 30px;
        text-decoration: none;
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .btn-cta:hover {
        background: #d97706;
        transform: translateY(-2px);
    }

    /* ─────────────────────────────────────────
       MOBILE & TABLET ADAPTIVE CONTROLS
    ───────────────────────────────────────── */
    @media (max-width: 860px) {
        .portfolio-modal {
            padding: 16px;
            align-items: center; /* Center horizontally/vertically */
        }

        .modal-wrapper {
            width: 100%;
            max-width: 100%;
            height: auto;
            max-height: calc(100vh - 32px); /* Locked within screen bounds */
            display: flex;
            flex-direction: column;
            overflow: hidden; /* Stops external page from expanding */
            border-radius: 12px;
        }

        .modal-left-pane {
            height: 220px;
            flex-shrink: 0;
            border-right: none;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .modal-right-pane {
            flex: 1;
            overflow: hidden; /* Locks child scrolling inside this container */
        }

        .modal-scrollable-body {
            padding: 20px;
            overflow-y: auto; /* Re-enabled local right pane scroll */
        }

        /* STRICT CONSTRAINT: Fix module/tech overflowing layout */
        .modal-tech-stack, 
        .modal-module-stack {
            max-height: 110px; /* Keeps tags scrolling locally only */
            overflow-y: auto;
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .modal-close-btn {
            top: 12px;
            right: 12px;
            width: 36px;
            height: 36px;
        }

        .modal-title {
            font-size: 1.45rem;
            max-width: calc(100% - 36px);
            margin-bottom: 16px;
        }

        .modal-long-desc {
            font-size: 0.9rem;
            margin-bottom: 20px;
        }

        .modal-actions {
            flex-direction: column;
            gap: 10px;
        }

        .modal-action-btn {
            width: 100%;
            justify-content: center;
        }
    }

    @media (max-width: 768px) {
        .portfolio-grid {
            grid-template-columns: 1fr;
            gap: 24px;
        }
    }
