        :root {
            color-scheme: dark;
            --orange: #D96C3F;
            --orange-light: #E8845A;
            --orange-dark: #B85A32;
            --bg-dark: #1A1A1A;
            --bg-card: #242424;
            --bg-hover: #2E2E2E;
            --border: #333;
            --text: #D4D4D4;
            --text-dim: #888;
            --white: #F0F0F0;
        }

        *, *::before, *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            background: #1A1A1A;
        }

        body {
            font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--bg-dark);
            color: var(--text);
            line-height: 1.7;
            font-size: 16px;
            min-height: 100vh;
        }

        /* Subtle texture overlay */
        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
            opacity: 0.025;
            pointer-events: none;
            z-index: -1;
        }

        /* Layout */
        .container {
            max-width: 800px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        /* Header */
        header {
            padding: 2rem 0 1rem;
            border-bottom: 1px solid var(--border);
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--white);
            text-decoration: none;
            letter-spacing: -0.5px;
        }

        .logo span {
            color: var(--orange);
        }

        /* Current Op - Header Indicator */
        .header-op {
        font-size: 0.7rem;
        color: var(--text-dim);
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 4px 10px;
        border: 1px solid var(--border);
        border-radius: 4px;
        transition: all 0.2s ease;
        }
        .header-op:hover {
        border-color: var(--orange);
        color: var(--orange);
        }
        .header-op .dot {
        width: 6px;
        height: 6px;
        background: #22c55e;
        border-radius: 50%;
        animation: pulse 2s infinite;
        }
        @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.3; }
        }

        /* Tab Navigation */
        .tabs {
            display: flex;
            gap: 0.25rem;
            background: var(--bg-card);
            padding: 0.25rem;
            border-radius: 8px;
        }

        .tab-btn {
            background: transparent;
            border: none;
            color: var(--text-dim);
            padding: 0.5rem 1rem;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            border-radius: 6px;
            transition: all 0.2s ease;
            text-decoration: none;
            display: inline-block;
        }

        .tab-btn:hover {
            color: var(--text);
        }

        .tab-btn.active {
            background: var(--orange);
            color: var(--white);
        }

        /* Main Content */
        main {
            padding: 2.5rem 0 4rem;
        }

        .tab-content {
            display: none;
            animation: fadeIn 0.3s ease;
        }

        .tab-content.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(8px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Typography */
        h1 {
            font-size: 2.2rem;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 0.5rem;
            line-height: 1.2;
        }

        h1 span {
            color: var(--orange);
        }

        h2 {
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--orange);
            text-transform: uppercase;
            letter-spacing: 1.5px;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border);
        }

        h3 {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 0.25rem;
        }

        p {
            margin-bottom: 1rem;
        }

        a {
            color: var(--orange);
            text-decoration: none;
            transition: color 0.2s;
        }

        a:hover {
            color: var(--orange-light);
        }

        .tagline {
            font-size: 1.1rem;
            color: var(--text-dim);
            margin-bottom: 1.5rem;
        }

        .meta {
            font-size: 0.85rem;
            color: var(--orange);
            margin-bottom: 0.5rem;
        }

        /* Sections */
        .section {
            margin-bottom: 2.5rem;
        }

        /* Cards */
        .card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 1.25rem;
            margin-bottom: 1rem;
            transition: border-color 0.2s, transform 0.2s;
        }

        .card:hover {
            border-color: var(--orange);
            transform: translateY(-2px);
        }

        .card p {
            color: var(--text-dim);
            font-size: 0.9rem;
            margin-bottom: 0;
        }

        .card-link {
            text-decoration: none;
            display: block;
        }

        /* Skills Grid */
        .grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.75rem;
        }

        @media (max-width: 600px) {
            .grid {
                grid-template-columns: 1fr;
            }
        }

        .grid-item {
            background: var(--bg-card);
            padding: 1rem;
            border-radius: 6px;
            border-left: 3px solid var(--orange);
        }

        .grid-item h4 {
            font-size: 0.75rem;
            color: var(--orange);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 0.25rem;
        }

        .grid-item p {
            font-size: 0.85rem;
            color: var(--text-dim);
            margin-bottom: 0;
        }

        /* Contact Links */
        .contact-links {
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
        }

        .contact-links a {
            display: inline-block;
            padding: 0.5rem 1rem;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 6px;
            font-size: 0.85rem;
            transition: all 0.2s;
        }

        .contact-links a:hover {
            background: var(--orange-dark);
            border-color: var(--orange-dark);
            color: var(--white);
        }

        /* Essay List */
        .essay-list {
            list-style: none;
        }

        .essay-item {
            padding: 1rem 0;
            border-bottom: 1px solid var(--border);
            cursor: pointer;
            transition: padding-left 0.2s;
        }

        .essay-item:last-child {
            border-bottom: none;
        }

        .essay-item:hover {
            padding-left: 0.5rem;
        }

        .essay-item h3 {
            color: var(--orange);
            margin-bottom: 0.25rem;
        }

        .essay-item:hover h3 {
            color: var(--orange-light);
        }

        .essay-item .date {
            font-size: 0.8rem;
            color: var(--text-dim);
        }

        .essay-item .excerpt {
            font-size: 0.9rem;
            color: var(--text-dim);
            margin-top: 0.25rem;
            margin-bottom: 0;
        }

        /* Essay Reader */
        .essay-reader {
            display: none;
            animation: fadeIn 0.3s ease;
        }

        .essay-reader.active {
            display: block;
        }

        .essay-reader-header {
            margin-bottom: 2rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid var(--border);
        }

        .essay-reader-header h1 {
            font-size: 1.8rem;
            margin-bottom: 0.5rem;
        }

        .essay-reader-header .date {
            color: var(--text-dim);
            font-size: 0.9rem;
        }

        .back-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: none;
            border: none;
            color: var(--orange);
            font-size: 0.9rem;
            cursor: pointer;
            padding: 0;
            margin-bottom: 1.5rem;
            transition: color 0.2s;
        }

        .back-btn:hover {
            color: var(--orange-light);
        }

        .essay-content {
            font-size: 1rem;
            line-height: 1.85;
        }

        .essay-content p {
            margin-bottom: 1.25rem;
            text-align: justify;
        }

        .essay-content strong {
            color: var(--white);
            font-weight: 600;
        }

        .essay-content h1 {
            font-size: 1.2rem;
            color: var(--white);
            margin: 1.5rem 0 0.75rem;
            font-weight: 600;
            text-transform: none;
            letter-spacing: 0;
            border-bottom: none;
            padding-bottom: 0;
        }

        .essay-content h2 {
            font-size: 1.05rem;
            color: var(--white);
            margin: 1.5rem 0 0.75rem;
            font-weight: 600;
            text-transform: none;
            letter-spacing: 0;
            border-bottom: none;
            padding-bottom: 0;
        }

        .essay-content blockquote {
            border-left: 3px solid var(--orange);
            padding-left: 1.25rem;
            margin: 1.25rem 0;
            color: var(--text-dim);
            font-style: italic;
        }

        .essay-content hr {
            border: none;
            border-top: 1px solid var(--border);
            margin: 2rem auto;
            max-width: 200px;
        }

        /* Reading Progress */
        .reading-progress {
            position: fixed;
            top: 0;
            left: 0;
            height: 3px;
            background: var(--orange);
            width: 0%;
            z-index: 1000;
            transition: width 0.1s;
        }

        /* Footer */
        footer {
            border-top: 1px solid var(--border);
            padding: 1.5rem 0;
            text-align: center;
            color: var(--text-dim);
            font-size: 0.85rem;
        }

        /* Featured Essay (Home) */
        .featured-essay {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 1.25rem;
            cursor: pointer;
            transition: border-color 0.2s, transform 0.2s;
        }

        .featured-essay:hover {
            border-color: var(--orange);
            transform: translateY(-2px);
        }

        .featured-label {
            font-size: 0.7rem;
            color: var(--text-dim);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 0.5rem;
        }

        .featured-essay h3 {
            color: var(--orange);
        }

        .featured-essay p {
            color: var(--text-dim);
            font-size: 0.9rem;
            margin-bottom: 0;
        }

        /* Responsive */
        @media (max-width: 600px) {
            .header-content {
                flex-direction: column;
                align-items: flex-start;
            }

            h1 {
                font-size: 1.8rem;
            }

            .tabs {
                width: 100%;
                justify-content: center;
            }

            .tab-btn {
                padding: 0.5rem 0.75rem;
                font-size: 0.85rem;
            }
        }



        /* Hide scrollbar for essay reader but keep scroll */
        .essay-content::-webkit-scrollbar {
            width: 6px;
        }

        .essay-content::-webkit-scrollbar-track {
            background: var(--bg-dark);
        }

        .essay-content::-webkit-scrollbar-thumb {
            background: var(--border);
            border-radius: 3px;
        }

        .essay-content::-webkit-scrollbar-thumb:hover {
            background: var(--orange);
        }

        /* Project card with icons */
        .project-card .card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 1rem;
            margin-bottom: 0.5rem;
        }

        .card-icons {
            display: flex;
            gap: 0.4rem;
            flex-shrink: 0;
        }

        .icon-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            background: var(--orange);
            border: 2px solid var(--orange);
            border-radius: 4px;
            color: var(--white);
            text-decoration: none;
            transition: background 0.2s, border-color 0.2s;
        }

        .icon-btn:hover {
            background: var(--orange-dark);
            border-color: var(--orange-dark);
            color: var(--white);
        }

        .icon-btn svg {
            width: 16px;
            height: 16px;
            fill: currentColor;
            stroke: none;
        }

        .icon-btn svg.stroke-icon {
            fill: none;
            stroke: currentColor;
            stroke-width: 2.5;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .icon-btn-circle {
            width: 26px;
            height: 26px;
            border-radius: 50%;
        }

        .icon-btn-circle svg {
            width: 14px;
            height: 14px;
        }

        /* Smaller cert cards */
        .cert-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 6px;
            padding: 0.75rem 1rem;
            margin-bottom: 0.5rem;
        }

        .cert-card .cert-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 0.75rem;
        }

        .cert-card h3 {
            font-size: 0.9rem;
            color: var(--text);
            font-weight: 500;
            margin-bottom: 0.15rem;
        }

        .cert-card p {
            color: var(--text-dim);
            font-size: 0.8rem;
            margin-bottom: 0;
        }

        /* Experience */
        .dot {
            width: 6px;
            height: 6px;
            background: #22c55e;
            border-radius: 50%;
            display: inline-block;
            margin-right: 0.35rem;
            animation: pulse 2s infinite;
        }

        .exp-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-left: 3px solid #C8BA9A;
            border-radius: 8px;
            padding: 1.5rem;
            margin-bottom: 1rem;
            transition: border-color 0.2s, transform 0.2s;
        }

        .exp-card:hover {
            border-color: var(--orange);
            transform: translateY(-2px);
        }

        .exp-card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 1rem;
            margin-bottom: 0.5rem;
        }

        .exp-meta {
            font-size: 0.85rem;
            color: var(--text-dim);
            margin-bottom: 0;
        }

        .exp-status {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 0.85rem;
            color: var(--text-dim);
            margin-bottom: 0.75rem;
        }

        .exp-label {
            font-size: 0.75rem;
            color: var(--orange);
            letter-spacing: 1px;
            margin-bottom: 0.25rem;
            margin-top: 1rem;
            text-transform: uppercase;
        }

        .exp-label.first {
            margin-top: 0;
        }

        .exp-text {
            font-size: 0.9rem;
            color: var(--text-dim);
            margin-bottom: 0;
        }

        .exp-grid {
            margin-bottom: 0;
        }
