:root {
            --bg-deep: #0F172A;
            --bg-canvas: #0B0F19;
            --card-bg: rgba(30, 41, 59, 0.7);
            --card-border: rgba(51, 65, 85, 0.8);
            --terminal-green: #10B981;
            --terminal-green-glow: rgba(16, 185, 129, 0.25);
            --tech-amber: #F59E0B;
            --tech-amber-glow: rgba(245, 158, 11, 0.25);
            --text-main: #F8FAFC;
            --text-muted: #94A3B8;
            --code-bg: #090D16;
            --cyan-accent: #06B6D4;
        }

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

        body {
            background-color: var(--bg-canvas);
            background-image: 
                radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.07), transparent 35%),
                radial-gradient(circle at 85% 85%, rgba(245, 158, 11, 0.06), transparent 35%),
                linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-canvas) 100%);
            color: var(--text-main);
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            line-height: 1.6;
            overflow-x: hidden;
        }

        .font-mono {
            font-family: 'Fira Code', monospace;
        }

        /* Container */
        .container-custom {
            max-width: 1240px;
            margin: 0 auto;
            padding: 0 24px;
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }
        ::-webkit-scrollbar-track {
            background: #0B0F19;
        }
        ::-webkit-scrollbar-thumb {
            background: #1E293B;
            border-radius: 4px;
            border: 1px solid var(--terminal-green-glow);
        }
        ::-webkit-scrollbar-thumb:hover {
            background: var(--terminal-green);
        }

        /* IDE Header Navbar */
        header.ide-navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: rgba(15, 23, 42, 0.85);
            backdrop-filter: blur(16px);
            border-bottom: 1px solid var(--card-border);
            padding: 12px 0;
        }

        .navbar-wrap {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .ide-brand {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
        }

        .window-dots {
            display: flex;
            gap: 6px;
        }

        .dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
        }
        .dot-red { background: #EF4444; }
        .dot-yellow { background: #F59E0B; }
        .dot-green { background: #10B981; }

        .brand-text {
            font-family: 'Fira Code', monospace;
            font-weight: 700;
            font-size: 1.1rem;
            color: var(--text-main);
        }
        .brand-text span {
            color: var(--terminal-green);
        }

        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(16, 185, 129, 0.12);
            border: 1px solid rgba(16, 185, 129, 0.3);
            color: var(--terminal-green);
            font-family: 'Fira Code', monospace;
            font-size: 0.75rem;
            padding: 3px 10px;
            border-radius: 999px;
        }

        .pulse-icon {
            width: 6px;
            height: 6px;
            background-color: var(--terminal-green);
            border-radius: 50%;
            box-shadow: 0 0 8px var(--terminal-green);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
            70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
            100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
        }

        nav.nav-links {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        nav.nav-links a {
            color: var(--text-muted);
            text-decoration: none;
            font-family: 'Fira Code', monospace;
            font-size: 0.875rem;
            transition: all 0.25s ease;
            position: relative;
        }

        nav.nav-links a:hover, nav.nav-links a.active {
            color: var(--terminal-green);
        }

        .btn-cv {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(16, 185, 129, 0.15));
            border: 1px solid var(--tech-amber);
            color: var(--tech-amber) !important;
            padding: 6px 14px;
            border-radius: 6px;
            font-weight: 600;
        }

        .btn-cv:hover {
            background: var(--tech-amber) !important;
            color: #0F172A !important;
            box-shadow: 0 0 16px var(--tech-amber-glow);
        }

        /* Mobile Hamburger */
        .mobile-toggle {
            display: none;
            background: transparent;
            border: 1px solid var(--card-border);
            color: var(--text-main);
            padding: 8px 12px;
            border-radius: 6px;
            cursor: pointer;
        }

        /* Cards Base */
        .ide-card {
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 12px;
            backdrop-filter: blur(12px);
            transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .ide-card:hover {
            border-color: rgba(16, 185, 129, 0.4);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 20px var(--terminal-green-glow);
            transform: translateY(-4px);
        }

        .card-header-bar {
            background: rgba(15, 23, 42, 0.9);
            border-bottom: 1px solid var(--card-border);
            padding: 10px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-family: 'Fira Code', monospace;
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        /* Hero Section */
        section.hero-sec {
            padding: 140px 0 80px;
            min-height: 90vh;
            display: flex;
            align-items: center;
        }

        .hero-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            align-items: center;
        }

        .hero-content h1 {
            font-size: clamp(2.2rem, 4vw, 3.4rem);
            font-weight: 800;
            line-height: 1.15;
            margin-bottom: 16px;
            letter-spacing: -0.02em;
        }

        .hero-content h1 .highlight-green {
            color: var(--terminal-green);
            position: relative;
        }
        .hero-content h1 .highlight-amber {
            color: var(--tech-amber);
        }

        .hero-subtitle {
            font-size: 1.15rem;
            color: var(--text-muted);
            margin-bottom: 24px;
            max-width: 580px;
        }

        /* Motto Badge Box */
        .motto-box {
            background: rgba(9, 13, 22, 0.8);
            border-left: 3px solid var(--tech-amber);
            border-top: 1px solid var(--card-border);
            border-right: 1px solid var(--card-border);
            border-bottom: 1px solid var(--card-border);
            padding: 14px 18px;
            border-radius: 0 8px 8px 0;
            margin-bottom: 28px;
            font-family: 'Fira Code', monospace;
            font-size: 0.875rem;
            color: #E2E8F0;
        }
        .motto-box i {
            color: var(--tech-amber);
            margin-right: 8px;
        }

        .hero-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
        }

        .btn-primary-ide {
            background: linear-gradient(135deg, #10B981, #059669);
            color: #0F172A;
            font-family: 'Fira Code', monospace;
            font-weight: 700;
            padding: 12px 24px;
            border-radius: 8px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 14px var(--terminal-green-glow);
        }
        .btn-primary-ide:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
            color: #0F172A;
        }

        .btn-secondary-ide {
            background: rgba(30, 41, 59, 0.8);
            border: 1px solid var(--card-border);
            color: var(--text-main);
            font-family: 'Fira Code', monospace;
            font-weight: 600;
            padding: 12px 24px;
            border-radius: 8px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
        }
        .btn-secondary-ide:hover {
            border-color: var(--terminal-green);
            color: var(--terminal-green);
            background: rgba(16, 185, 129, 0.08);
        }

        /* IDE Code Terminal Widget */
        .terminal-widget {
            background: var(--code-bg);
            border: 1px solid var(--card-border);
            border-radius: 12px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
            overflow: hidden;
        }

        .terminal-header {
            background: #0F172A;
            padding: 10px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid var(--card-border);
        }

        .terminal-tabs {
            display: flex;
            gap: 2px;
        }

        .tab {
            background: var(--code-bg);
            color: var(--text-muted);
            font-family: 'Fira Code', monospace;
            font-size: 0.75rem;
            padding: 6px 12px;
            border-radius: 6px 6px 0 0;
            border-top: 1px solid transparent;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .tab.active {
            color: var(--terminal-green);
            background: #1E293B;
            border-top-color: var(--terminal-green);
        }

        .terminal-body {
            padding: 20px;
            font-family: 'Fira Code', monospace;
            font-size: 0.85rem;
            line-height: 1.8;
            color: #CBD5E1;
            overflow-x: auto;
        }

        .code-line {
            display: flex;
            gap: 16px;
        }
        .line-num {
            color: #475569;
            user-select: none;
            width: 24px;
            text-align: right;
        }
        .code-keyword { color: #F472B6; }
        .code-func { color: #60A5FA; }
        .code-str { color: #34D399; }
        .code-var { color: #FBBF24; }
        .code-comment { color: #64748B; font-style: italic; }

        /* AI Productivity Stack Panel */
        .ai-stack-panel {
            margin-top: 16px;
            padding: 12px;
            background: rgba(16, 185, 129, 0.05);
            border: 1px dashed rgba(16, 185, 129, 0.3);
            border-radius: 8px;
        }
        .ai-stack-title {
            font-size: 0.75rem;
            color: var(--terminal-green);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 6px;
        }
        .ai-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .ai-badge {
            background: rgba(15, 23, 42, 0.8);
            border: 1px solid var(--card-border);
            color: var(--text-main);
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 0.75rem;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .ai-badge i { color: var(--tech-amber); }

        /* Section Headings */
        .section-header {
            text-align: center;
            margin-bottom: 50px;
        }
        .section-tag {
            font-family: 'Fira Code', monospace;
            color: var(--terminal-green);
            font-size: 0.875rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            display: block;
            margin-bottom: 8px;
        }
        .section-title {
            font-size: clamp(1.8rem, 3vw, 2.5rem);
            font-weight: 800;
            letter-spacing: -0.02em;
        }
        .section-desc {
            color: var(--text-muted);
            max-width: 680px;
            margin: 10px auto 0;
            font-size: 1rem;
        }

        /* Skills Section */
        section.sec-pad {
            padding: 80px 0;
        }

        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
            gap: 24px;
        }

        .skill-group-title {
            font-family: 'Fira Code', monospace;
            font-size: 1.1rem;
            color: var(--text-main);
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .skill-group-title i {
            color: var(--terminal-green);
        }

        .skill-item {
            margin-bottom: 16px;
        }
        .skill-info {
            display: flex;
            justify-content: space-between;
            font-family: 'Fira Code', monospace;
            font-size: 0.85rem;
            margin-bottom: 6px;
        }
        .skill-name { color: #E2E8F0; }
        .skill-pct { color: var(--terminal-green); }

        .progress-track {
            height: 8px;
            background: #090D16;
            border-radius: 999px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }
        .progress-fill {
            height: 100%;
            border-radius: 999px;
            background: linear-gradient(90deg, var(--terminal-green), var(--cyan-accent));
            transition: width 1s ease-in-out;
        }
        .fill-amber {
            background: linear-gradient(90deg, var(--tech-amber), #F1F5F9);
        }

        /* Systems Section Cards */
        .systems-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 24px;
        }

        .system-card-body {
            padding: 24px;
        }
        .system-icon {
            width: 48px;
            height: 48px;
            background: rgba(16, 185, 129, 0.1);
            border: 1px solid rgba(16, 185, 129, 0.3);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--terminal-green);
            font-size: 1.25rem;
            margin-bottom: 16px;
        }
        .icon-amber {
            background: rgba(245, 158, 11, 0.1);
            border-color: rgba(245, 158, 11, 0.3);
            color: var(--tech-amber);
        }

        .system-title {
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 8px;
        }
        .system-desc {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-bottom: 18px;
            min-height: 50px;
        }
        .system-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: var(--terminal-green);
            text-decoration: none;
            font-family: 'Fira Code', monospace;
            font-size: 0.85rem;
            font-weight: 600;
            transition: gap 0.2s ease;
        }
        .system-link:hover {
            gap: 10px;
            color: #34D399;
        }

        /* Portfolio Grid */
        .portfolio-filter {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 36px;
        }
        .filter-btn {
            background: rgba(30, 41, 59, 0.6);
            border: 1px solid var(--card-border);
            color: var(--text-muted);
            font-family: 'Fira Code', monospace;
            font-size: 0.8rem;
            padding: 8px 16px;
            border-radius: 999px;
            cursor: pointer;
            transition: all 0.25s ease;
        }
        .filter-btn:hover, .filter-btn.active {
            background: var(--terminal-green);
            color: #0F172A;
            border-color: var(--terminal-green);
            box-shadow: 0 0 12px var(--terminal-green-glow);
        }

        .portfolio-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 24px;
        }

        .portfolio-card {
            border-radius: 12px;
            overflow: hidden;
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            transition: all 0.35s ease;
        }
        .portfolio-card:hover {
            transform: translateY(-6px);
            border-color: var(--terminal-green);
            box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px var(--terminal-green-glow);
        }

        .portfolio-thumb {
            position: relative;
            width: 100%;
            height: 200px;
            background: #090D16;
            overflow: hidden;
        }
        .portfolio-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        .portfolio-card:hover .portfolio-thumb img {
            transform: scale(1.08);
        }
        .portfolio-overlay {
            position: absolute;
            inset: 0;
            background: rgba(15, 23, 42, 0.85);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .portfolio-card:hover .portfolio-overlay {
            opacity: 1;
        }
        .overlay-btn {
            width: 42px;
            height: 42px;
            background: var(--terminal-green);
            color: #0F172A;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: transform 0.2s ease;
        }
        .overlay-btn:hover {
            transform: scale(1.15);
        }

        .portfolio-info {
            padding: 18px;
        }
        .portfolio-title {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 4px;
        }
        .portfolio-category {
            font-family: 'Fira Code', monospace;
            font-size: 0.75rem;
            color: var(--terminal-green);
        }

        /* Timeline Section */
        .timeline-wrapper {
            position: relative;
            max-width: 900px;
            margin: 0 auto;
        }
        .timeline-wrapper::before {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            left: 20px;
            width: 2px;
            background: linear-gradient(180deg, var(--terminal-green), var(--tech-amber), rgba(51, 65, 85, 0.5));
        }
        @media (min-width: 768px) {
            .timeline-wrapper::before {
                left: 50%;
                transform: translateX(-50%);
            }
        }

        .timeline-node {
            position: relative;
            margin-bottom: 40px;
        }
        
        .timeline-content {
            position: relative;
            width: calc(100% - 60px);
            margin-left: 60px;
        }

        @media (min-width: 768px) {
            .timeline-node:nth-child(even) .timeline-content {
                margin-left: auto;
                width: 44%;
            }
            .timeline-node:nth-child(odd) .timeline-content {
                margin-right: auto;
                margin-left: 0;
                width: 44%;
            }
        }

        .timeline-badge {
            position: absolute;
            top: 16px;
            left: 8px;
            width: 26px;
            height: 26px;
            background: #0F172A;
            border: 2px solid var(--terminal-green);
            border-radius: 50%;
            z-index: 10;
            box-shadow: 0 0 10px var(--terminal-green-glow);
        }
        @media (min-width: 768px) {
            .timeline-badge {
                left: 50%;
                transform: translateX(-50%);
            }
        }

        .timeline-date {
            font-family: 'Fira Code', monospace;
            font-size: 0.8rem;
            color: var(--tech-amber);
            margin-bottom: 6px;
            display: inline-block;
        }

        .role-title {
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--text-main);
        }

        .org-name {
            font-size: 0.95rem;
            color: var(--terminal-green);
            margin-bottom: 10px;
        }

        .timeline-body p {
            font-size: 0.875rem;
            color: var(--text-muted);
            line-height: 1.6;
        }

        /* Contact Section */
        .contact-grid {
            display: grid;
            grid-template-columns: 1.2fr 0.8fr;
            gap: 32px;
        }
        @media (max-width: 991px) {
            .contact-grid {
                grid-template-columns: 1fr;
            }
        }

        .contact-form {
            padding: 28px;
        }

        .form-group {
            margin-bottom: 20px;
        }
        .form-label {
            display: block;
            font-family: 'Fira Code', monospace;
            font-size: 0.85rem;
            color: var(--text-main);
            margin-bottom: 8px;
        }
        .form-control-ide {
            width: 100%;
            background: #090D16;
            border: 1px solid var(--card-border);
            border-radius: 8px;
            padding: 12px 16px;
            color: var(--text-main);
            font-family: 'Inter', sans-serif;
            font-size: 0.95rem;
            transition: all 0.25s ease;
        }
        .form-control-ide:focus {
            outline: none;
            border-color: var(--terminal-green);
            box-shadow: 0 0 12px var(--terminal-green-glow);
        }

        .info-card {
            padding: 28px;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .contact-detail-item {
            display: flex;
            gap: 16px;
            margin-bottom: 24px;
        }
        .contact-detail-icon {
            width: 42px;
            height: 42px;
            background: rgba(16, 185, 129, 0.1);
            border: 1px solid rgba(16, 185, 129, 0.3);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--terminal-green);
        }

        /* Footer */
        footer.ide-footer {
            background: #080C14;
            border-top: 1px solid var(--card-border);
            padding: 40px 0 20px;
            margin-top: 80px;
        }
        .footer-wrap {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            margin-bottom: 24px;
        }
        .traffic-badge {
            background: rgba(16, 185, 129, 0.08);
            border: 1px solid rgba(16, 185, 129, 0.25);
            padding: 8px 16px;
            border-radius: 999px;
            font-family: 'Fira Code', monospace;
            font-size: 0.85rem;
            color: var(--terminal-green);
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .social-anchors {
            display: flex;
            gap: 12px;
        }
        .social-btn {
            width: 40px;
            height: 40px;
            background: rgba(30, 41, 59, 0.7);
            border: 1px solid var(--card-border);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            text-decoration: none;
            transition: all 0.25s ease;
        }
        .social-btn:hover {
            color: var(--terminal-green);
            border-color: var(--terminal-green);
            transform: translateY(-3px);
            box-shadow: 0 0 12px var(--terminal-green-glow);
        }

        .footer-copyright {
            text-align: center;
            font-family: 'Fira Code', monospace;
            font-size: 0.8rem;
            color: var(--text-muted);
            border-top: 1px solid rgba(51, 65, 85, 0.4);
            padding-top: 20px;
        }

        @media (max-width: 768px) {
            .hero-grid {
                grid-template-columns: 1fr;
            }
            nav.nav-links {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background: #0F172A;
                flex-direction: column;
                padding: 20px;
                border-bottom: 1px solid var(--card-border);
            }
            nav.nav-links.active {
                display: flex;
            }
            .mobile-toggle {
                display: block;
            }
        }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 2000; padding: 12px; background: #10B981; color: #0F172A; }
.skip-link:focus { top: 16px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--tech-amber); outline-offset: 4px; }
.portfolio-card:focus-within .portfolio-overlay { opacity: 1; }
@media (hover: none) { .portfolio-overlay { opacity: 1; background: rgba(15,23,42,.35); } }
@media (max-width: 480px) { .navbar-wrap .status-badge { display: none; } .container-custom { padding: 0 16px; } .terminal-tabs .tab:last-child { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

.ai-workflow-card { grid-column: 1 / -1; padding: 24px; }
.ai-workflow-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; list-style: none; }
.ai-workflow-list li { border-left: 2px solid var(--terminal-green); padding-left: 14px; }
.ai-workflow-list strong { display: block; color: var(--text-main); margin-bottom: 6px; }
.ai-workflow-list span { color: var(--text-muted); font-size: .9rem; line-height: 1.7; }
