:root {
    --bg: #0a0a0a;
    --card-bg: rgba(15, 15, 15, 0.6);
    --accent: #00ff66;
    --accent2: #00cc44;
    --accent-dim: rgba(0, 255, 102, 0.07);
    --accent-glow: rgba(0, 255, 102, 0.22);
    --font-en: 'Space Mono', monospace;
    --font-ru: 'Exo 2', sans-serif;
}

html,
body,
* {
    cursor: none !important;
}

@media (hover: none) and (pointer: coarse) {
    html,
    body,
    * {
        cursor: auto !important;
    }

    .cursor,
    .cursor-ring {
        display: none !important;
    }
}

body {
    background: var(--bg);
    color: #c8c8c8;
    font-family: var(--font-ru);
    min-height: 100vh;
    overflow-x: hidden;
}

body.lang-en {
    font-family: var(--font-en);
}

.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent-glow);
    transform: translate(-50%, -50%);
    transition: width 0.15s ease, height 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease, transform 0.1s ease;
    opacity: 0;
    visibility: hidden;
    will-change: left, top, width, height, transform;
}

.cursor.cursor-visible {
    opacity: 1;
    visibility: visible;
}

.cursor.cursor-hover {
    width: 14px;
    height: 14px;
    box-shadow: 0 0 14px var(--accent), 0 0 26px var(--accent-glow);
}

.cursor.cursor-active {
    width: 6px;
    height: 6px;
    transform: translate(-50%, -50%) scale(0.8);
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 1.5px solid rgba(0, 255, 102, 0.45);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, opacity 0.25s ease;
    opacity: 0;
    visibility: hidden;
    will-change: left, top, width, height;
}

.cursor-ring.cursor-visible {
    opacity: 1;
    visibility: visible;
}

.cursor-ring.cursor-hover {
    width: 48px;
    height: 48px;
    border-color: rgba(0, 255, 102, 0.7);
    background: rgba(0, 255, 102, 0.08);
}

#bg-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.75;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.012) 2px,
            rgba(255, 255, 255, 0.012) 4px);
    pointer-events: none;
    z-index: 9990;
}

.scanline-sweep {
    position: fixed;
    top: -6px;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(transparent, rgba(0, 255, 102, 0.18), transparent);
    pointer-events: none;
    z-index: 9989;
    opacity: 0;
}

.scanline-sweep.running {
    animation: scanSweep 4s linear forwards;
}

@keyframes scanSweep {
    0% {
        top: -6px;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        top: 100vh;
        opacity: 0;
    }
}

.hero-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.hero-controls {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 78px;
}

.nav-back {
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    letter-spacing: 0.2em;
    color: #444;
    border: 1px solid #1e1e1e;
    padding: 4px 10px;
    background: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.nav-back::before {
    content: '←';
    font-size: 13px;
    transition: transform 0.2s;
    position: relative;
    z-index: 1;
}

.nav-back::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: skewX(-25deg);
    z-index: -1;
    transition: none;
}

.nav-back:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.2);
}

.nav-back:hover::before {
    transform: translateX(-4px);
}

.nav-back:hover::after {
    left: 150%;
    transition: left 0.5s ease;
}


.lang-btns {
    display: flex;
    gap: 6px;
}

.lang-btns .lang-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn {
    font-family: var(--font-en);
    font-size: 9px;
    border: 1px solid #1e1e1e;
    padding: 4px 10px;
    background: transparent;
    color: #444;
    letter-spacing: 0.1em;
    transition: color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: skewX(-25deg);
    z-index: -1;
    transition: none;
}

.lang-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.2);
}

.lang-btn:hover::before {
    left: 150%;
    transition: left 0.5s ease;
}

.lang-btn.active {
    color: #000 !important;
    border-color: var(--accent) !important;
    background: var(--accent) !important;
}

main {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.hero {
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: slideUp 0.6s 0.1s ease-out forwards;
}

.hero-tag {
    font-size: 9px;
    font-family: 'Orbitron', sans-serif;
    color: var(--accent);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;
}

.hero-tag::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--accent);
}

.hero-name-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.globe-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 380px;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.95;
    transition: opacity 0.5s ease;
}

.globe-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
    outline: none;
    pointer-events: auto;
}

@media (max-width: 480px) {
    .globe-wrapper {
        width: 300px;
        height: 300px;
    }
}

.hero-name {
    position: relative;
    z-index: 2;
    font-family: 'Russo One', sans-serif;
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 400;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1;
    text-shadow: 0 0 40px rgba(0, 255, 102, 0.06);
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
}

.hero-name.glitching {
    animation: glitch 0.35s steps(1) forwards;
}

@keyframes glitch {
    0% {
        text-shadow: none;
        transform: none;
    }

    10% {
        text-shadow: -3px 0 #ff00cc, 3px 0 #00ffff;
        transform: skewX(-4deg);
    }

    20% {
        text-shadow: 3px 0 #ff00cc, -3px 0 #00ffff;
        transform: skewX(3deg) translateX(2px);
    }

    30% {
        text-shadow: -2px 0 #00ff66, 2px 0 #00ffff;
        transform: none;
        clip-path: inset(30% 0 40% 0);
    }

    40% {
        text-shadow: none;
        clip-path: none;
        transform: translateX(-2px);
    }

    50% {
        text-shadow: 4px 0 #ff00cc, -4px 0 #00ff66;
        transform: skewX(2deg);
    }

    60% {
        text-shadow: none;
        transform: none;
    }

    70% {
        text-shadow: -2px 0 #00ffff;
        transform: translateX(1px) skewX(-2deg);
    }

    85% {
        text-shadow: none;
        transform: none;
    }

    100% {
        text-shadow: 0 0 40px rgba(0, 255, 102, 0.06);
        transform: none;
    }
}

.hero-name span.acc {
    color: var(--accent);
}

.hero-role {
    font-size: 11px;
    color: rgb(calc(85 + 135 * var(--proximity-glow, 0)), calc(85 + 135 * var(--proximity-glow, 0)), calc(85 + 135 * var(--proximity-glow, 0)));
    line-height: 2;
    font-family: var(--font-en);
    transition: color 0.15s ease;
}

.hero-role strong {
    color: rgb(calc(136 + 119 * var(--proximity-glow, 0)), calc(136 + 119 * var(--proximity-glow, 0)), calc(136 + 119 * var(--proximity-glow, 0)));
    font-weight: 500;
    transition: color 0.15s ease;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #151515;
    border: 1px solid #151515;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: slideUp 0.6s 0.22s ease-out forwards;
}

.stat {
    background: var(--card-bg);
    padding: 1.25rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}

.stat:hover {
    background: #121212;
}

.stat::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    transform: scaleX(0);
    transition: transform 0.35s;
}

.stat:hover::after {
    transform: scaleX(1);
}

.stat-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 0 14px var(--accent-glow);
    transition: text-shadow 0.3s;
}

.stat-label {
    font-size: 8px;
    color: rgb(calc(68 + 102 * var(--proximity-glow, 0)), calc(68 + 102 * var(--proximity-glow, 0)), calc(68 + 102 * var(--proximity-glow, 0)));
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: var(--font-en);
    transition: color 0.15s ease;
}

.stat:hover .stat-num {
    text-shadow: 0 0 20px var(--accent-glow);
}

.stat-status .stat-num {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.free {
    background: var(--accent);
    box-shadow: 0 0 7px var(--accent);
    animation: pulse-g 2s ease-in-out infinite;
}

.status-dot.hired {
    background: #f59e0b;
    box-shadow: 0 0 7px rgba(245, 158, 11, 0.6);
}

.status-dot.rest {
    background: #ef4444;
    box-shadow: 0 0 7px rgba(239, 68, 68, 0.5);
}

@keyframes pulse-g {

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

    50% {
        box-shadow: 0 0 0 5px rgba(0, 255, 102, 0);
    }
}

.section {
    margin-bottom: 1.5rem;
    border: 1px solid #161616;
    background: var(--card-bg);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease, border-color 0.3s;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section:hover {
    border-color: #1e1e1e;
}

.section-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), var(--accent2), transparent);
    animation: barBreathe 3s ease-in-out infinite alternate;
}

@keyframes barBreathe {
    from {
        opacity: 0.5;
        filter: none;
    }

    to {
        opacity: 1;
        filter: drop-shadow(0 0 10px var(--accent)) brightness(1.4);
    }
}

.section-inner {
    padding: 1.5rem 1.5rem 1.5rem 2rem;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgb(calc(68 + 187 * var(--proximity-glow, 0)), calc(68 + 187 * var(--proximity-glow, 0)), calc(68 + 187 * var(--proximity-glow, 0)));
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: color 0.15s ease;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #1a1a1a, transparent);
}

.section-text {
    font-size: 12px;
    color: rgb(calc(85 + 135 * var(--proximity-glow, 0)), calc(85 + 135 * var(--proximity-glow, 0)), calc(85 + 135 * var(--proximity-glow, 0)));
    line-height: 1.85;
    transition: color 0.15s ease;
}

.section-text+.section-text {
    margin-top: 0.75rem;
}

.section-text strong {
    color: rgb(calc(136 + 119 * var(--proximity-glow, 0)), calc(136 + 119 * var(--proximity-glow, 0)), calc(136 + 119 * var(--proximity-glow, 0)));
    font-weight: 500;
    transition: color 0.15s ease;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-group {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    align-items: center;
}

.skill-cat {
    font-family: var(--font-en);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgb(calc(68 + 187 * var(--proximity-glow, 0)), calc(68 + 187 * var(--proximity-glow, 0)), calc(68 + 187 * var(--proximity-glow, 0)));
    transition: color 0.15s ease;
    display: block;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-tag {
    font-size: 9px;
    padding: 4px 10px;
    border: 1px solid rgb(calc(28 + 22 * var(--proximity-glow, 0)), calc(28 + 22 * var(--proximity-glow, 0)), calc(28 + 22 * var(--proximity-glow, 0)));
    color: rgb(calc(100 + 120 * var(--proximity-glow, 0)), calc(100 + 120 * var(--proximity-glow, 0)), calc(100 + 120 * var(--proximity-glow, 0)));
    letter-spacing: 0.08em;
    font-family: var(--font-en);
    background: rgba(14, 14, 14, 0.45);
    transition: color 0.15s ease, border-color 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.skill-tag:hover {
    color: var(--accent) !important;
    border-color: var(--accent) !important;
    background: rgba(0, 255, 102, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.22);
}

.sweep-btn {
    position: relative;
    overflow: hidden;
}

.sweep-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(115deg, transparent, var(--accent), transparent);
    transform: translateX(0);
    z-index: 0;
    transition: none;
    will-change: transform;
}

.sweep-btn:hover::before {
    transform: translateX(200%);
    transition: transform 0.5s ease;
}

.stat-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hire-wrap {
    text-align: center;
    margin-top: 3rem;
    opacity: 0;
    animation: slideUp 0.6s 0.85s ease-out forwards;
}

.hire-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: color 0.3s, box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}

.hire-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: skewX(-25deg);
    z-index: 0;
    transition: none;
}

.hire-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: scale(1.05);
}

.hire-btn:hover::before {
    left: 150%;
    transition: left 0.5s ease;
}

.hire-btn span,
.hire-btn .arrow {
    position: relative;
    z-index: 1;
}

.hire-btn .arrow {
    transition: transform 0.3s;
}

.hire-btn:hover .arrow {
    transform: translateX(4px);
}

.status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 8px;
    color: #333;
    letter-spacing: 0.2em;
}

.status-bar span {
    color: rgb(calc(55 + 135 * var(--proximity-glow, 0)), calc(55 + 135 * var(--proximity-glow, 0)), calc(55 + 135 * var(--proximity-glow, 0)));
    transition: color 0.15s ease;
}

.status-bar-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-g 2s ease-in-out infinite;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

::selection {
    background: rgba(0, 255, 102, 0.25);
    color: #fff;
}

@media (max-width: 520px) {
    .skill-group {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

.btn-link,
.lang-btn,
.bio-toggle,
.nav-back,
.hire-btn,
.banner-btn,
.skill-tag {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}