html {
            scroll-behavior: smooth;
            scroll-padding-top: 24px;
        }

                :root {
            --bg-color: #030303;
            --accent-color: #ff0000;
            --accent-glow: rgba(255, 42, 42, 0.15); /* Сделали тише */
            --vaults-color: #00bcd4;
            --vaults-glow: rgba(0, 188, 212, 0.15); /* Сделали тише */
            --card-bg: rgba(10, 10, 10, 0.4); /* Было 0.6, стало 0.4 - теперь более прозрачно! */
            --card-border: rgba(255, 255, 255, 0.06);
            --text-main: #ffffff;
            --text-muted: #999999;
        }


        body {
    background-color: #030303; /* Черный фон вокруг, если монитор огромный */
    
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 60px 0;
}

        .page-background {
            position: fixed;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center center;
            z-index: 0;
            pointer-events: none;
        }

        .ambient-canvas {
            position: fixed;
            inset: 0;
            z-index: 1;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }

        .scroll-progress {
            position: fixed;
            inset: 0 0 auto;
            z-index: 40;
            height: 3px;
            background: rgba(255, 255, 255, 0.08);
            pointer-events: none;
        }

        .scroll-progress-bar {
            width: 0;
            height: 100%;
            background: linear-gradient(90deg, #ff0000, #ff2424);
            box-shadow: 0 0 18px rgba(255, 0, 0, 0.95);
            transition: width 0.08s linear;
        }

        .custom-cursor {
            position: fixed;
            top: 0;
            left: 0;
            z-index: 60;
            width: 13px;
            height: 13px;
            border: 1px solid rgba(255, 0, 0, 0.98);
            border-radius: 50%;
            background: rgba(255, 0, 0, 0.32);
            box-shadow: 0 0 16px rgba(255, 0, 0, 0.95), 0 0 34px rgba(255, 0, 0, 0.52);
            opacity: 0;
            pointer-events: none;
            transform: translate3d(-50%, -50%, 0) scale(1);
            transition: opacity 0.18s ease, width 0.18s ease, height 0.18s ease, background 0.18s ease;
        }

        .custom-cursor.is-visible {
            opacity: 1;
        }

        .custom-cursor.is-hovering {
            width: 24px;
            height: 24px;
            background: rgba(255, 42, 42, 0.12);
        }

        html.cursor-enabled,
        html.cursor-enabled body,
        html.cursor-enabled body a,
        html.cursor-enabled body button {
            cursor: none;
        }

        .toast {
            position: fixed;
            right: 20px;
            bottom: 82px;
            z-index: 50;
            max-width: min(340px, calc(100vw - 40px));
            border: 1px solid rgba(255, 42, 42, 0.28);
            border-radius: 14px;
            padding: 12px 16px;
            color: #ffffff;
            background: rgba(18, 12, 12, 0.92);
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), 0 0 24px rgba(255, 42, 42, 0.12);
            font-size: 13px;
            opacity: 0;
            pointer-events: none;
            transform: translateY(10px);
            transition: opacity 0.22s ease, transform 0.22s ease;
        }

        .toast.is-visible {
            opacity: 1;
            transform: translateY(0);
        }

        .easter-egg-active .glow-sphere-1 {
            background: radial-gradient(circle, rgba(0, 229, 196, 0.28) 0%, rgba(0, 0, 0, 0) 70%);
        }

        .easter-egg-active .brand-badge {
            color: #00e5c4;
            text-shadow: 0 0 22px rgba(0, 229, 196, 0.75);
        }

        .brand-badge.is-clickable {
            border: 0;
            padding: 0;
            background: none;
            font-family: inherit;
            font-size: 12px;
            font-weight: 900;
            letter-spacing: 6px;
            line-height: normal;
            text-transform: uppercase;
            cursor: pointer;
        }

        .brand-badge.is-clickable:focus-visible {
            border-radius: 3px;
            outline: 2px solid var(--accent-color);
            outline-offset: 5px;
        }

        .typing-line {
            min-height: 1.4em;
            margin: -2px 0 12px;
            color: var(--text-muted);
            font-size: 12px;
            letter-spacing: 0.3px;
        }

        body[data-theme="light"] .toast {
            color: #202020;
            background: rgba(250, 250, 250, 0.96);
        }



        .glow-sphere-1 {
            position: fixed;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0,0,0,0) 70%);
            top: -200px;
            left: -200px;
            z-index: -1;
            filter: blur(80px);
            pointer-events: none;
        }

        .glow-sphere-2 {
            position: fixed;
            width: 700px;
            height: 700px;
            background: radial-gradient(circle, var(--vaults-glow) 0%, rgba(0,0,0,0) 70%);
            bottom: -200px;
            right: -200px;
            z-index: -1;
            filter: blur(90px);
            pointer-events: none;
        }

        .container {
            width: 90%;
            max-width: 550px;
            display: flex;
            flex-direction: column;
            gap: 24px;
            z-index: 10;
        }

        .card {
            background: var(--card-bg);
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            border: 1px solid var(--card-border);
            border-radius: 28px;
            padding: 35px;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.05);
            transform: translate3d(var(--move-x, 0), var(--move-y, 0), 0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
            transform-style: preserve-3d;
            transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
            will-change: transform;
        }

        .card:hover {
            border-color: rgba(255, 255, 255, 0.08);
            box-shadow: 0 34px 70px rgba(0, 0, 0, 0.85), inset 0 1px 1px rgba(255, 255, 255, 0.08);
        }

        body[data-theme="light"] {
            --card-bg: rgba(250, 250, 250, 0.72);
            --card-border: rgba(0, 0, 0, 0.12);
            --text-muted: #555555;
        }

        body[data-theme="light"] .card {
            box-shadow: 0 24px 55px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.65);
        }

        body[data-theme="light"] .card:hover {
            border-color: rgba(0, 0, 0, 0.24);
            box-shadow: 0 30px 65px rgba(0, 0, 0, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.8);
        }

        body[data-theme="light"] h1 {
            background: linear-gradient(180deg, #222222 0%, #555555 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        body[data-theme="light"] .status-badge {
            background: rgba(255, 255, 255, 0.42);
            border-color: rgba(0, 0, 0, 0.12);
        }

        body[data-theme="light"] .bio-text {
            color: #292929;
        }

        body[data-theme="light"] .tag {
            background: rgba(255, 255, 255, 0.3);
            border-color: rgba(0, 0, 0, 0.1);
            color: #292929;
        }

        body[data-theme="light"] .tag:hover {
            color: #111111;
        }

        body[data-theme="light"] .project-box {
            background: rgba(255, 255, 255, 0.22);
            border-color: rgba(0, 0, 0, 0.1);
        }

        body[data-theme="light"] .project-box:hover {
            background: rgba(255, 255, 255, 0.5);
            border-color: rgba(0, 0, 0, 0.2);
        }

        body[data-theme="light"] .project-name {
            color: #202020;
        }

        body[data-theme="light"] .scanner-card {
            color: #202020;
        }

        body[data-theme="light"] .scanner-console,
        body[data-theme="light"] .scanner-device {
            background: rgba(255, 255, 255, 0.55);
            border-color: rgba(0, 0, 0, 0.1);
        }

        body[data-theme="light"] .scanner-device-name,
        body[data-theme="light"] .scanner-stat-value {
            color: #202020;
        }

        body[data-theme="light"] .scanner-demo-badge,
        body[data-theme="light"] .scanner-state,
        body[data-theme="light"] .scanner-sample-tag {
            color: #006c5d;
        }

        .scanner-card {
            position: relative;
            overflow: hidden;
            isolation: isolate;
            background:
                radial-gradient(ellipse at 90% 0%, rgba(0, 188, 212, 0.12), transparent 42%),
                var(--card-bg);
        }

        .scanner-card::before {
            position: absolute;
            inset: 0 0 auto;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(0, 229, 196, 0.8), transparent);
            content: "";
            pointer-events: none;
        }

        .scanner-heading {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 12px;
            margin-bottom: 20px;
        }

        .scanner-heading .section-title {
            margin-bottom: 8px;
        }

        .scanner-subtitle {
            margin: 0;
            color: var(--text-muted);
            font-size: 13px;
            line-height: 1.5;
        }

        .scanner-demo-badge,
        .scanner-state {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            flex: 0 0 auto;
            border: 1px solid rgba(0, 229, 196, 0.22);
            border-radius: 999px;
            padding: 7px 10px;
            color: #6fffe4;
            background: rgba(0, 229, 196, 0.08);
            font-size: 9px;
            font-weight: 800;
            letter-spacing: 1.2px;
            text-transform: uppercase;
        }

        .scanner-demo-badge::before,
        .scanner-state::before {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #00e5c4;
            box-shadow: 0 0 10px rgba(0, 229, 196, 0.8);
            content: "";
        }

        .scanner-console {
            display: grid;
            grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
            align-items: center;
            gap: 18px;
            border: 1px solid rgba(0, 229, 196, 0.14);
            border-radius: 20px;
            padding: 18px;
            background: rgba(0, 10, 12, 0.58);
        }

        .scanner-radar {
            position: relative;
            width: 100%;
            max-width: 190px;
            aspect-ratio: 1;
            overflow: hidden;
            justify-self: center;
            border: 1px solid rgba(0, 229, 196, 0.35);
            border-radius: 50%;
            background:
                linear-gradient(rgba(0, 229, 196, 0.12) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 229, 196, 0.12) 1px, transparent 1px),
                radial-gradient(circle, transparent 19%, rgba(0, 229, 196, 0.2) 19.5%, transparent 20%, transparent 39%, rgba(0, 229, 196, 0.2) 39.5%, transparent 40%, transparent 59%, rgba(0, 229, 196, 0.2) 59.5%, transparent 60%);
            background-size: 25% 25%, 25% 25%, 100% 100%;
            box-shadow: inset 0 0 30px rgba(0, 229, 196, 0.08), 0 0 24px rgba(0, 229, 196, 0.08);
        }

        .scanner-radar::before,
        .scanner-radar::after {
            position: absolute;
            z-index: 1;
            background: rgba(0, 229, 196, 0.22);
            content: "";
            pointer-events: none;
        }

        .scanner-radar::before {
            top: 50%;
            right: 0;
            left: 0;
            height: 1px;
        }

        .scanner-radar::after {
            top: 0;
            bottom: 0;
            left: 50%;
            width: 1px;
        }

        .radar-sweep {
            position: absolute;
            z-index: 2;
            inset: 0;
            border-radius: 50%;
            background: conic-gradient(from 0deg, transparent 0deg 285deg, rgba(0, 229, 196, 0.42) 360deg);
            -webkit-mask: radial-gradient(circle, transparent 0 4%, #000 5%);
            mask: radial-gradient(circle, transparent 0 4%, #000 5%);
            animation: radar-rotate 5s linear infinite;
        }

        @keyframes radar-rotate {
            to { transform: rotate(360deg); }
        }

        .radar-target {
            position: absolute;
            z-index: 3;
            width: 7px;
            height: 7px;
            border: 1px solid rgba(255, 255, 255, 0.8);
            border-radius: 50%;
            background: #00e5c4;
            box-shadow: 0 0 12px #00e5c4;
            opacity: 0;
            transform: scale(0.5);
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        .radar-target:nth-of-type(2) { top: 27%; left: 62%; }
        .radar-target:nth-of-type(3) { top: 58%; left: 31%; }
        .radar-target:nth-of-type(4) { top: 69%; left: 70%; }

        .scanner-card.has-results .radar-target {
            opacity: 1;
            transform: scale(1);
            animation: target-pulse 2s ease-in-out infinite;
        }

        .radar-target:nth-of-type(3) { animation-delay: 0.35s; }
        .radar-target:nth-of-type(4) { animation-delay: 0.7s; }

        @keyframes target-pulse {
            50% { box-shadow: 0 0 18px 4px rgba(0, 229, 196, 0.45); }
        }

        .scanner-card.is-scanning .radar-sweep {
            animation-duration: 0.9s;
        }

        .scanner-readout {
            min-width: 0;
        }

        .scanner-state {
            margin-bottom: 14px;
        }

        .scanner-state.is-running::before {
            animation: target-pulse 0.8s ease-in-out infinite;
        }

        .scanner-stats {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 9px;
            margin-bottom: 14px;
        }

        .scanner-stat {
            border: 1px solid rgba(255, 255, 255, 0.07);
            border-radius: 12px;
            padding: 10px;
            background: rgba(255, 255, 255, 0.025);
        }

        .scanner-stat-label {
            display: block;
            margin-bottom: 5px;
            color: var(--text-muted);
            font-size: 9px;
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        .scanner-stat-value {
            color: #ffffff;
            font-size: 13px;
            font-weight: 700;
        }

        .scanner-progress {
            height: 4px;
            overflow: hidden;
            margin-bottom: 14px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.1);
        }

        .scanner-progress-bar {
            width: 0;
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(90deg, #00a7bb, #00ffd0);
            box-shadow: 0 0 12px rgba(0, 229, 196, 0.6);
            transition: width 1.25s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .scanner-button {
            width: 100%;
            border: 1px solid rgba(0, 229, 196, 0.4);
            border-radius: 12px;
            padding: 11px 14px;
            color: #00110f;
            background: linear-gradient(110deg, #00c8b0, #70ffe5);
            box-shadow: 0 6px 22px rgba(0, 229, 196, 0.16);
            font: inherit;
            font-size: 12px;
            font-weight: 800;
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
        }

        .scanner-button:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 9px 28px rgba(0, 229, 196, 0.28);
        }

        .scanner-button:disabled {
            cursor: wait;
            opacity: 0.75;
        }

        .scanner-note {
            margin: 10px 0 0;
            color: var(--text-muted);
            font-size: 10px;
            line-height: 1.5;
            text-align: center;
        }

        .scanner-results {
            margin-top: 16px;
        }

        .scanner-results[hidden] {
            display: none;
        }

        .scanner-results-heading {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            margin-bottom: 9px;
            color: var(--text-muted);
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 1.3px;
            text-transform: uppercase;
        }

        .scanner-device-list {
            display: grid;
            gap: 7px;
        }

        .scanner-device {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 12px;
            padding: 10px 12px;
            background: rgba(255, 255, 255, 0.025);
            animation: fadeInUp 0.35s ease both;
        }

        .scanner-device-main {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
        }

        .scanner-device-icon {
            display: grid;
            width: 32px;
            height: 32px;
            flex: 0 0 auto;
            place-items: center;
            border: 1px solid rgba(0, 229, 196, 0.18);
            border-radius: 10px;
            background: rgba(0, 229, 196, 0.08);
            font-size: 15px;
        }

        .scanner-device-name {
            display: block;
            overflow: hidden;
            color: #ffffff;
            font-size: 12px;
            font-weight: 700;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .scanner-device-type {
            display: block;
            margin-top: 3px;
            color: var(--text-muted);
            font-size: 10px;
        }

        .scanner-sample-tag {
            flex: 0 0 auto;
            color: #6fffe4;
            font-size: 9px;
            font-weight: 700;
            letter-spacing: 0.8px;
            text-transform: uppercase;
        }

        .scanner-card :is(.scanner-button, .scanner-device) {
            transform: translateZ(0);
        }

        .scanner-button:focus-visible {
            outline: 2px solid #ffffff;
            outline-offset: 3px;
        }

        .system-pulse-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
        }

        .system-metric {
            display: grid;
            justify-items: center;
            gap: 9px;
            border: 1px solid rgba(255, 255, 255, 0.07);
            border-radius: 18px;
            padding: 16px 8px 13px;
            background: rgba(255, 255, 255, 0.025);
        }

        .metric-ring {
            display: grid;
            width: min(100%, 76px);
            aspect-ratio: 1;
            place-items: center;
            border-radius: 50%;
            background: conic-gradient(var(--metric-color) calc(var(--metric-value) * 1%), rgba(255, 255, 255, 0.09) 0);
            box-shadow: 0 0 18px rgba(0, 0, 0, 0.16);
        }

        .metric-ring-center {
            display: grid;
            width: min(82%, 62px);
            aspect-ratio: 1;
            place-items: center;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 50%;
            background: rgba(12, 12, 12, 0.92);
        }

        .metric-value {
            color: #ffffff;
            font-size: 15px;
            font-weight: 800;
            font-variant-numeric: tabular-nums;
        }

        .metric-label {
            display: block;
            max-width: 100%;
            color: var(--text-muted);
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 1.4px;
            text-align: center;
            text-transform: uppercase;
            overflow-wrap: anywhere;
        }

        .metric-unit {
            margin-top: -6px;
            color: var(--text-muted);
            font-size: 9px;
        }

        .simulated-badge {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            border: 1px solid rgba(255, 42, 42, 0.25);
            border-radius: 999px;
            padding: 7px 10px;
            color: #ff0000;
            background: rgba(255, 42, 42, 0.07);
            font-size: 9px;
            font-weight: 800;
            letter-spacing: 1.1px;
            text-transform: uppercase;
        }

        .simulated-badge::before {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--accent-color);
            box-shadow: 0 0 9px rgba(255, 42, 42, 0.7);
            content: "";
        }

        .terminal-window {
            overflow: hidden;
            border: 1px solid rgba(0, 229, 196, 0.18);
            border-radius: 18px;
            background: rgba(3, 10, 11, 0.88);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
        }

        .terminal-bar {
            display: flex;
            align-items: center;
            gap: 6px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.07);
            padding: 11px 14px;
            background: rgba(255, 255, 255, 0.025);
        }

        .terminal-light {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #ff0000;
        }

        .terminal-light:nth-child(2) { background: #febc2e; }
        .terminal-light:nth-child(3) { background: #28c840; }

        .terminal-title {
            margin-left: 5px;
            color: var(--text-muted);
            font-size: 10px;
            letter-spacing: 0.7px;
        }

        .terminal-output {
            display: grid;
            max-height: 160px;
            min-height: 74px;
            align-content: end;
            gap: 5px;
            overflow-y: auto;
            padding: 13px 15px 7px;
            color: #8ef5d6;
            font-family: Consolas, "Courier New", monospace;
            font-size: 11px;
            line-height: 1.55;
            scrollbar-color: rgba(0, 229, 196, 0.35) transparent;
        }

        .terminal-line {
            margin: 0;
            overflow-wrap: anywhere;
            white-space: pre-wrap;
        }

        .terminal-line.is-command {
            color: #ffffff;
        }

        .terminal-line.is-error {
            color: #ff0000;
        }

        .terminal-form {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 15px 14px;
            color: #00e5c4;
            font-family: Consolas, "Courier New", monospace;
            font-size: 12px;
        }

        .terminal-prompt {
            flex: 0 0 auto;
            font-weight: 700;
        }

        .terminal-input {
            width: 100%;
            min-width: 0;
            border: 0;
            outline: 0;
            color: #ffffff;
            background: transparent;
            font: inherit;
        }

        .terminal-input::placeholder {
            color: rgba(255, 255, 255, 0.4);
        }

        .terminal-input:focus-visible {
            outline: 1px solid rgba(0, 229, 196, 0.6);
            outline-offset: 4px;
        }

        body[data-theme="light"] .system-metric {
            border-color: rgba(0, 0, 0, 0.1);
            background: rgba(255, 255, 255, 0.35);
        }

        body[data-theme="light"] .metric-ring-center {
            border-color: rgba(0, 0, 0, 0.1);
            background: rgba(250, 250, 250, 0.95);
        }

        body[data-theme="light"] .metric-value {
            color: #202020;
        }

        body[data-theme="light"] .terminal-window {
            background: rgba(3, 10, 11, 0.94);
        }

        html.cursor-enabled .theme-toggle,
        html.cursor-enabled .back-to-top,
        html.cursor-enabled .brand-badge.is-clickable {
            cursor: none;
        }

        html.cursor-enabled :is(button, a, input):focus-visible {
            cursor: none;
        }

        body[data-theme="light"] .typing-line {
            color: #404040;
        }

        @media (prefers-reduced-motion: reduce) {
            .ambient-canvas {
                display: none;
            }

            .scroll-progress-bar,
            .custom-cursor,
            .toast {
                transition: none;
            }

        }

        @media (max-width: 380px) {
            .system-pulse-grid {
                gap: 7px;
            }

            .system-metric {
                min-width: 0;
                box-sizing: border-box;
                padding-inline: 3px;
            }

            .metric-ring {
                width: min(100%, 48px);
            }

            .metric-ring-center {
                width: 82%;
            }
        }

        .theme-toggle,
        .back-to-top {
            position: fixed;
            z-index: 20;
            border: 1px solid rgba(255, 255, 255, 0.2);
            background: rgba(20, 20, 20, 0.78);
            color: #ffffff;
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            cursor: pointer;
            transition: transform 0.25s ease, opacity 0.25s ease;
        }

        .language-switch {
            position: fixed;
            top: 16px;
            left: 16px;
            z-index: 20;
            display: flex;
            gap: 3px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 999px;
            padding: 4px;
            background: rgba(20, 20, 20, 0.78);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
        }

        .language-option {
            min-width: 38px;
            border: 0;
            border-radius: 999px;
            padding: 7px 9px;
            color: rgba(255, 255, 255, 0.72);
            background: transparent;
            font: inherit;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.6px;
            cursor: pointer;
            transition: color 0.2s ease, background 0.2s ease;
        }

        .language-option[aria-pressed="true"] {
            color: #ffffff;
            background: rgba(255, 42, 42, 0.72);
            box-shadow: 0 0 14px rgba(255, 42, 42, 0.22);
        }

        body[data-theme="light"] .language-switch {
            border-color: rgba(0, 0, 0, 0.18);
            background: rgba(250, 250, 250, 0.82);
        }

        body[data-theme="light"] .language-option {
            color: #454545;
        }

        body[data-theme="light"] .language-option[aria-pressed="true"] {
            color: #ffffff;
        }

        .language-option:focus-visible {
            outline: 2px solid var(--accent-color);
            outline-offset: 2px;
        }

        .theme-toggle {
            top: 16px;
            right: 16px;
            padding: 10px 14px;
            border-radius: 999px;
            font: inherit;
            font-size: 13px;
        }

        body[data-theme="light"] .theme-toggle,
        body[data-theme="light"] .back-to-top {
            border-color: rgba(0, 0, 0, 0.18);
            background: rgba(250, 250, 250, 0.8);
            color: #222222;
        }

        .theme-toggle:hover,
        .back-to-top:hover {
            transform: translateY(-2px);
        }

        .back-to-top {
            right: 20px;
            bottom: 20px;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            font-size: 24px;
            opacity: 0;
            pointer-events: none;
            transform: translateY(10px);
        }

        .back-to-top.is-visible {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
        }

        .theme-toggle:focus-visible,
        .back-to-top:focus-visible,
        .btn-base:focus-visible,
        .project-box:focus-visible {
            outline: 2px solid var(--accent-color);
            outline-offset: 4px;
        }

        .profile-header {
            text-align: center;
            padding: 20px 0 10px;
        }

        .brand-badge {
            font-size: 12px;
            font-weight: 900;
            color: var(--accent-color);
            letter-spacing: 6px;
            text-transform: uppercase;
            margin-bottom: 12px;
            text-shadow: 0 0 20px rgba(255, 42, 42, 0.6);
        }

        h1 {
            font-size: 38px;
            font-weight: 800;
            letter-spacing: -1px;
            margin-bottom: 12px;
            background: linear-gradient(180deg, #ffffff 0%, #a0a0a0 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .status-badge {
            display: inline-flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.03);
            padding: 6px 16px;
            border-radius: 100px;
            font-size: 12px;
            font-weight: 500;
            color: var(--accent-color);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .status-dot {
            width: 6px;
            height: 6px;
            background-color: #00ff66;
            border-radius: 50%;
            margin-right: 8px;
            box-shadow: 0 0 12px #00ff66;
        }

        .bio-text {
            font-size: 15px;
            line-height: 1.6;
            color: #ccc;
        }

        .section-title {
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--text-muted);
            margin-bottom: 16px;
        }

        .tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .tag {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.04);
            padding: 8px 16px;
            border-radius: 12px;
            font-size: 13px;
            font-weight: 500;
            color: #d1d1d1;
            transition: all 0.3s;
        }

        .tag:hover {
            background: rgba(255, 42, 42, 0.08);
            border-color: rgba(255, 42, 42, 0.25);
            color: #fff;
            transform: translateY(-2px);
        }

        .project-box {
            min-width: 0;
            background: rgba(255, 255, 255, 0.01);
            border: 1px solid rgba(255, 255, 255, 0.03);
            border-radius: 16px;
            padding: 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            text-decoration: none;
            transition: all 0.3s;
        }

        a.project-box:hover {
            background: rgba(255, 255, 255, 0.03);
            border-color: rgba(255, 255, 255, 0.08);
            transform: translateY(-2px);
        }

        .project-list {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }

        .project-name {
            overflow-wrap: anywhere;
            font-size: 16px;
            font-weight: 600;
            color: #fff;
            margin-bottom: 4px;
        }

        .project-desc {
            overflow-wrap: anywhere;
            font-size: 13px;
            line-height: 1.45;
            color: var(--text-muted);
        }

        .project-link-icon {
            flex: 0 0 auto;
            color: var(--accent-color);
            font-size: 18px;
        }

        .buttons-group {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            margin-top: 10px;
        }

        .btn-base {
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center; /* Центрируем текст внутри */
            width: 100%;
            box-sizing: border-box;
            padding: 16px 20px; /* Добавили внутренние отступы по бокам, чтобы текст не лип к краям */
            border-radius: 16px;
            font-weight: 600;
            font-size: 14px; /* Чуть-чуть уменьшили шрифт (было 15), чтобы на смартфонах всё влезало в одну строку */
            text-decoration: none;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            border: none;
            gap: 8px; /* Сделали фиксированный красивый отступ между иконкой 🔗 и текстом */
        }

        .contact-icon {
            display: grid;
            place-items: center;
            width: 34px;
            height: 34px;
            flex: 0 0 34px;
            border: 1px solid rgba(255, 255, 255, 0.16);
            border-radius: 11px;
            background: rgba(255, 255, 255, 0.07);
            box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 4px 14px rgba(0, 0, 0, 0.15);
            transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s, border-color 0.3s;
        }

        .contact-icon svg {
            width: 19px;
            height: 19px;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.7;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .contact-icon img {
            width: 24px;
            height: 24px;
            object-fit: contain;
        }

        .discord-icon {
            border-color: rgba(136, 146, 255, 0.4);
            background: #5865f2;
        }

        .discord-icon svg {
            fill: #ffffff;
            stroke: none;
        }

        .discord-icon .discord-eyes {
            fill: #5865f2;
        }

        .vaults-icon {
            border-color: rgba(0, 188, 212, 0.32);
            background: rgba(0, 188, 212, 0.12);
        }

        .btn-base:hover .contact-icon {
            transform: rotate(-6deg) scale(1.08);
            border-color: rgba(255, 255, 255, 0.35);
            background: rgba(255, 255, 255, 0.14);
        }


        .btn-email {
            background: var(--text-main);
            color: #000;
            box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
        }

        .btn-email:hover {
            background: var(--accent-color);
            color: #fff;
            transform: translateY(-3px);
            box-shadow: 0 12px 30px var(--accent-glow);
        }

        .btn-vaults {
            background: rgba(0, 188, 212, 0.06);
            color: var(--vaults-color);
            border: 1px solid rgba(0, 188, 212, 0.15);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        }

        .btn-vaults:hover {
            background: var(--vaults-color);
            color: #000;
            transform: translateY(-3px);
            box-shadow: 0 12px 30px var(--vaults-glow);
        }

        .btn-discord {
            border: 1px solid rgba(136, 146, 255, 0.3);
            color: #d3d6ff;
            background: rgba(88, 101, 242, 0.16);
        }

        .btn-discord:hover {
            background: #5865f2;
            color: #ffffff;
            transform: translateY(-3px);
        }

        .btn-telegram {
            border: 1px solid rgba(40, 167, 234, 0.3);
            color: #a9e3ff;
            background: rgba(0, 136, 204, 0.16);
        }

        .btn-telegram:hover {
            background: #0088cc;
            color: #ffffff;
            transform: translateY(-3px);
        }

        @keyframes fadeInUp {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes card-float {
            0%, 100% { translate: 0 0; }
            50% { translate: 0 -6px; }
        }

        .animated {
            animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) both, card-float 6s ease-in-out infinite;
        }

        html.js .animated {
            opacity: 0;
            animation: none;
        }

        html.js .animated.is-visible {
            opacity: 1;
            animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) both, card-float 6s ease-in-out infinite;
        }

        @media (prefers-reduced-motion: reduce) {
            html {
                scroll-behavior: auto;
            }

            .animated {
                animation: none;
            }

            html.js .animated {
                opacity: 1;
            }

            html.js .animated.is-visible {
                animation: none;
            }

            .card {
                transition: border-color 0.3s;
                will-change: auto;
            }

            .theme-toggle,
            .back-to-top,
            .language-option {
                transition: none;
            }

            .radar-sweep,
            .scanner-state.is-running::before,
            .scanner-card.has-results .radar-target,
            .scanner-device {
                animation: none;
            }

            .scanner-progress-bar,
            .scanner-button {
                transition: none;
            }
        }

        @media (max-width: 520px) {
            .project-list {
                grid-template-columns: minmax(0, 1fr);
            }

            .system-metric {
                gap: 7px;
                padding: 12px 4px 10px;
            }

            .metric-ring {
                width: min(100%, 56px);
            }

            .metric-ring-center {
                width: 82%;
            }

            .metric-value {
                font-size: 13px;
            }

            .metric-label {
                font-size: 9px;
                letter-spacing: 0.8px;
            }

            .metric-unit {
                font-size: 8px;
            }

            .buttons-group {
                grid-template-columns: minmax(0, 1fr);
            }

            .scanner-console {
                grid-template-columns: minmax(0, 1fr);
            }

            .scanner-radar {
                width: min(100%, 190px);
            }

            .scanner-readout {
                width: 100%;
            }

            .terminal-form {
                gap: 6px;
                padding-inline: 11px;
                font-size: 11px;
            }

            .terminal-prompt {
                white-space: nowrap;
            }
        }

        @media (max-width: 768px) {
            body {
                background-attachment: scroll;
            }
        }

        @media (max-width: 380px) {
            .metric-ring {
                width: min(100%, 48px);
            }
        }

        :root {
            color-scheme: dark;
            --accent-color: #ff0000;
            --accent-glow: rgba(255, 0, 0, 0.38);
            --vaults-color: #53e6d2;
            --vaults-glow: rgba(83, 230, 210, 0.16);
            --card-bg: rgba(13, 16, 23, 0.72);
            --card-border: rgba(255, 255, 255, 0.1);
            --text-main: #f7f8fc;
            --text-muted: #a4adbd;
        }

        html {
            scroll-padding-top: 36px;
            scrollbar-color: rgba(255, 0, 0, 0.8) #090a0f;
        }

        body {
            box-sizing: border-box;
            min-height: 100vh;
            margin: 0;
            padding: 104px 0 64px;
            color: var(--text-main);
            background: #080a0f;
            font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            -webkit-font-smoothing: antialiased;
            text-rendering: optimizeLegibility;
        }

        body::before {
            position: fixed;
            z-index: 2;
            inset: 0;
            background:
                linear-gradient(180deg, rgba(7, 9, 14, 0.52), rgba(7, 9, 14, 0.78) 55%, #080a0f 100%),
                radial-gradient(ellipse at 50% 5%, rgba(32, 49, 74, 0.42), transparent 58%);
            content: "";
            pointer-events: none;
        }

        .page-background {
            filter: saturate(0.65) brightness(0.52);
        }

        .ambient-canvas {
            z-index: 3;
            opacity: 0.62;
        }

        .glow-sphere-1,
        .glow-sphere-2 {
            z-index: 4;
            opacity: 0.72;
            filter: blur(100px);
        }

        .glow-sphere-1 {
            top: -250px;
            left: -260px;
        }

        .glow-sphere-2 {
            right: -300px;
            bottom: 8%;
        }

        .container {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            align-items: stretch;
            gap: 18px;
            width: min(1080px, calc(100% - 48px));
            max-width: 1080px;
        }

        .card {
            position: relative;
            min-width: 0;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 24px;
            padding: clamp(24px, 3vw, 36px);
            background:
                linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 46%),
                rgba(13, 16, 23, 0.76);
            box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.07);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            transform: none;
            transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, translate 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
            will-change: auto;
        }

        .card::after {
            position: absolute;
            top: 0;
            right: 12%;
            left: 12%;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
            content: "";
            pointer-events: none;
        }

        .card:hover {
            border-color: rgba(255, 255, 255, 0.17);
            box-shadow: 0 25px 65px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.09);
        }

        .container > .card:nth-child(1),
        .container > .card:nth-child(4),
        .container > .card:nth-child(5),
        .container > .card:nth-child(8) {
            grid-column: 1 / -1;
        }

        .profile-header {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            align-content: center;
            align-items: center;
            column-gap: 24px;
            min-height: 250px;
            overflow: hidden;
            padding: clamp(32px, 6vw, 64px);
            text-align: left;
            background:
                radial-gradient(ellipse at 82% 55%, rgba(255, 0, 0, 0.16), transparent 38%),
                radial-gradient(ellipse at 95% 0%, rgba(83, 230, 210, 0.11), transparent 32%),
                linear-gradient(135deg, rgba(22, 26, 36, 0.9), rgba(10, 13, 19, 0.78));
        }

        .profile-header::before {
            position: absolute;
            top: 50%;
            right: 9%;
            width: clamp(130px, 20vw, 220px);
            aspect-ratio: 1;
            border: 1px solid rgba(255, 255, 255, 0.07);
            border-radius: 50%;
            box-shadow: 0 0 0 22px rgba(255, 255, 255, 0.018), 0 0 0 48px rgba(255, 255, 255, 0.014), inset 0 0 55px rgba(255, 0, 0, 0.08);
            content: "";
            pointer-events: none;
            transform: translateY(-50%);
        }

        .profile-header > * {
            position: relative;
            z-index: 1;
        }

        .brand-badge {
            grid-column: 1 / -1;
            width: fit-content;
            margin-bottom: 20px;
            color: #ff0000;
            font-size: 11px;
            letter-spacing: 0.32em;
            text-shadow: 0 0 10px rgba(255, 0, 0, 0.95), 0 0 28px rgba(255, 0, 0, 0.8);
        }

        .brand-badge.is-clickable {
            font-size: 11px;
        }

        h1 {
            align-self: end;
            margin: 0;
            font-size: clamp(54px, 8vw, 88px);
            font-weight: 780;
            letter-spacing: -0.075em;
            line-height: 0.98;
            background: linear-gradient(120deg, #fff 15%, #cbd2e0 68%, #8e9aaf);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .typing-line {
            grid-column: 1;
            min-height: 1.5em;
            margin: 10px 0 0;
            font-size: clamp(13px, 1.7vw, 15px);
            letter-spacing: 0.01em;
        }

        .status-badge {
            grid-column: 2;
            grid-row: 2 / span 2;
            justify-self: end;
            border: 1px solid rgba(255, 255, 255, 0.13);
            padding: 11px 16px;
            color: #e7eaf0;
            background: rgba(255, 255, 255, 0.055);
            box-shadow: inset 0 1px rgba(255, 255, 255, 0.07);
            backdrop-filter: blur(10px);
        }

        .status-dot {
            width: 7px;
            height: 7px;
            background-color: #56e6a5;
            box-shadow: 0 0 14px rgba(86, 230, 165, 0.8);
        }

        .section-title {
            margin-bottom: 20px;
            color: #c1c9d7;
            font-size: 10px;
            letter-spacing: 0.2em;
        }

        .bio-text {
            margin: 0;
            color: #d3d9e3;
            font-size: 15px;
            line-height: 1.85;
        }

        .tags {
            gap: 9px;
        }

        .tag {
            border-color: rgba(255, 255, 255, 0.085);
            border-radius: 999px;
            padding: 9px 13px;
            color: #d5dbe5;
            background: rgba(255, 255, 255, 0.035);
            font-size: 12px;
            transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, translate 0.25s ease;
        }

        .tag:hover {
            border-color: rgba(255, 0, 0, 0.38);
            color: #fff;
            background: rgba(255, 0, 0, 0.12);
            translate: 0 -2px;
        }

        .project-list {
            gap: 12px;
        }

        .project-box {
            position: relative;
            overflow: hidden;
            min-height: 92px;
            border-color: rgba(255, 255, 255, 0.075);
            border-radius: 17px;
            padding: 17px 18px;
            background: rgba(255, 255, 255, 0.025);
            transition: border-color 0.25s ease, background 0.25s ease, translate 0.25s ease, box-shadow 0.25s ease;
        }

        a.project-box:hover {
            border-color: rgba(255, 0, 0, 0.3);
            background: linear-gradient(115deg, rgba(255, 0, 0, 0.09), rgba(255, 255, 255, 0.035));
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
            translate: 0 -3px;
        }

        .project-name {
            margin-bottom: 6px;
            font-size: 15px;
            letter-spacing: -0.02em;
        }

        .project-desc {
            color: #aab3c1;
            font-size: 12px;
            line-height: 1.55;
        }

        .project-link-icon {
            display: grid;
            width: 30px;
            height: 30px;
            place-items: center;
            border: 1px solid rgba(255, 0, 0, 0.2);
            border-radius: 50%;
            background: rgba(255, 0, 0, 0.08);
            transition: transform 0.25s ease, background 0.25s ease;
        }

        a.project-box:hover .project-link-icon {
            background: rgba(255, 0, 0, 0.2);
            transform: translate(2px, -2px);
        }

        .scanner-card {
            border-color: rgba(83, 230, 210, 0.17);
            background:
                radial-gradient(ellipse at 92% 5%, rgba(83, 230, 210, 0.1), transparent 38%),
                linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 48%),
                rgba(10, 19, 22, 0.82);
        }

        .scanner-card::after {
            right: 0;
            left: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(83, 230, 210, 0.65), transparent);
        }

        .scanner-console {
            border-color: rgba(83, 230, 210, 0.15);
            background: rgba(1, 12, 14, 0.48);
        }

        .system-pulse-grid {
            gap: 12px;
        }

        .system-metric {
            border-color: rgba(255, 255, 255, 0.085);
            border-radius: 18px;
            padding: 19px 10px 15px;
            background: rgba(255, 255, 255, 0.035);
            transition: border-color 0.25s ease, background 0.25s ease, translate 0.25s ease;
        }

        .system-metric:hover {
            border-color: rgba(255, 255, 255, 0.17);
            background: rgba(255, 255, 255, 0.06);
            translate: 0 -3px;
        }

        .terminal-window {
            border-color: rgba(83, 230, 210, 0.19);
            border-radius: 17px;
            box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.04);
        }

        .terminal-output {
            min-height: 92px;
            padding: 16px 17px 8px;
            font-size: 12px;
            line-height: 1.7;
        }

        .terminal-form {
            padding: 10px 17px 16px;
        }

        .buttons-group {
            gap: 10px;
        }

        .btn-base {
            min-height: 58px;
            border: 1px solid rgba(255, 255, 255, 0.11);
            border-radius: 16px;
            padding: 11px 16px;
            background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent);
            transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, translate 0.25s ease;
        }

        .btn-base:hover {
            translate: 0 -3px;
        }

        .theme-toggle,
        .language-switch {
            top: 20px;
            border-color: rgba(255, 255, 255, 0.13);
            background: rgba(12, 15, 21, 0.76);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.07);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
        }

        .language-switch {
            left: 20px;
        }

        .theme-toggle {
            right: 20px;
            padding: 10px 15px;
        }

        .language-option[aria-pressed="true"] {
            background: linear-gradient(135deg, #ff0000, #c90000);
            box-shadow: 0 0 18px rgba(255, 0, 0, 0.72);
        }

        .scroll-progress {
            height: 3px;
            background: rgba(255, 255, 255, 0.06);
        }

        .scroll-progress-bar {
            background: linear-gradient(90deg, #ff0000, #ff2418);
            box-shadow: 0 0 20px rgba(255, 0, 0, 0.9);
        }

        .animated,
        html.js .animated.is-visible {
            animation: reveal-card 0.72s cubic-bezier(0.2, 0.75, 0.25, 1) both;
        }

        html.js .animated {
            opacity: 0;
        }

        @keyframes reveal-card {
            from { opacity: 0; translate: 0 18px; }
            to { opacity: 1; translate: 0 0; }
        }

        body[data-theme="light"] {
            color-scheme: light;
            --card-bg: rgba(255, 255, 255, 0.78);
            --card-border: rgba(28, 35, 48, 0.12);
            --text-main: #17202e;
            --text-muted: #596579;
            background: #e9edf3;
        }

        body[data-theme="light"]::before {
            background:
                linear-gradient(180deg, rgba(232, 237, 244, 0.2), rgba(232, 237, 244, 0.68) 65%, #e9edf3 100%),
                radial-gradient(ellipse at 50% 5%, rgba(255, 255, 255, 0.55), transparent 60%);
        }

        body[data-theme="light"] .page-background {
            filter: saturate(0.5) brightness(0.85);
        }

        body[data-theme="light"] .card,
        body[data-theme="light"] .profile-header {
            border-color: rgba(28, 35, 48, 0.12);
            background-color: rgba(248, 250, 253, 0.82);
            box-shadow: 0 18px 50px rgba(32, 45, 64, 0.12), inset 0 1px rgba(255, 255, 255, 0.9);
        }

        body[data-theme="light"] .profile-header {
            background:
                radial-gradient(ellipse at 82% 55%, rgba(255, 0, 0, 0.12), transparent 38%),
                radial-gradient(ellipse at 95% 0%, rgba(83, 190, 177, 0.13), transparent 32%),
                rgba(248, 250, 253, 0.84);
        }

        body[data-theme="light"] h1 {
            background: linear-gradient(120deg, #17202e 15%, #39475c 68%, #64738a);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        body[data-theme="light"] .status-badge {
            border-color: rgba(28, 35, 48, 0.12);
            color: #283448;
            background: rgba(255, 255, 255, 0.58);
        }

        body[data-theme="light"] .section-title,
        body[data-theme="light"] .project-desc,
        body[data-theme="light"] .typing-line {
            color: #596579;
        }

        body[data-theme="light"] .bio-text,
        body[data-theme="light"] .tag,
        body[data-theme="light"] .project-name {
            color: #283448;
        }

        body[data-theme="light"] .tag,
        body[data-theme="light"] .project-box,
        body[data-theme="light"] .system-metric {
            border-color: rgba(28, 35, 48, 0.1);
            background-color: rgba(255, 255, 255, 0.48);
        }

        body[data-theme="light"] a.project-box:hover {
            border-color: rgba(210, 0, 0, 0.28);
            background: rgba(255, 0, 0, 0.075);
        }

        body[data-theme="light"] .scanner-card {
            color: #17202e;
            background:
                radial-gradient(ellipse at 92% 5%, rgba(83, 190, 177, 0.1), transparent 38%),
                rgba(248, 250, 253, 0.84);
        }

        body[data-theme="light"] .scanner-console,
        body[data-theme="light"] .scanner-device {
            border-color: rgba(28, 35, 48, 0.12);
            background: rgba(255, 255, 255, 0.58);
        }

        body[data-theme="light"] .scanner-device-name,
        body[data-theme="light"] .scanner-stat-value {
            color: #202b3b;
        }

        body[data-theme="light"] .theme-toggle,
        body[data-theme="light"] .language-switch {
            border-color: rgba(28, 35, 48, 0.14);
            color: #202b3b;
            background: rgba(248, 250, 253, 0.82);
        }

        body[data-theme="light"] .language-option {
            color: #4a5669;
        }

        body[data-theme="light"] .language-option[aria-pressed="true"] {
            color: #fff;
        }

        @media (max-width: 700px) {
            body {
                padding-top: 90px;
                padding-bottom: 36px;
            }

            .container {
                width: min(100% - 32px, 560px);
                grid-template-columns: minmax(0, 1fr);
                gap: 14px;
            }

            .container > .card:nth-child(n) {
                grid-column: 1;
            }

            .profile-header {
                min-height: 220px;
            }

            .container > .card:not(.profile-header) {
                padding: 24px;
            }

            .project-list {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 520px) {
            .profile-header {
                grid-template-columns: minmax(0, 1fr);
                row-gap: 0;
                min-height: 0;
                padding: 32px 26px;
            }

            .profile-header::before {
                right: -35px;
                width: 150px;
            }

            .brand-badge {
                margin-bottom: 24px;
            }

            h1 {
                font-size: clamp(54px, 16vw, 74px);
            }

            .status-badge {
                grid-column: 1;
                grid-row: auto;
                justify-self: start;
                margin-top: 16px;
                font-size: 11px;
            }

            .typing-line {
                grid-column: 1;
                margin-top: 9px;
            }

            .language-switch {
                top: 14px;
                left: 12px;
            }

            .theme-toggle {
                top: 14px;
                right: 12px;
                padding: 9px 11px;
                font-size: 11px;
            }

            .language-option {
                min-width: 34px;
                padding: 7px;
            }

            .project-list {
                grid-template-columns: minmax(0, 1fr);
            }

            .buttons-group {
                grid-template-columns: minmax(0, 1fr);
            }
        }

        @media (prefers-reduced-motion: reduce) {
            html.js .animated {
                opacity: 1;
            }

            .animated,
            html.js .animated.is-visible {
                animation: none;
            }

            .tag,
            .project-box,
            .system-metric,
            .btn-base {
                transition: none;
            }
        }

        body::after {
            position: fixed;
            z-index: 2;
            inset: 0;
            background-image:
                linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
            background-size: 64px 64px;
            content: "";
            opacity: 0.38;
            pointer-events: none;
            -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
            mask-image: linear-gradient(to bottom, black, transparent 85%);
        }

        .profile-header {
            grid-template-rows: auto auto auto auto;
            min-height: 330px;
            padding: clamp(32px, 4vw, 56px);
        }

        .profile-header::before {
            display: none;
        }

        .profile-header .brand-badge {
            grid-row: 1;
            margin-bottom: 20px;
        }

        .profile-header h1 {
            grid-column: 1;
            grid-row: 2;
        }

        .profile-header .typing-line {
            grid-column: 1;
            grid-row: 3;
        }

        .profile-header .status-badge {
            grid-column: 1;
            grid-row: 4;
            justify-self: start;
            margin-top: 21px;
        }

        .hero-art {
            position: absolute;
            top: 50%;
            right: 12%;
            display: grid;
            width: clamp(190px, 24vw, 260px);
            aspect-ratio: 1;
            justify-self: center;
            place-items: center;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            background:
                radial-gradient(circle at 50% 50%, rgba(255, 0, 0, 0.13), transparent 57%),
                linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.005));
            box-shadow: inset 0 0 60px rgba(255, 0, 0, 0.06), 0 0 70px rgba(255, 0, 0, 0.07);
            pointer-events: none;
            transform: translateY(-45%);
        }

        .hero-art::before,
        .hero-art::after {
            position: absolute;
            border-radius: 50%;
            content: "";
            pointer-events: none;
        }

        .hero-art::before {
            inset: 12%;
            background: conic-gradient(
                from 0deg,
                transparent 0deg 230deg,
                rgba(83, 230, 210, 0.08) 260deg,
                rgba(83, 230, 210, 0.95) 316deg,
                rgba(221, 255, 250, 1) 330deg,
                rgba(83, 230, 210, 0.12) 346deg,
                transparent 360deg
            );
            -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
            animation: hero-orbit 7s linear infinite;
        }

        .hero-art::after {
            inset: 25%;
            background: conic-gradient(
                from 35deg,
                rgba(255, 255, 255, 0.8) 0deg 3deg,
                transparent 3deg 48deg,
                rgba(255, 0, 0, 0.95) 48deg 52deg,
                transparent 52deg 142deg,
                rgba(255, 255, 255, 0.55) 142deg 145deg,
                transparent 145deg 248deg,
                rgba(83, 230, 210, 0.8) 248deg 252deg,
                transparent 252deg 360deg
            );
            -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 0.75px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 0.75px));
            animation: hero-orbit 11s linear infinite reverse;
        }

        @keyframes hero-orbit {
            to { transform: rotate(360deg); }
        }

        .hero-core {
            display: grid;
            width: 35%;
            aspect-ratio: 1;
            place-items: center;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 30%;
            color: #fff;
            background: linear-gradient(145deg, rgba(255, 0, 0, 0.94), rgba(115, 0, 0, 0.94));
            box-shadow: 0 0 38px rgba(255, 0, 0, 0.32), inset 0 1px rgba(255, 255, 255, 0.45);
            font-size: clamp(34px, 5vw, 52px);
            font-weight: 850;
            letter-spacing: -0.1em;
            text-indent: -0.08em;
            transform: rotate(-8deg);
            animation: logo-float 3.2s ease-in-out infinite;
            will-change: transform, box-shadow;
        }

        @keyframes logo-float {
            0%, 100% {
                transform: translateY(0) rotate(-8deg) scale(1);
                box-shadow: 0 0 30px rgba(255, 0, 0, 0.26), inset 0 1px rgba(255, 255, 255, 0.4);
            }

            50% {
                transform: translateY(-9px) rotate(4deg) scale(1.08);
                box-shadow: 0 0 48px rgba(255, 0, 0, 0.55), 0 0 70px rgba(255, 0, 0, 0.16), inset 0 1px rgba(255, 255, 255, 0.55);
            }
        }

        .hero-signal {
            position: absolute;
            top: 17%;
            right: 23%;
            z-index: 1;
            width: 9px;
            aspect-ratio: 1;
            border: 2px solid #10131a;
            border-radius: 50%;
            background: #64f3d9;
            box-shadow: 0 0 18px rgba(83, 230, 210, 0.9);
            animation: signal-pulse 2.4s ease-in-out infinite;
        }

        @keyframes signal-pulse {
            50% { box-shadow: 0 0 28px 7px rgba(83, 230, 210, 0.24); }
        }

        .hero-coordinate {
            position: absolute;
            bottom: 13%;
            color: rgba(226, 232, 241, 0.6);
            font-family: Consolas, "Courier New", monospace;
            font-size: 8px;
            letter-spacing: 0.2em;
        }

        .hero-actions {
            display: flex;
            grid-column: 1 / -1;
            grid-row: 5;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 25px;
        }

        .hero-action {
            display: inline-flex;
            min-height: 42px;
            align-items: center;
            justify-content: center;
            gap: 10px;
            border: 1px solid rgba(255, 255, 255, 0.13);
            border-radius: 999px;
            padding: 0 17px;
            color: #edf0f7;
            background: rgba(255, 255, 255, 0.045);
            font-size: 12px;
            font-weight: 700;
            text-decoration: none;
            transition: border-color 0.25s ease, background 0.25s ease, translate 0.25s ease, box-shadow 0.25s ease;
        }

        .hero-action::after {
            color: #ff0000;
            content: "↗";
            font-size: 14px;
        }

        .hero-action-primary {
            border-color: rgba(255, 0, 0, 0.42);
            color: #fff;
            background: linear-gradient(120deg, #ff0000, #d00000);
            box-shadow: 0 0 12px rgba(255, 0, 0, 0.72), 0 8px 30px rgba(255, 0, 0, 0.48), inset 0 1px rgba(255, 255, 255, 0.3);
        }

        .hero-action-primary::after {
            color: #fff;
        }

        .hero-action:hover {
            border-color: rgba(255, 255, 255, 0.3);
            background-color: rgba(255, 255, 255, 0.09);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
            translate: 0 -2px;
        }

        .hero-action-primary:hover {
            border-color: rgba(255, 255, 255, 0.44);
            background: linear-gradient(120deg, #ff0000, #cc0000);
        }

        .section-heading {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            margin-bottom: 19px;
        }

        .section-heading .section-title {
            margin-bottom: 0;
        }

        .section-kicker {
            border: 1px solid rgba(255, 255, 255, 0.09);
            border-radius: 999px;
            padding: 6px 9px;
            color: #a7b0bf;
            background: rgba(255, 255, 255, 0.035);
            font-family: Consolas, "Courier New", monospace;
            font-size: 9px;
            letter-spacing: 0.08em;
            white-space: nowrap;
        }

        .project-box {
            --project-accent: #ff0000;
            display: grid;
            grid-template-rows: auto 1fr;
            align-items: stretch;
            gap: 15px;
            min-height: 0;
            padding: 10px 10px 17px;
            border-left: 2px solid var(--project-accent);
            background: rgba(255, 255, 255, 0.025);
        }

        .project-list {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .project-preview {
            position: relative;
            display: block;
            overflow: hidden;
            width: 100%;
            aspect-ratio: 16 / 9;
            border: 1px solid rgba(255, 255, 255, 0.09);
            border-radius: 11px;
            background: #0c1116;
        }

        .project-preview::after {
            position: absolute;
            inset: 45% 0 0;
            background: linear-gradient(180deg, transparent, rgba(5, 8, 12, 0.22));
            content: "";
            pointer-events: none;
        }

        .project-preview img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.55s cubic-bezier(0.2, 0.75, 0.25, 1), filter 0.35s ease;
        }

        a.project-box:hover .project-preview img {
            filter: saturate(1.12);
            transform: scale(1.045);
        }

        .project-copy {
            min-width: 0;
            padding: 0 38px 0 5px;
        }

        .project-box .project-link-icon {
            position: absolute;
            right: 15px;
            bottom: 17px;
        }

        .project-box:nth-child(2) { --project-accent: #ff0000; }
        .project-box:nth-child(3) { --project-accent: #ff0808; }
        .project-box:nth-child(4) { --project-accent: #cc0000; }
        .project-box:nth-child(5) { --project-accent: #ff1a00; }
        .project-box:nth-child(6) { --project-accent: #ff0000; }

        .project-link-icon {
            border-color: color-mix(in srgb, var(--project-accent) 28%, transparent);
            color: var(--project-accent);
            background: color-mix(in srgb, var(--project-accent) 10%, transparent);
        }

        .card:not(.profile-header):not(.scanner-card) {
            background-image:
                radial-gradient(280px circle at var(--pointer-x, 50%) var(--pointer-y, 0%), rgba(255, 255, 255, 0.055), transparent 80%),
                linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 46%);
        }

        .scanner-card {
            background-image:
                radial-gradient(ellipse at 92% 0%, rgba(83, 230, 210, 0.12), transparent 42%),
                linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 46%);
        }

        .profile-header {
            background-image:
                radial-gradient(ellipse at 82% 55%, rgba(255, 0, 0, 0.16), transparent 38%),
                radial-gradient(ellipse at 95% 0%, rgba(83, 230, 210, 0.11), transparent 32%),
                linear-gradient(135deg, rgba(22, 26, 36, 0.9), rgba(10, 13, 19, 0.78));
        }

        .card:focus-within {
            border-color: rgba(255, 130, 147, 0.42);
            box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.08), 0 22px 60px rgba(0, 0, 0, 0.3);
        }

        .hero-action:focus-visible {
            outline: 2px solid #ff0000;
            outline-offset: 4px;
        }

        body[data-theme="light"]::after {
            background-image:
                linear-gradient(rgba(28, 35, 48, 0.035) 1px, transparent 1px),
                linear-gradient(90deg, rgba(28, 35, 48, 0.035) 1px, transparent 1px);
        }

        body[data-theme="light"] .hero-art {
            border-color: rgba(28, 35, 48, 0.1);
            background:
                radial-gradient(circle at 50% 50%, rgba(255, 0, 0, 0.13), transparent 57%),
                linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.12));
        }

        body[data-theme="light"] .hero-coordinate,
        body[data-theme="light"] .section-kicker {
            color: #667185;
        }

        body[data-theme="light"] .hero-action:not(.hero-action-primary) {
            border-color: rgba(28, 35, 48, 0.14);
            color: #283448;
            background: rgba(255, 255, 255, 0.48);
        }

        body[data-theme="light"] .section-kicker {
            border-color: rgba(28, 35, 48, 0.1);
            background: rgba(255, 255, 255, 0.45);
        }

        @media (max-width: 700px) {
            .profile-header {
                min-height: 300px;
            }

            .hero-art {
                width: clamp(155px, 34vw, 210px);
            }
        }

        @media (max-width: 520px) {
            .profile-header {
                grid-template-columns: minmax(0, 1fr);
                grid-template-rows: auto auto auto auto auto;
                min-height: 0;
                padding: 30px 26px;
            }

            .profile-header .brand-badge {
                grid-column: 1;
                grid-row: 1;
                margin-bottom: 23px;
            }

            .profile-header h1 {
                grid-row: 2;
            }

            .profile-header .typing-line {
                grid-row: 3;
            }

            .profile-header .status-badge {
                grid-row: 4;
                margin-top: 16px;
            }

            .hero-art {
                position: absolute;
                top: 50%;
                right: -54px;
                grid-column: auto;
                grid-row: auto;
                width: 165px;
                opacity: 0.55;
                transform: translateY(-45%);
            }

            .hero-actions {
                grid-column: 1;
                grid-row: 5;
                gap: 8px;
                margin-top: 20px;
            }

            .hero-action {
                min-height: 40px;
                padding-inline: 13px;
                font-size: 11px;
            }

            .section-heading {
                align-items: flex-start;
            }

            .section-kicker {
                padding: 6px 7px;
                font-size: 8px;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .hero-core {
                animation: none;
            }

            .hero-art::before,
            .hero-art::after,
            .hero-signal {
                animation: none;
            }
        }

        @media (max-width: 700px) {
            .project-list {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 520px) {
            .project-list {
                grid-template-columns: minmax(0, 1fr);
            }
        }

        .site-nav {
            position: fixed;
            top: 20px;
            left: 50%;
            z-index: 20;
            display: flex;
            gap: 4px;
            border: 1px solid rgba(255, 255, 255, 0.13);
            border-radius: 999px;
            padding: 5px;
            background: rgba(12, 15, 21, 0.82);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.07);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            transform: translateX(-50%);
        }

        html {
            scroll-padding-top: 110px;
        }

        .site-nav a {
            border-radius: 999px;
            padding: 9px 13px;
            color: #c4cad5;
            font-size: 11px;
            font-weight: 700;
            text-decoration: none;
            transition: color 0.2s ease, background 0.2s ease;
        }

        .site-nav a:hover,
        .site-nav a[aria-current="location"] {
            color: #fff;
            background: rgba(255, 0, 0, 0.2);
        }

        .site-nav a:focus-visible,
        .site-footer a:focus-visible {
            outline: 2px solid var(--accent-color);
            outline-offset: 3px;
        }

        .site-footer {
            width: min(1080px, calc(100% - 48px));
            margin: 24px auto 0;
            color: #a4adbd;
            font-size: 12px;
            text-align: center;
        }

        .site-footer a {
            margin-inline: 8px;
            color: inherit;
            text-decoration-color: rgba(164, 173, 189, 0.45);
            text-underline-offset: 3px;
        }

        .contact-note {
            margin: 0 0 18px;
            color: var(--text-muted);
            font-size: 14px;
            line-height: 1.6;
        }

        .skill-tag {
            display: inline-flex;
            flex-direction: column;
            gap: 3px;
        }

        .skill-level {
            color: var(--text-muted);
            font-size: 10px;
        }

        body[data-theme="light"] {
            --accent-color: #e00000;
            --accent-glow: rgba(255, 0, 0, 0.3);
            --vaults-color: #007f78;
            --vaults-glow: rgba(0, 127, 120, 0.12);
            background: #e8edf5;
        }

        body[data-theme="light"]::before {
            background:
                radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.96), transparent 58%),
                linear-gradient(180deg, rgba(235, 240, 248, 0.75), #e8edf5 75%);
        }

        body[data-theme="light"]::after {
            opacity: 0.08;
        }

        body[data-theme="light"] .page-background {
            opacity: 0.08;
            filter: saturate(0.35) brightness(1.05);
        }

        body[data-theme="light"] .card,
        body[data-theme="light"] .profile-header {
            border-color: rgba(38, 51, 72, 0.13);
            background-color: rgba(255, 255, 255, 0.91);
            box-shadow: 0 18px 48px rgba(39, 54, 78, 0.13), inset 0 1px rgba(255, 255, 255, 0.98);
        }

        body[data-theme="light"] .card:hover {
            border-color: rgba(38, 51, 72, 0.21);
            box-shadow: 0 24px 58px rgba(39, 54, 78, 0.18), inset 0 1px rgba(255, 255, 255, 0.98);
        }

        body[data-theme="light"] .site-nav {
            border-color: rgba(38, 51, 72, 0.14);
            background: rgba(255, 255, 255, 0.93);
            box-shadow: 0 8px 28px rgba(39, 54, 78, 0.14);
        }

        body[data-theme="light"] .site-nav a {
            color: #3e4b60;
        }

        body[data-theme="light"] .site-nav a:hover,
        body[data-theme="light"] .site-nav a[aria-current="location"] {
            color: #fff;
            background: #e00000;
            box-shadow: 0 0 16px rgba(255, 0, 0, 0.32);
        }

        body[data-theme="light"] .site-footer,
        body[data-theme="light"] .contact-note,
        body[data-theme="light"] .skill-level {
            color: #4a576b;
        }

        body[data-theme="light"] .tag,
        body[data-theme="light"] .project-box {
            border-color: rgba(38, 51, 72, 0.14);
            background-color: #fff;
        }

        body[data-theme="light"] .tag,
        body[data-theme="light"] .project-name,
        body[data-theme="light"] .bio-text {
            color: #202c3d;
        }

        body[data-theme="light"] .project-desc,
        body[data-theme="light"] .section-title,
        body[data-theme="light"] .typing-line {
            color: #46546a;
        }

        a.project-box {
            transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, translate 0.25s ease;
        }

        a.project-box:hover {
            border-color: rgba(255, 0, 0, 0.55);
            background: rgba(255, 0, 0, 0.1);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2), 0 0 28px rgba(255, 0, 0, 0.4);
            translate: 0 -4px;
        }

        @media (max-width: 700px) {
            html {
                scroll-padding-top: 126px;
            }

            body {
                padding-top: 126px;
                padding-bottom: 28px;
            }

            .site-nav {
                top: 68px;
                width: max-content;
                max-width: calc(100% - 24px);
            }

            .site-nav a {
                padding: 8px 11px;
                font-size: 10px;
            }

            .container {
                gap: 12px;
            }

            .card {
                padding: 22px;
                border-radius: 20px;
            }

            .profile-header {
                min-height: 0;
                padding: 28px 22px;
            }

            .profile-header .brand-badge {
                margin-bottom: 14px;
            }

            .hero-actions {
                margin-top: 16px;
            }

            .site-footer {
                width: calc(100% - 32px);
                margin-top: 18px;
            }
        }

        @media (max-width: 380px) {
            .site-nav {
                gap: 0;
                padding: 4px;
            }

            .site-nav a {
                padding-inline: 8px;
                font-size: 9px;
            }

            .card {
                padding: 18px;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            a.project-box {
                transition: none;
            }
        }

        html.js .container > .card:nth-child(1) { animation-delay: 0.1s; }
        html.js .container > .card:nth-child(2) { animation-delay: 0.2s; }
        html.js .container > .card:nth-child(3) { animation-delay: 0.3s; }
        html.js .container > .card:nth-child(4) { animation-delay: 0.4s; }
        html.js .container > .card:nth-child(5) { animation-delay: 0.5s; }
        html.js .container > .card:nth-child(6) { animation-delay: 0.6s; }
        html.js .container > .card:nth-child(7) { animation-delay: 0.7s; }
        html.js .container > .card:nth-child(8) { animation-delay: 0.8s; }

        .metric-ring-cpu {
            --metric-value: 36;
            --metric-color: #ff0000;
        }

        .metric-ring-ram {
            --metric-value: 58;
            --metric-color: #00c8b0;
        }

        .metric-ring-temperature {
            --metric-value: 44;
            --metric-color: #a479ff;
        }

        h2.section-title {
            margin-top: 0;
        }
