        :root {
            --bg-color: #fafafa;
            --surface: #ffffff;
            --border-color: #e5e5e5;
            --border-hover: #111111;
            --text-main: #111111;
            --text-muted: #666666;
            --tag-bg: #f2f2f2;
        }

        body.portfolio-body {
            background-color: var(--bg-color);
            color: var(--text-main);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            margin: 0;
            padding: 0;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
        }

        .portfolio-wrap {
            max-width: 960px;
            margin: 0 auto;
            padding: 40px 24px 80px 24px;
        }

        /* Top Nav */
        .port-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 24px;
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 48px;
            flex-wrap: wrap;
            gap: 16px;
        }

        .port-logo {
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--text-main);
            text-decoration: none;
            letter-spacing: -0.3px;
        }

        .port-logo span {
            font-weight: 400;
            color: var(--text-muted);
            font-size: 0.9rem;
            margin-left: 8px;
        }

        .port-links {
            display: flex;
            gap: 20px;
            align-items: center;
            font-size: 0.9rem;
            flex-wrap: wrap;
        }

        .port-links a {
            color: var(--text-muted);
            text-decoration: none;
            transition: color 0.15s;
        }

        .port-links a:hover {
            color: var(--text-main);
        }

        .port-btn-accent {
            padding: 6px 14px;
            background: #000;
            color: #fff !important;
            border-radius: 4px;
            font-weight: 600;
            font-size: 0.85rem;
            transition: opacity 0.2s;
        }

        .port-btn-accent:hover {
            opacity: 0.85;
        }

        .port-btn-outline {
            padding: 5px 12px;
            background: transparent;
            color: var(--text-main) !important;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            font-weight: 600;
            font-size: 0.85rem;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .port-btn-outline:hover {
            border-color: #000;
            background: #f5f5f5;
        }

        /* Hero */
        .port-hero {
            display: grid;
            grid-template-columns: 1fr 140px;
            gap: 36px;
            align-items: center;
            margin-bottom: 56px;
        }

        @media (max-width: 640px) {
            .port-hero {
                grid-template-columns: 1fr;
                text-align: left;
            }
            .port-hero-photo {
                order: -1;
                width: 100px;
                height: 100px;
            }
        }

        .port-hero-photo {
            width: 130px;
            height: 130px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #000;
            justify-self: end;
        }

        .port-title {
            font-size: 2.2rem;
            font-weight: 800;
            line-height: 1.2;
            letter-spacing: -0.8px;
            margin: 0 0 14px 0;
            color: var(--text-main);
        }

        .port-lead {
            font-size: 1.05rem;
            color: #333;
            line-height: 1.6;
            margin: 0 0 14px 0;
            max-width: 680px;
        }

        .port-interests {
            font-size: 0.93rem;
            line-height: 1.55;
            color: #4b5563;
            margin: 0 0 20px 0;
            max-width: 680px;
            padding-left: 12px;
            border-left: 2px solid var(--text-main);
        }

        .port-interests-label {
            font-weight: 700;
            color: var(--text-main);
            margin-right: 4px;
        }

        .port-interests-text {
            color: #374151;
        }

        .port-badges-row {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: center;
            margin-bottom: 16px;
        }

        .port-status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.82rem;
            font-weight: 600;
            color: #1b5e20;
            background: #e8f5e9;
            padding: 4px 10px;
            border-radius: 20px;
            margin-bottom: 0;
        }

        .port-status-badge.badge-blue {
            color: #0d47a1;
            background: #e3f2fd;
        }

        .port-status-dot {
            width: 7px;
            height: 7px;
            background: #2e7d32;
            border-radius: 50%;
        }

        .port-status-dot.dot-blue {
            background: #1976d2;
        }

        .port-actions {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            margin-top: 18px;
            align-items: center;
        }

        .port-action-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.85rem;
            font-weight: 600;
            padding: 8px 16px;
            border-radius: 4px;
            text-decoration: none;
            transition: all 0.15s ease;
        }

        .port-btn-primary {
            background: #000;
            color: #fff;
            border: 1px solid #000;
        }

        .port-btn-primary:hover {
            background: #333;
            border-color: #333;
            color: #fff;
        }

        .port-btn-outline {
            background: #fff;
            color: #000;
            border: 1px solid var(--border-color);
        }

        .port-btn-outline:hover {
            border-color: #000;
            color: #000;
        }

        /* Section Headings */
        .port-section {
            margin-bottom: 64px;
        }

        .port-section-header {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 12px;
            margin-bottom: 28px;
        }

        .port-section-title {
            font-size: 1.35rem;
            font-weight: 700;
            letter-spacing: -0.4px;
            margin: 0;
            color: var(--text-main);
        }

        .port-section-subtitle {
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        /* Project Cards Grid */
        .port-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 22px;
        }

        @media (min-width: 768px) {
            .port-grid-2 {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        .port-card {
            background: var(--surface);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 24px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
            cursor: pointer;
            position: relative;
        }

        .port-card:hover {
            border-color: #000;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
        }

        .port-card-featured {
            border-left: 3px solid #000;
        }

        .port-card-top {
            margin-bottom: 16px;
        }

        .port-card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 12px;
            margin-bottom: 8px;
        }

        .port-card-title {
            font-size: 1.12rem;
            font-weight: 700;
            margin: 0;
            color: #000;
            line-height: 1.35;
        }

        .port-card-date {
            font-size: 0.78rem;
            color: var(--text-muted);
            white-space: nowrap;
        }

        .port-card-media-box {
            width: 100%;
            height: 185px;
            margin: 12px 0 14px 0;
            border-radius: 6px;
            overflow: hidden;
            background: #0d1117;
            border: 1px solid var(--border-color);
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .port-card-media-box video,
        .port-card-media-box img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.35s ease;
        }

        .port-card:hover .port-card-media-box video,
        .port-card:hover .port-card-media-box img {
            transform: scale(1.03);
        }

        .port-media-badge {
            position: absolute;
            bottom: 8px;
            right: 9px;
            background: rgba(0, 0, 0, 0.78);
            color: #ffffff;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.5px;
            padding: 2.5px 7px;
            border-radius: 3px;
            text-transform: uppercase;
            backdrop-filter: blur(4px);
            display: inline-flex;
            align-items: center;
            gap: 4px;
            z-index: 2;
        }

        .port-media-dot {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: #00e676;
            display: inline-block;
        }

        .modal-media-box {
            width: 100%;
            max-height: 380px;
            margin: 14px 0 20px 0;
            border-radius: 6px;
            overflow: hidden;
            background: #0d1117;
            border: 1px solid #e0e0e0;
        }

        .modal-media-box video,
        .modal-media-box img {
            width: 100%;
            max-height: 380px;
            object-fit: cover;
            display: block;
        }

        .port-card-desc {
            font-size: 0.92rem;
            color: #444;
            line-height: 1.55;
            margin: 0 0 16px 0;
        }

        .port-card-metrics {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 6px;
            margin: 0 0 14px 0;
            background: #f7f7f7;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            padding: 7px 8px;
        }

        .port-card-metric-item {
            text-align: center;
        }

        .port-card-metric-val {
            display: block;
            font-size: 0.88rem;
            font-weight: 700;
            color: #000;
            line-height: 1.2;
        }

        .port-card-metric-lbl {
            display: block;
            font-size: 0.65rem;
            color: #666;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            margin-top: 2px;
        }

        @media (max-width: 520px) {
            .port-card-metrics {
                grid-template-columns: repeat(2, 1fr);
                gap: 6px;
            }
        }

        .port-card-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 16px;
        }

        .port-tag {
            font-size: 0.75rem;
            font-weight: 500;
            color: #333;
            background: var(--tag-bg);
            padding: 3px 8px;
            border-radius: 3px;
        }

        .port-tag.port-tag-status,
        .port-tag-status {
            background: #fef3c7;
            color: #92400e;
            font-weight: 600;
            border: 1px solid #fde68a;
        }

        .port-card-footer-row {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            border-top: 1px solid #f0f0f0;
            padding-top: 12px;
        }

        .port-card-cta-btn {
            background: #000;
            color: #fff;
            border: none;
            font-size: 0.8rem;
            font-weight: 600;
            padding: 6px 12px;
            border-radius: 4px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            transition: background 0.15s;
        }

        .port-card-cta-btn:hover {
            background: #333;
        }

        .port-card-ext-link {
            font-size: 0.84rem;
            font-weight: 600;
            color: #111;
            text-decoration: none;
        }

        .port-card-ext-link:hover {
            text-decoration: underline;
        }

        /* Experience & Education Containers */
        .port-exp-card {
            background: var(--surface);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 22px 24px;
            margin-bottom: 18px;
            transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
            position: relative;
        }

        .port-exp-card:hover {
            border-color: #000;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
            transform: translateY(-1px);
        }

        .port-exp-card:last-child {
            margin-bottom: 0;
        }

        .port-exp-card-header {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            flex-wrap: wrap;
            gap: 10px;
            padding-bottom: 10px;
            border-bottom: 1px dashed #eee;
        }

        .port-exp-role {
            font-weight: 700;
            font-size: 1.05rem;
            color: #000;
        }

        .port-exp-org {
            font-weight: 600;
            color: #333;
        }

        .port-exp-date {
            font-size: 0.8rem;
            font-weight: 600;
            color: #444;
            background: #f4f4f4;
            padding: 3px 9px;
            border-radius: 4px;
            letter-spacing: 0.2px;
            white-space: nowrap;
        }

        .port-exp-bullets {
            margin: 12px 0 0 0;
            padding-left: 18px;
            font-size: 0.92rem;
            color: #444;
            line-height: 1.6;
        }

        .port-exp-bullets li {
            margin-bottom: 6px;
        }

        .port-exp-bullets li:last-child {
            margin-bottom: 0;
        }

        /* Skills Badges */
        .port-skills-cat {
            margin-bottom: 20px;
        }

        .port-skills-cat-title {
            font-size: 0.85rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--text-muted);
            margin-bottom: 10px;
        }

        .port-skills-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .port-skill-pill {
            font-size: 0.85rem;
            font-weight: 500;
            padding: 6px 12px;
            background: var(--surface);
            border: 1px solid var(--border-color);
            border-radius: 4px;
            color: #111;
        }

        /* Footer */
        .port-footer {
            border-top: 1px solid var(--border-color);
            padding-top: 32px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px;
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        .port-footer a {
            color: var(--text-main);
            text-decoration: none;
            font-weight: 600;
        }

        .port-footer a:hover {
            text-decoration: underline;
        }

        /* Project Detail Modal */
        .project-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: 999999;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            box-sizing: border-box;
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        .project-modal.active {
            display: flex;
            opacity: 1;
        }

        .project-modal-backdrop {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.72);
            backdrop-filter: blur(4px);
            cursor: pointer;
        }

        .project-modal-dialog {
            position: relative;
            z-index: 1000000;
            background: #ffffff;
            max-width: 820px;
            width: 100%;
            max-height: 88vh;
            overflow-y: auto;
            border-radius: 8px;
            border: 1px solid #e0e0e0;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            padding: 36px 40px;
            box-sizing: border-box;
            transform: scale(0.96);
            transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @media (max-width: 640px) {
            .project-modal-dialog {
                padding: 24px 20px;
                max-height: 92vh;
            }
        }

        .project-modal.active .project-modal-dialog {
            transform: scale(1);
        }

        .modal-close-btn {
            position: absolute;
            top: 18px;
            right: 22px;
            background: none;
            border: none;
            font-size: 2rem;
            line-height: 1;
            color: #888;
            cursor: pointer;
            padding: 4px;
            transition: color 0.15s, transform 0.15s;
        }

        .modal-close-btn:hover {
            color: #000;
            transform: scale(1.1);
        }

        .modal-header {
            border-bottom: 1px solid #eee;
            padding-bottom: 20px;
            margin-bottom: 24px;
        }

        .modal-badge-row {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
            flex-wrap: wrap;
        }

        .modal-badge {
            font-size: 0.76rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            background: #000;
            color: #fff;
            padding: 3px 8px;
            border-radius: 3px;
        }

        .modal-date {
            font-size: 0.85rem;
            color: #666;
        }

        .modal-title {
            font-size: 1.65rem;
            font-weight: 800;
            color: #111;
            margin: 0;
            line-height: 1.25;
        }

        .modal-links-bar {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 16px;
        }

        .modal-action-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.84rem;
            font-weight: 600;
            color: #000;
            background: #f2f2f2;
            padding: 6px 14px;
            border-radius: 4px;
            text-decoration: none;
            border: 1px solid #e0e0e0;
            transition: all 0.15s ease;
        }

        .modal-action-link:hover {
            background: #000;
            color: #fff;
            border-color: #000;
        }

        .modal-section {
            margin-bottom: 26px;
        }

        .modal-section-title {
            font-size: 0.92rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #222;
            margin: 0 0 10px 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .modal-section-title::before {
            content: "";
            display: inline-block;
            width: 6px;
            height: 6px;
            background: #000;
            border-radius: 50%;
        }

        .modal-body-text {
            font-size: 0.94rem;
            line-height: 1.65;
            color: #333;
            margin: 0;
        }

        .modal-bullets {
            margin: 8px 0 0 18px;
            padding: 0;
            font-size: 0.92rem;
            line-height: 1.6;
            color: #333;
        }

        .modal-bullets li {
            margin-bottom: 6px;
        }

        .modal-demo-card {
            background: #f9f9f9;
            border: 1px solid #ebebeb;
            border-radius: 6px;
            padding: 18px;
            margin-top: 12px;
        }

        .modal-demo-title {
            font-weight: 700;
            font-size: 0.95rem;
            color: #111;
            margin-bottom: 8px;
        }

        .modal-demo-metrics {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 12px;
            margin-top: 14px;
        }

        .metric-box {
            background: #fff;
            border: 1px solid #eee;
            padding: 12px;
            border-radius: 4px;
            text-align: center;
        }

        .metric-value {
            font-size: 1.3rem;
            font-weight: 800;
            color: #000;
        }

        .metric-label {
            font-size: 0.74rem;
            color: #666;
            margin-top: 3px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }
