        :root {
            --bg-color: #f2f2f0;
            --text-color: #1a1a1a;
            --border-color: #b3b3b3;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        /* Remove default browser focus outlines */
        *:focus {
            outline: none;
        }

        /* Custom accessible focus rings using design system tokens */
        *:focus-visible {
            outline: 2px solid var(--text-color);
            outline-offset: 4px;
            border-radius: 4px;
        }

        /* Premium tactile active states for interactive elements */
        a:active,
        button:active,
        .nav-pill:active,
        .details-left:active,
        .skill-node:active,
        .service-pill:active {
            transform: scale(0.96) !important;
            transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1) !important;
        }

        @media print {
            body {
                display: none !important;
                opacity: 0 !important;
            }
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-color);
            -webkit-font-smoothing: antialiased;
            padding: 1rem 1.5rem;
            max-width: 1600px;
            margin: 0 auto;
            font-size: 12px;
            cursor: default;
            transition: color 0.3s ease;
        }



        .theme-transition-layer {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: 9998;
            pointer-events: none;
            clip-path: circle(0px at 50% 50%);
            /* Transition added in JS dynamically */
        }

        /* --- Preloader --- */
        .preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: var(--bg-color);
            color: var(--text-color);
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease, visibility 0.8s;
            clip-path: circle(150% at 50% 50%);
            opacity: 1;
            visibility: visible;
        }
        
        .preloader.hidden {
            clip-path: circle(0% at 50% 50%);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .preloader-text {
            font-size: 1.5rem;
            font-weight: 600;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            transition: opacity 0.4s ease;
        }

        .preloader.hidden .preloader-text {
            opacity: 0;
        }

        /* --- Fluid Canvas Background --- */
        .bg-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: -1;
            pointer-events: none;
            opacity: 0.6;
        }



        /* --- Header / Navigation --- */
        header {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            gap: 8px;
            margin-bottom: 1rem;
        }

        .nav-badge {
            background-color: var(--text-color);
            color: var(--bg-color);
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: 600;
        }

        .nav-pill {
            background-color: var(--text-color);
            color: var(--bg-color);
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: capitalize;
        }

        /* --- Hero Section --- */
        .hero {
            margin-bottom: 1rem;
        }

        h1.main-title {
            font-size: 4rem;
            font-weight: 700;
            letter-spacing: -0.04em;
            line-height: 1;
            margin-bottom: 0.5rem;
        }

        .hero-content {
            display: grid;
            grid-template-columns: 1.5fr 1fr;
            gap: 2rem;
            align-items: stretch;
        }

        .hero-subtitle {
            font-size: 1.2rem;
            font-weight: 600;
            line-height: 1.3;
            letter-spacing: -0.02em;
        }

        /* Info Table */
        .info-table {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .info-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.4rem 0;
            border-top: 1px solid var(--border-color);
            font-size: 0.75rem;
            font-weight: 600;
        }

        .info-row:last-child {
            padding-bottom: 0;
        }

        .service-pill {
            background-color: var(--text-color);
            color: var(--bg-color);
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.65rem;
            font-weight: 600;
        }

        /* --- Image Section --- */
        .hero-image-container {
            width: 100%;
            margin: 1.5rem 0;
        }

        .hero-image-container img {
            width: 100%;
            height: 1000px;
            display: block;
            object-fit: cover;
            object-position: top center;
            background-color: #d88c27;
        }

        /* --- Details Section --- */
        .details-section {
            display: grid;
            grid-template-columns: 3fr 7fr;
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .details-left {
            display: flex;
            justify-content: space-between;
            font-size: 0.85rem;
            font-weight: 600;
            padding-top: 0.5rem;
            cursor: pointer;
            user-select: none;
        }

        .details-left span:last-child {
            display: inline-block;
            transition: transform 0.3s ease;
        }

        .details-section.collapsed .details-left span:last-child {
            transform: rotate(-45deg);
        }

        .details-section.collapsed .details-right {
            display: none;
        }

        .details-right {
            border-left: 1px solid var(--border-color);
            padding-left: 1.5rem;
        }

        .detail-block {
            border-top: 1px solid var(--border-color);
            padding: 0.8rem 0 1.5rem 0;
        }

        .detail-block:first-child {
            border-top: none;
            padding-top: 0;
        }

        .block-label {
            font-size: 0.75rem;
            font-weight: 600;
            display: block;
            margin-bottom: 0.4rem;
        }

        .detail-block h2 {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 0.4rem;
            letter-spacing: -0.02em;
        }

        .detail-block p {
            font-size: 0.8rem;
            line-height: 1.4;
            color: var(--text-color);
            opacity: 0.8;
            max-width: 100%;
            margin-bottom: 0.8rem;
        }

        .detail-block p:last-child {
            margin-bottom: 0;
        }

        /* --- Custom Additions for Lists --- */
        .detail-block ul {
            list-style-type: none;
            padding-left: 0;
            margin-top: 0.5rem;
        }

        .detail-block li {
            font-size: 0.8rem;
            line-height: 1.4;
            color: var(--text-color);
            opacity: 0.8;
            margin-bottom: 0.4rem;
            display: flex;
            align-items: flex-start;
        }

        .detail-block li::before {
            content: '—';
            margin-right: 8px;
            color: var(--text-color);
        }

        /* --- Custom Grid Layouts in Detail Blocks --- */
        .skills-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
            margin-top: 0.5rem;
        }

        .skill-category h3 {
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text-color);
            letter-spacing: -0.01em;
        }

        /* --- Footer --- */
        footer {
            font-size: 0.85rem;
            font-weight: 600;
            padding-top: 1rem;
            border-top: 1px solid var(--border-color);
            margin-bottom: 2rem;
            display: flex;
            justify-content: space-between;
        }

        /* --- Modal --- */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            align-items: center;
            justify-content: center;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background-color: var(--bg-color);
            padding: 2rem;
            border-radius: 8px;
            width: 90%;
            max-width: 350px;
            text-align: center;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        .modal-content h3 {
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
            font-weight: 700;
        }

        .modal-content p {
            margin-bottom: 1.5rem;
            font-size: 0.85rem;
            color: var(--text-color);
            opacity: 0.8;
        }

        .modal-actions {
            display: flex;
            justify-content: center;
            gap: 1rem;
        }

        .modal-actions button {
            padding: 8px 16px;
            border: none;
            border-radius: 20px;
            cursor: pointer;
            font-size: 0.75rem;
            font-weight: 600;
            background-color: var(--text-color);
            color: var(--bg-color);
            transition: opacity 0.2s;
        }

        .modal-actions button:hover {
            opacity: 0.8;
        }

        .modal-actions button#btn-cancel {
            background-color: transparent;
            color: var(--text-color);
            border: 1px solid var(--text-color);
        }

        /* --- QA Bug Hunt Game Styles --- */
        @keyframes bugWiggle {
            0%, 100% { transform: rotate(-10deg) scale(var(--bug-scale, 1)); }
            50% { transform: rotate(10deg) scale(var(--bug-scale, 1)); }
        }

        .qa-bug {
            position: fixed;
            width: 24px;
            height: 24px;
            cursor: pointer;
            z-index: 500;
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%231a1a1a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="8" height="14" x="8" y="6" rx="4"/><path d="m19 7-3 2"/><path d="m5 7 3 2"/><path d="m19 19-3-2"/><path d="m5 19 3-2"/><path d="M20 13h-4"/><path d="M4 13h4"/><path d="m10 4 1 2"/><path d="m14 4-1 2"/></svg>');
            background-size: contain;
            background-repeat: no-repeat;
            transition: left 0.1s linear, top 0.1s linear;
            animation: bugWiggle 0.15s infinite;
        }

        .qa-bug:hover {
            transform: scale(1.2) !important;
        }

        .bug-particle {
            position: fixed;
            border-radius: 50%;
            background-color: var(--text-color);
            pointer-events: none;
            z-index: 500;
            animation: particleFade 0.6s ease-out forwards;
        }

        @keyframes particleFade {
            0% { transform: scale(1); opacity: 1; }
            100% { transform: scale(0); opacity: 0; }
        }

        /* --- Mouse Click Ripple Effect --- */
        .click-ripple {
            position: fixed;
            border-radius: 50%;
            pointer-events: none;
            width: 30px;
            height: 30px;
            background-color: transparent;
            border: 2px solid var(--text-color);
            transform: translate(-50%, -50%) scale(0);
            animation: rippleAnim 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
            z-index: 9999;
        }

        @keyframes rippleAnim {
            0% {
                transform: translate(-50%, -50%) scale(0);
                opacity: 0.8;
                border-width: 3px;
            }
            100% {
                transform: translate(-50%, -50%) scale(2);
                opacity: 0;
                border-width: 0px;
            }
        }

        /* --- Skill Tree Styles --- */
        .skill-tree-container {
            margin-top: 1rem;
            background: transparent;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 1.5rem;
            position: relative;
        }

        .skill-tree-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            font-size: 0.75rem;
            font-weight: 600;
            margin-bottom: 2rem;
        }

        .progress-bar-container {
            flex-grow: 1;
            height: 6px;
            background: var(--border-color);
            border-radius: 3px;
            overflow: hidden;
        }

        .progress-bar-fill {
            height: 100%;
            width: 0%;
            background: var(--text-color);
            transition: width 0.5s ease;
        }

        .skill-tree-graph {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 3rem;
            min-height: 250px;
        }

        .skill-connections {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
            overflow: visible;
        }

        .skill-connections path {
            stroke: var(--border-color);
            stroke-width: 2;
            fill: none;
            transition: stroke 0.3s ease, stroke-width 0.3s ease;
        }

        .skill-connections path.active {
            stroke: var(--text-color);
            stroke-width: 3;
        }

        .node-level {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            width: 100%;
            z-index: 1;
        }

        .skill-node {
            background: transparent;
            border: 1px solid var(--border-color);
            padding: 0.6rem 1rem;
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            user-select: none;
            opacity: 0.5;
            transition: all 0.3s ease;
            box-shadow: 0 2px 4px rgba(0,0,0,0.02);
            position: relative;
        }

        .skill-node:hover {
            opacity: 0.8;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.05);
        }

        .skill-node.active {
            opacity: 1;
            border-color: var(--text-color);
            background: var(--text-color);
            color: var(--bg-color);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        
        .skill-node.sub-node {
            font-size: 0.7rem;
            padding: 0.4rem 0.8rem;
        }

        /* --- Responsive Design --- */
        @media (max-width: 1024px) {
            h1.main-title {
                font-size: 3.5rem;
            }

            .hero-content {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .hero-content > * {
                min-width: 0;
            }

            .hero-image-container img {
                height: 500px;
            }

            .details-section {
                grid-template-columns: 1fr;
                gap: 0;
                margin-bottom: 1rem;
            }
            
            .details-left {
                padding: 1.2rem 0;
                border-bottom: 1px solid var(--border-color);
                align-items: center;
            }
            
            .details-right {
                border-left: none;
                padding-left: 0;
                padding-top: 1rem;
                min-width: 0; /* Prevents grid item from expanding parent */
            }

            .detail-block:first-child {
                border-top: none;
                padding-top: 0;
            }
        }

        @media (max-width: 768px) {
            body {
                padding: 1rem;
            }

            h1.main-title {
                font-size: 2.5rem;
            }

            .hero-subtitle {
                font-size: 1rem;
            }

            .hero-image-container img {
                height: 400px;
            }

            .skills-grid {
                grid-template-columns: 1fr;
            }
            
            header {
                flex-wrap: wrap;
                justify-content: space-between;
                gap: 15px;
            }
            
            .skill-tree-container {
                padding: 1rem;
                overflow: hidden;
            }
            
            .skill-tree-graph {
                width: 100%;
                padding-bottom: 1rem;
                gap: 2rem;
            }
            
            .node-level {
                gap: 0.5rem;
                flex-wrap: wrap;
            }
            
            .skill-node {
                padding: 0.4rem 0.6rem;
                font-size: 0.65rem;
            }
            
            .skill-node.sub-node {
                padding: 0.3rem 0.5rem;
                font-size: 0.6rem;
            }
        }
