        :root {
            --primary: #1a1b26;
            --secondary: #7aa2f7;
            --accent: #ff9e64;
            --text: #c0caf5;
            --text-dim: #a9b1d6;
            --surface: #24283b;
            --surface-bright: #414868;
            --glow: rgba(122, 162, 247, 0.15);
        }

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

        body {
            font-family: 'JetBrains Mono', monospace;
            background: var(--primary);
            color: var(--text);
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* Command Palette Styles */
        .cmd-palette-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            z-index: 9999;
            display: none;
            justify-content: center;
            align-items: flex-start;
            padding-top: 20vh;
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        .cmd-palette-overlay.open {
            display: flex;
            /* Flex to center */
            opacity: 1;
        }

        .cmd-palette {
            width: 100%;
            max-width: 600px;
            background: rgba(26, 27, 38, 0.95);
            border: 1px solid var(--surface-bright);
            border-radius: 12px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            overflow: hidden;
            transform: translateY(-20px);
            transition: transform 0.2s ease;
        }

        .cmd-palette-overlay.open .cmd-palette {
            transform: translateY(0);
        }

        .cmd-input {
            width: 100%;
            background: transparent;
            border: none;
            border-bottom: 1px solid var(--surface-bright);
            padding: 1.5rem;
            color: var(--text);
            font-family: 'JetBrains Mono', monospace;
            font-size: 1.1rem;
            outline: none;
        }

        .cmd-results {
            max-height: 300px;
            overflow-y: auto;
            padding: 0.5rem;
        }

        .cmd-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.8rem 1rem;
            color: var(--text-dim);
            cursor: pointer;
            border-radius: 6px;
            transition: all 0.2s;
        }

        .cmd-item:hover,
        .cmd-item.active {
            background: var(--surface-bright);
            color: var(--secondary);
        }

        .cmd-shortcut {
            font-size: 0.8rem;
            background: var(--surface);
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
            opacity: 0.7;
        }

        /* Deep Theming: Scrollbar & Selection */
        ::-webkit-scrollbar {
            width: 10px;
        }

        ::-webkit-scrollbar-track {
            background: var(--primary);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--surface-bright);
            border-radius: 5px;
            border: 2px solid var(--primary);
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--secondary);
        }

        ::selection {
            background: rgba(122, 162, 247, 0.3);
            color: #fff;
        }

        /* Animated background grid */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image:
                linear-gradient(rgba(122, 162, 247, 0.06) 1px, transparent 1px),
                linear-gradient(90deg, rgba(122, 162, 247, 0.06) 1px, transparent 1px);
            background-size: 50px 50px;
            animation: gridMove 20s linear infinite;
            z-index: -1;
            pointer-events: none;
        }

        @keyframes gridMove {
            0% {
                transform: translate(0, 0);
            }

            100% {
                transform: translate(50px, 50px);
            }
        }

        /* Header */
        header {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(26, 27, 38, 0.85);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--surface-bright);
            z-index: 1000;
            animation: slideDown 0.6s ease-out;
        }

        /* Scroll Progress Bar */
        .scroll-progress {
            position: fixed;
            top: 0;
            left: 0;
            width: 0%;
            /* Initial width */
            height: 3px;
            background: linear-gradient(90deg, var(--secondary), var(--accent));
            box-shadow: 0 0 10px var(--secondary);
            z-index: 1001;
            /* Above header */
            transition: width 0.1s;
        }

        @keyframes slideDown {
            from {
                transform: translateY(-100%);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        nav {
            max-width: 1400px;
            margin: 0 auto;
            padding: 1.5rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-family: 'Playfair Display', serif;
            font-size: 1.8rem;
            font-weight: 900;
            background: linear-gradient(135deg, var(--secondary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 0 30px var(--glow);
            letter-spacing: -0.02em;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

        .nav-links a {
            color: var(--text-dim);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 400;
            transition: all 0.3s ease;
            position: relative;
            padding: 0.5rem 0;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--secondary);
            transition: width 0.3s ease;
        }

        .nav-links a:hover {
            color: var(--secondary);
        }

        .nav-links a:hover::after,
        .nav-links a.active::after {
            width: 100%;
        }

        .nav-links a.active {
            color: var(--secondary);
        }

        /* Hero Map Background */
        #hero-map {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            opacity: 0.4;
            /* Subtle opacity */
            pointer-events: none;
            /* Disable interaction */
            filter: grayscale(100%) invert(100%) contrast(90%);
            /* Further darken/tweak if needed, but tile layer is dark */
            filter: none;
            /* Reset filter, using dark tiles */
        }

        /* Hero Section Adjustments */
        .hero {
            margin-top: 80px;
            min-height: 80vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            padding: 0 2rem;
            overflow: hidden;
            /* Contain map */
        }

        /* Ensure content sits above map */
        .hero-content {
            position: relative;
            z-index: 2;
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1400px;
            width: 100%;
            gap: 4rem;
        }

        .orb {
            display: none;
            /* Hide orbs */
        }

        #neural-canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            /* Above map, below content */
            pointer-events: none;
            /* Let clicks pass through, but we track mouse via window */
        }

        .terminal-window {
            background: rgba(26, 27, 38, 0.95);
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            border: 1px solid var(--surface-bright);
            overflow: hidden;
            font-family: 'JetBrains Mono', monospace;
            max-width: 800px;
            margin: 0 auto;
        }

        .terminal-header {
            background: var(--surface);
            padding: 0.8rem 1rem;
            display: flex;
            align-items: center;
            border-bottom: 1px solid var(--surface-bright);
        }

        .terminal-buttons {
            display: flex;
            gap: 8px;
            margin-right: 1rem;
        }

        .terminal-button {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .close {
            background: #ff5f56;
        }

        .minimize {
            background: #ffbd2e;
        }

        .maximize {
            background: #27c93f;
        }

        .terminal-title {
            color: var(--text-dim);
            font-size: 0.9rem;
            margin-left: auto;
            margin-right: auto;
        }

        .terminal-body {
            padding: 2rem;
            color: var(--text);
            font-size: 1rem;
            line-height: 1.8;
            height: 600px;
            overflow-y: auto;
        }

        .prompt {
            color: var(--secondary);
            margin-right: 0.5rem;
        }

        .command {
            color: var(--accent);
        }

        .cursor {
            display: inline-block;
            width: 8px;
            height: 15px;
            background: var(--text);
            animation: blink 1s infinite;
            vertical-align: middle;
            margin-left: 5px;
        }

        @keyframes blink {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0;
            }
        }

        /* Git Graph Styles */
        .git-graph-container {
            margin-top: 3rem;
            background: rgba(36, 40, 59, 0.4);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(122, 162, 247, 0.15);
            border-radius: 12px;
            padding: 2rem;
            text-align: center;
            overflow-x: auto;
            /* Handle small screens */
        }

        .git-graph-container img {
            max-width: 100%;
            height: auto;
        }

        /* Hero Section */
        .hero {
            margin-top: 80px;
            min-height: 90vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .hero-content {
            max-width: 1400px;
            margin: 0 auto;
            padding: 4rem 2rem;
            position: relative;
            z-index: 1;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 4rem;
        }

        .hero-text-content {
            flex: 1;
        }

        .hero-image-container {
            flex: 0 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1.5rem;
            animation: fadeInRight 1s ease-out 0.5s both;
        }

        .profile-image-wrapper {
            width: 350px;
            height: 350px;
            border-radius: 50%;
            overflow: hidden;
            border: 4px solid var(--surface-bright);
            box-shadow: 0 0 30px var(--glow);
            position: relative;
        }

        .profile-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .profile-image-wrapper:hover .profile-image {
            transform: scale(1.05);
        }

        .profile-name {
            font-family: 'Playfair Display', serif;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text);
            letter-spacing: 0.05em;
        }

        @keyframes fadeInRight {
            from {
                opacity: 0;
                transform: translateX(30px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .hero-title {
            font-family: 'Playfair Display', serif;
            font-size: clamp(2.5rem, 5vw, 4.5rem);
            font-weight: 900;
            line-height: 1.1;
            margin-bottom: 1.5rem;
            animation: fadeInUp 0.8s ease-out 0.2s both;
            position: relative;
        }

        .hero-title .highlight {
            background: linear-gradient(135deg, var(--secondary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            position: relative;
            display: inline-block;
        }

        .hero-title .highlight::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--secondary), var(--accent));
            box-shadow: 0 0 20px var(--glow);
            animation: underlineGrow 1s ease-out 1s both;
        }

        @keyframes underlineGrow {
            from {
                width: 0;
            }

            to {
                width: 100%;
            }
        }

        .cop-heatmap {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 9989;
            /* Below grid/scanline */
            background:
                radial-gradient(circle at 20% 30%, rgba(255, 0, 0, 0.25) 0%, transparent 40%),
                radial-gradient(circle at 80% 20%, rgba(255, 69, 0, 0.2) 0%, transparent 35%),
                radial-gradient(circle at 50% 80%, rgba(255, 0, 0, 0.22) 0%, transparent 45%),
                radial-gradient(circle at 10% 90%, rgba(255, 69, 0, 0.18) 0%, transparent 30%);
            mix-blend-mode: screen;
            display: none;
            animation: heat-pulse 8s ease-in-out infinite alternate;
        }

        @keyframes heat-pulse {
            0% {
                opacity: 0.3;
                transform: scale(1);
            }

            100% {
                opacity: 0.6;
                transform: scale(1.05);
            }
        }

        /* BOLO Alerts CSS */
        .bolo-container {
            position: fixed;
            bottom: 4rem;
            /* Above Ticker */
            right: 1rem;
            z-index: 9998;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            pointer-events: none;
            /* Let clicks pass through */
        }

        .bolo-toast {
            background: rgba(40, 0, 0, 0.9);
            border: 1px solid #ff4444;
            color: #ff4444;
            padding: 0.8rem 1.2rem;
            margin-bottom: 0.5rem;
            font-family: 'Courier New', monospace;
            font-weight: bold;
            box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
            min-width: 250px;

            /* Slide In Animation */
            transform: translateX(100%);
            opacity: 0;
            animation: slideInBolo 0.5s forwards, fadeOutBolo 0.5s forwards 4s;
        }

        .bolo-title {
            display: block;
            font-size: 0.8rem;
            margin-bottom: 0.2rem;
            opacity: 0.8;
            border-bottom: 1px solid #ff4444;
        }

        @keyframes slideInBolo {
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes fadeOutBolo {
            to {
                transform: translateX(100%);
                opacity: 0;
            }
        }

        /* News Ticker CSS */
        .news-ticker {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 30px;
            background: #000;
            border-top: 1px solid var(--secondary);
            color: var(--secondary);
            font-family: 'Courier New', monospace;
            font-size: 0.9rem;
            line-height: 30px;
            overflow: hidden;
            display: none;
            /* Hidden by default */
            z-index: 9998;
        }

        .ticker-wrap {
            width: 100%;
            overflow: hidden;
            white-space: nowrap;
        }

        .ticker-move {
            display: inline-block;
            white-space: nowrap;
            animation: ticker 30s linear infinite;
        }

        .ticker-item {
            display: inline-block;
            padding: 0 2rem;
        }

        @keyframes ticker {
            0% {
                transform: translate3d(100%, 0, 0);
            }

            100% {
                transform: translate3d(-100%, 0, 0);
            }
        }

        /* Adjust Drone Feed for new layout */
        .cop-drone-feed {
            position: fixed;
            top: 6rem;
            /* Below HUD */
            right: 2rem;
            width: 280px;
            height: 180px;
            background: rgba(0, 10, 0, 0.9);
            border: 1px solid var(--secondary);
            box-shadow: 0 0 10px var(--secondary);
            z-index: 10000;
            /* FORCE TOP LAYER */
            display: none;
            flex-direction: column;
            overflow: visible;
            /* Allow handle to extend outside */
            font-family: 'Courier New', Courier, monospace;
        }

        .drone-header {
            background: rgba(0, 50, 0, 0.8);
            color: var(--secondary);
            font-size: 0.7rem;
            padding: 4px 8px;
            cursor: move;
            /* Drag cursor */
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--secondary);
            user-select: none;
        }

        .drone-content {
            flex: 1;
            position: relative;
            overflow: hidden;
        }

        .drone-content video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.8;
            filter: grayscale(20%) contrast(1.2);
        }

        .drone-overlay {
            position: absolute;
            top: 10px;
            left: 10px;
            color: red;
            font-size: 0.6rem;
            font-weight: bold;
            text-shadow: 0 0 2px black;
            animation: blink 1s infinite;
        }

        @keyframes blink {
            50% {
                opacity: 0;
            }
        }

        .cop-event-log {
            position: fixed;
            gap: 1.5rem;
            flex-wrap: wrap;
            animation: fadeInUp 0.8s ease-out 0.8s both;
        }

        .cta-buttons {
            display: flex;
            gap: 1.5rem;
            flex-wrap: wrap;
            animation: fadeInUp 0.8s ease-out 0.8s both;
        }

        .btn {
            padding: 1rem 2.5rem;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.95rem;
            font-weight: 700;
            text-decoration: none;
            border-radius: 8px;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            position: relative;
            overflow: hidden;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--secondary), var(--accent));
            color: var(--primary);
            box-shadow: 0 10px 30px rgba(122, 162, 247, 0.3);
        }

        .btn-primary::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.5s;
        }

        .btn-primary:hover::before {
            left: 100%;
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(122, 162, 247, 0.4);
        }

        .btn-secondary {
            background: transparent;
            color: var(--secondary);
            border: 2px solid var(--secondary);
        }

        .btn-secondary:hover {
            background: var(--surface);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(122, 162, 247, 0.2);
        }

        /* Floating orbs */
        .orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.3;
            animation: float 20s infinite ease-in-out;
            z-index: 0;
        }

        .orb-1 {
            width: 400px;
            height: 400px;
            background: var(--secondary);
            top: 10%;
            left: -10%;
            animation-delay: 0s;
        }

        .orb-2 {
            width: 300px;
            height: 300px;
            background: var(--accent);
            bottom: 10%;
            right: -5%;
            animation-delay: 3s;
        }

        @keyframes float {

            0%,
            100% {
                transform: translate(0, 0) rotate(0deg);
            }

            33% {
                transform: translate(30px, -30px) rotate(120deg);
            }

            66% {
                transform: translate(-20px, 20px) rotate(240deg);
            }
        }

        /* Section Styles */
        section {
            max-width: 1400px;
            margin: 0 auto;
            padding: 6rem 2rem;
            position: relative;
        }

        .section-header {
            margin-bottom: 4rem;
            position: relative;
        }

        .section-number {
            font-family: 'Playfair Display', serif;
            font-size: 1rem;
            color: var(--secondary);
            font-weight: 700;
            letter-spacing: 0.1em;
            margin-bottom: 1rem;
            display: block;
        }

        .section-title {
            font-family: 'Playfair Display', serif;
            font-size: clamp(2rem, 4vw, 3rem);
            font-weight: 900;
            margin-bottom: 1.5rem;
            background: linear-gradient(135deg, var(--text), var(--text-dim));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .section-description {
            font-size: 1.1rem;
            color: var(--text-dim);
            max-width: 700px;
            line-height: 1.8;
        }

        /* About Section */
        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }

        .about-content p {
            margin-bottom: 1.5rem;
            font-size: 1.05rem;
            line-height: 1.8;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2rem;
        }

        .stat-card {
            background: rgba(36, 40, 59, 0.4);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            padding: 2rem;
            border-radius: 12px;
            border: 1px solid rgba(122, 162, 247, 0.15);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, var(--secondary), var(--accent));
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .stat-card:hover::before {
            transform: scaleX(1);
        }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            border-color: var(--secondary);
        }

        .stat-number {
            font-family: 'Playfair Display', serif;
            font-size: 3rem;
            font-weight: 900;
            background: linear-gradient(135deg, var(--secondary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 0.5rem;
        }

        .stat-label {
            color: var(--text-dim);
            font-size: 0.95rem;
        }

        /* Projects Section */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 2.5rem;
        }

        .project-card {
            background: rgba(36, 40, 59, 0.4);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-radius: 16px;
            overflow: hidden;
            border: 1px solid rgba(122, 162, 247, 0.15);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            cursor: pointer;
        }

        .project-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(122, 162, 247, 0.1), rgba(255, 158, 100, 0.1));
            opacity: 0;
            transition: opacity 0.4s ease;
            z-index: 1;
            pointer-events: none;
        }

        .project-card:hover::before {
            opacity: 1;
        }

        .project-card:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
            border-color: var(--secondary);
        }

        .project-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-bottom: 1px solid var(--surface-bright);
            display: block;
            /* Removes potential whitespace below image */
        }

        .project-content {
            padding: 1.5rem 2rem 2rem;
            position: relative;
            z-index: 2;
        }

        .project-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: var(--text);
        }

        .project-description {
            color: var(--text-dim);
            margin-bottom: 1.5rem;
            line-height: 1.7;
            font-size: 0.95rem;
        }

        .project-tech {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .tech-tag {
            background: var(--surface-bright);
            color: var(--secondary);
            padding: 0.4rem 0.8rem;
            border-radius: 6px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .project-link {
            color: var(--secondary);
            text-decoration: none;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s ease;
        }

        .project-link:hover {
            gap: 1rem;
            color: var(--accent);
        }

        /* Blog Section */
        .blog-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 2.5rem;
        }

        .blog-card {
            background: rgba(36, 40, 59, 0.4);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-radius: 12px;
            border: 1px solid rgba(122, 162, 247, 0.15);
            overflow: hidden;
            transition: all 0.3s ease;
            position: relative;
        }

        .blog-card::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 0;
            background: linear-gradient(180deg, var(--secondary), var(--accent));
            transition: height 0.3s ease;
        }

        .blog-card:hover::after {
            height: 100%;
        }

        .blog-card:hover {
            transform: translateX(10px);
            border-color: var(--secondary);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
        }

        .blog-image {
            width: 100%;
            height: 200px;
            background: linear-gradient(135deg, var(--surface-bright), var(--surface));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 4rem;
            color: var(--secondary);
        }

        .blog-content {
            padding: 2rem;
        }

        .blog-meta {
            display: flex;
            gap: 1.5rem;
            margin-bottom: 1rem;
            font-size: 0.85rem;
            color: var(--text-dim);
        }

        .blog-category {
            color: var(--accent);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .blog-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: var(--text);
            line-height: 1.3;
        }

        .blog-excerpt {
            color: var(--text-dim);
            line-height: 1.7;
            margin-bottom: 1.5rem;
            font-size: 0.95rem;
        }

        .blog-link {
            color: var(--secondary);
            text-decoration: none;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s ease;
        }

        .blog-link:hover {
            gap: 1rem;
            color: var(--accent);
        }

        /* Skills Section */
        .skills-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }

        .skill-category {
            background: var(--surface);
            padding: 2.5rem;
            border-radius: 12px;
            border: 1px solid var(--surface-bright);
            transition: all 0.3s ease;
        }

        .skill-category:hover {
            border-color: var(--secondary);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
        }

        .skill-category-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            color: var(--secondary);
        }

        .skill-list {
            list-style: none;
            display: flex;
            flex-wrap: wrap;
            gap: 0.8rem;
        }

        .skill-list li {
            background: rgba(65, 72, 104, 0.5);
            backdrop-filter: blur(5px);
            color: var(--text);
            padding: 0.5rem 1rem;
            border-radius: 50px;
            font-size: 0.9rem;
            border: 1px solid rgba(122, 162, 247, 0.1);
            transition: all 0.3s ease;
            position: relative;
        }

        .skill-list li:hover {
            background: var(--surface);
            border-color: var(--secondary);
            color: var(--secondary);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        /* Footer */
        footer {
            background: var(--surface);
            border-top: 1px solid var(--surface-bright);
            padding: 4rem 2rem 2rem;
            margin-top: 6rem;
        }

        .footer-content {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 2fr 1fr 1fr;
            gap: 4rem;
            margin-bottom: 3rem;
        }

        .footer-brand {
            font-family: 'Playfair Display', serif;
            font-size: 2rem;
            font-weight: 900;
            background: linear-gradient(135deg, var(--secondary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 1rem;
        }

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

        /* Skeleton Loading */
        .skeleton {
            background: linear-gradient(90deg, var(--surface) 25%, var(--surface-bright) 50%, var(--surface) 75%);
            background-size: 200% 100%;
            animation: skeleton-loading 1.5s infinite;
            border-radius: 4px;
        }

        @keyframes skeleton-loading {
            0% {
                background-position: 200% 0;
            }

            100% {
                background-position: -200% 0;
            }
        }

        .social-links {
            display: flex;
            gap: 1rem;
        }

        .social-link {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background: var(--surface-bright);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text);
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .social-link:hover {
            background: var(--secondary);
            color: var(--primary);
            transform: translateY(-3px);
        }

        .footer-section h3 {
            font-family: 'Playfair Display', serif;
            font-size: 1.3rem;
            margin-bottom: 1.5rem;
            color: var(--text);
        }

        .footer-links {
            list-style: none;
        }

        .footer-links a {
            color: var(--text-dim);
            text-decoration: none;
            display: block;
            padding: 0.5rem 0;
            transition: all 0.3s ease;
        }

        .footer-links a:hover {
            color: var(--secondary);
            padding-left: 0.5rem;
        }

        .footer-bottom {
            max-width: 1400px;
            margin: 0 auto;
            padding-top: 2rem;
            border-top: 1px solid var(--surface-bright);
            text-align: center;
            color: var(--text-dim);
            font-size: 0.9rem;
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .hero-content {
                flex-direction: column-reverse;
                /* Text on top, image below? Actually standard is image top or column. Let's do column so text is first usually, or reverse if we want image first. The plan said text first. Since HTML is Text then Image, column puts Text on top. */
                flex-direction: column;
                text-align: center;
                gap: 3rem;
            }

            .hero-image-container {
                margin-top: 2rem;
            }

            .cta-buttons {
                justify-content: center;
            }

            .about-grid {
                grid-template-columns: 1fr;
            }

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

        @media (max-width: 768px) {
            nav {
                flex-direction: column;
                gap: 1rem;
            }

            .nav-links {
                flex-wrap: wrap;
                justify-content: center;
            }

            .projects-grid {
                grid-template-columns: 1fr;
            }

            .blog-grid {
                grid-template-columns: 1fr;
            }

            .stats-grid {
                grid-template-columns: 1fr;
            }

            .cta-buttons {
                flex-direction: column;
            }

            .btn {
                justify-content: center;
            }

            .hero {
                padding-top: 220px;
                /* Accommodate double-height header */
            }

            .hero-subtitle {
                font-size: 1rem;
                /* Smaller font to prevent awkward stacking */
                line-height: 1.6;
            }
        }

        /* Scroll animations */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 0.8s ease-out forwards;
        }

        .stagger-1 {
            animation-delay: 0.1s;
        }

        .stagger-2 {
            animation-delay: 0.2s;
        }

        .stagger-3 {
            animation-delay: 0.3s;
        }

        .stagger-4 {
            animation-delay: 0.4s;
        }

        /* Dispatch Mode Styles */
        body.dispatch-mode {
            background-color: #000000;
            color: #00ff00;
            font-family: 'Courier New', Courier, monospace;
        }

        body.dispatch-mode header,
        body.dispatch-mode nav,
        body.dispatch-mode .project-card,
        body.dispatch-mode .skill-category,
        body.dispatch-mode .blog-card,
        body.dispatch-mode .terminal-window {
            background-color: #0a0a0a;
            border: 1px solid #00ff00;
            box-shadow: none;
            border-radius: 0;
        }

        body.dispatch-mode .btn-primary,
        body.dispatch-mode .btn-secondary,
        body.dispatch-mode .social-link {
            background: #000;
            border: 1px solid #00ff00;
            color: #00ff00;
            border-radius: 0;
            text-transform: uppercase;
        }

        body.dispatch-mode .highlight,
        body.dispatch-mode h1,
        body.dispatch-mode h2,
        body.dispatch-mode h3 {
            color: #ffcc00 !important;
            text-shadow: none;
            background: none;
            -webkit-text-fill-color: #ffcc00;
            font-family: 'Courier New', Courier, monospace;
            text-transform: uppercase;
        }

        body.dispatch-mode .project-image,
        body.dispatch-mode .blog-image {
            filter: grayscale(100%) contrast(150%);
            border-bottom: 1px solid #00ff00;
        }

        body.dispatch-mode .skill-list li,
        body.dispatch-mode .tech-tag {
            background: #000;
            border: 1px solid #33ff33;
            color: #33ff33;
            border-radius: 0;
        }

        .cad-toggle {
            margin-left: 2rem;
            padding: 0.5rem 1rem;
            background: var(--surface-bright);
            border: 1px solid var(--secondary);
            color: var(--text);
            cursor: pointer;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.8rem;
            border-radius: 4px;
            transition: all 0.3s ease;
        }

        .cad-toggle.active {
            background: #ffcc00;
            color: #000;
            border-color: #ffcc00;
            font-weight: bold;
        }

        /* COP Enhancements */
        .cop-grid-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            background-image:
                linear-gradient(rgba(0, 255, 0, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 255, 0, 0.03) 1px, transparent 1px);
            background-size: 50px 50px;
            z-index: 9990;
            display: none;
        }

        .cop-scanline {
            width: 100%;
            height: 100px;
            z-index: 9991;
            background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 255, 0, 0.04) 50%, rgba(0, 0, 0, 0) 100%);
            opacity: 0.1;
            position: fixed;
            bottom: 100%;
            pointer-events: none;
            animation: scanline 10s linear infinite;
            display: none;
        }

        @keyframes scanline {
            0% {
                bottom: 100%;
            }

            100% {
                bottom: -100px;
            }
        }

        .cop-vignette {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            background: radial-gradient(circle, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.4) 100%);
            z-index: 9992;
            display: none;
        }

        .hud-header {
            display: none;
            position: relative;
            width: 100%;
            padding: 1rem 2rem;
            justify-content: space-between;
            font-family: 'Courier New', Courier, monospace;
            color: #00ff00;
            font-size: 0.9rem;
            background: #0a0a0a;
            border-bottom: 1px solid #00ff00;
            z-index: 1001;
            /* Above nav */
        }

        .hud-header .hud-section {
            display: flex;
            gap: 2rem;
        }

        .mouse-coords {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            color: #00ff00;
            font-family: 'Courier New', Courier, monospace;
            font-size: 0.8rem;
            z-index: 9999;
            pointer-events: none;
            display: none;
            background: rgba(0, 0, 0, 0.8);
            padding: 0.2rem 0.5rem;
            border: 1px solid #00ff00;
        }

        .dispatch-status-dot {
            display: inline-block;
            width: 8px;
            height: 8px;
            background-color: #ff0000;
            border-radius: 50%;
            margin-left: 8px;
            animation: pulse-red 2s infinite;
        }

        @keyframes pulse-red {
            0% {
                box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
            }

            70% {
                box-shadow: 0 0 0 6px rgba(255, 0, 0, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
            }
        }

        .cop-event-log {
            position: fixed;
            bottom: 2rem;
            left: 2rem;
            width: 300px;
            height: 150px;
            overflow: hidden;
            font-family: 'Courier New', Courier, monospace;
            font-size: 0.75rem;
            color: rgba(0, 255, 0, 0.7);
            z-index: 9993;
            pointer-events: none;
            display: none;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
            mask-image: linear-gradient(to bottom, transparent, black 20%);
            -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%);
        }

        .cop-event-log .log-entry {
            margin-bottom: 4px;
            white-space: nowrap;
            text-shadow: 0 0 2px rgba(0, 255, 0, 0.5);
        }

        /* Show elements in Dispatch Mode */
        body.dispatch-mode .cop-grid-overlay,
        body.dispatch-mode .cop-drone-feed,
        body.dispatch-mode .cop-scanline,
        body.dispatch-mode .cop-vignette,
        body.dispatch-mode .mouse-coords,
        body.dispatch-mode .cop-event-log {
            display: flex;
            /* For Drone Feed layout */
        }

        /* Specific overrides for blocks */
        body.dispatch-mode .cop-grid-overlay,
        body.dispatch-mode .cop-scanline,
        body.dispatch-mode .cop-vignette,
        body.dispatch-mode .cop-event-log,
        body.dispatch-mode .mouse-coords {
            display: block;
        }

        /* Hide Logo in Dispatch Mode */
        body.dispatch-mode .logo {
            visibility: hidden;
        }
    </style>


        .drone-drag-handle {
            position: absolute;
            top: -20px;
            left: -20px;
            width: 40px;
            height: 40px;
            background: rgba(0, 0, 0, 0.9);
            border: 2px solid var(--secondary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10002;
            cursor: move;
            box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
            touch-action: none;
            /* Critical for touch dragging */
            font-size: 1.2rem;
        }

        .drone-drag-handle span {
            position: absolute;
            color: var(--secondary);
            font-size: 0.7rem;
            /* Smaller size for Unicode chars */
            width: 10px;
            height: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }

        .drone-drag-handle .arrow-n {
            top: 4px;
        }

        .drone-drag-handle .arrow-s {
            bottom: 4px;
        }

        .drone-drag-handle .arrow-w {
            left: 4px;
        }

        .drone-drag-handle .arrow-e {
            right: 4px;
        }

        .drone-drag-handle:active {
            background: var(--secondary);
        }

        .drone-drag-handle:active span {
            color: #000;
        }

        /* Ensure header text doesn't overlap with the handle area */
        .drone-header {
            padding-left: 30px;
        }
    </style>

    <!-- Header -->


            /* Interactive Terminal Styles */
            .terminal-body {
                height: 400px;
                overflow-y: auto;
                cursor: text;
            }

            .input-line {
                display: flex;
                align-items: center;
                gap: 0.5rem;
                margin-top: 0.5rem;
            }

            .terminal-input {
                background: transparent;
                border: none;
                color: var(--text);
                font-family: 'Fira Code', monospace;
                font-size: 0.95rem;
                flex: 1;
                outline: none;
                caret-color: var(--secondary);
                /* Blinking cursor color */
            }

            .command-output {
                margin-bottom: 1rem;
                line-height: 1.6;
                color: var(--text-dim);
            }

            .command {
                color: var(--accent);
                /* Pink/Magenta for commands */
                font-weight: 700;
            }

            .command-output strong {
                color: var(--secondary);
            }

            .command-output a {
                color: var(--accent);
                text-decoration: none;
                border-bottom: 1px dashed var(--accent);
            }

            .history-command {
                color: var(--text);
                margin-top: 0.5rem;
            }
        </style>

        <div class="stats-grid" style="margin-top: 4rem;">
