@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/MaterialSymbolsOutlined.woff2') format('woff2'),
         url('https://fonts.gstatic.com/s/materialsymbolsoutlined/v361/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzByHX9rA6RzaxHMPdY43zj-jCxv3fzvRNU22ZXGJpEpjC_1v-p_4MrImHCIJIZrDCvHOej.woff2') format('woff2');
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', Arial, sans-serif;
    background-color: #f5f0eb;
    overflow-x: hidden;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem 0;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
    background-image:
        radial-gradient(ellipse 800px 500px at 30% 45%, rgba(228, 181, 146, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 500px 700px at 70% 55%, rgba(228, 181, 146, 0.04) 0%, transparent 60%);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: -1;
}

.hero-ghost {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero-text {
    text-align: center;
    z-index: 1;
    pointer-events: none;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.hero-text h1 {
    color: #fff3ea;
    font-size: 6.75rem;
    margin: 0;
    background-image: radial-gradient(
        circle at var(--mx, 50%) var(--my, 50%),
        #fff3ea 0%, #fff3ea 40%,
        #e4b592 75%,
        rgba(228, 181, 146, 0.15) 95%
    );
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
    .hero-text h1 {
        background-image: none;
        -webkit-text-fill-color: unset;
    }
}

.hero-text .title {
    color: #a1a1aa;
}

.ghost-skill {
    position: absolute;
    color: #fff3ea;
    opacity: 0;
    mix-blend-mode: screen;
    animation: ghostFloat cubic-bezier(0.61, 1, 0.88, 1) infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ghost-skill-icon {
    display: block;
    line-height: 1;
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 20;
}

@keyframes ghostFloat {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    10% {
        opacity: var(--ghost-opacity, 0.04);
    }
    30% {
        opacity: var(--ghost-opacity, 0.06);
        transform: translateY(-10px) scale(1);
    }
    50% {
        opacity: var(--ghost-opacity, 0.04);
        transform: translateY(0) scale(1.02);
    }
    70% {
        opacity: var(--ghost-opacity, 0.05);
        transform: translateY(-15px) scale(1);
    }
    90% {
        opacity: var(--ghost-opacity, 0.03);
    }
    100% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
}

.hero-blur {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    -webkit-mask: radial-gradient(
        circle 200px at var(--mx, 50%) var(--my, 50%),
        transparent 0%, black 100%
    );
    mask: radial-gradient(
        circle 200px at var(--mx, 50%) var(--my, 50%),
        transparent 0%, black 100%
    );
    pointer-events: none;
    z-index: -1;
}

@media (prefers-reduced-motion: reduce) {
    .hero-blur {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .ghost-skill {
        display: none;
    }
}

.content-body {
    background: repeating-linear-gradient(
        0deg,
        #f0e8e0 0px, #f0e8e0 1px,
        transparent 1px, transparent 40px
    ),
    repeating-linear-gradient(
        90deg,
        #f0e8e0 0px, #f0e8e0 1px,
        transparent 1px, transparent 40px
    );
    padding: 4rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: #2a241f;
    letter-spacing: -0.03em;
}

.title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #71717a;
    margin: 0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    min-height: 2rem;
}

.hero-text .title {
    color: #a1a1aa;
}

.cursor {
    animation: blink 0.7s steps(1) infinite;
    color: #71717a;
}

.hero-text .cursor {
    color: #888;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.terminal-header .current-time {
    margin-left: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: #52525b;
    padding-right: 4px;
}

.social-links {
    display: flex;
    gap: 0;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.5rem;
}

.hero .social-links {
    margin-top: 0;
    margin-bottom: 0;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #a1a1aa;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.35s cubic-bezier(0.61, 1, 0.88, 1);
    position: relative;
    overflow: hidden;
}

.social-link:not(.theme-toggle):hover {
    width: 140px;
    border-radius: 24px;
}

.social-label {
    white-space: nowrap;
    font-size: 0.85rem;
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    margin-left: 0;
    transition: max-width 0.35s cubic-bezier(0.61, 1, 0.88, 1),
                opacity 0.25s 0.05s cubic-bezier(0.61, 1, 0.88, 1),
                margin-left 0.35s cubic-bezier(0.61, 1, 0.88, 1);
    pointer-events: none;
}

.social-link:not(.theme-toggle):hover .social-label {
    max-width: 120px;
    opacity: 1;
    margin-left: 8px;
}

.social-link:not(.theme-toggle):hover svg {
    transform: translateX(-4px);
}

.hero .social-link {
    color: #666;
}

.hero .social-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

.theme-toggle {
    cursor: pointer;
    border: none;
    font-size: 0;
    background: none;
}

.theme-toggle:focus-visible {
    outline: 2px solid #e4b592;
    outline-offset: 2px;
}

.theme-icon-sun,
.theme-icon-moon {
    position: absolute;
    transition: opacity 0.3s cubic-bezier(0.61, 1, 0.88, 1), transform 0.3s cubic-bezier(0.61, 1, 0.88, 1);
}

.theme-icon-moon {
    opacity: 1;
    transform: rotate(0deg);
}

.theme-icon-sun {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="light"] .theme-icon-moon {
    opacity: 0;
    transform: rotate(-90deg);
}

[data-theme="light"] .theme-icon-sun {
    opacity: 1;
    transform: rotate(0deg);
}

.social-link:hover {
    background: #e4e4e7;
}

.social-link svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.61, 1, 0.88, 1);
}

.github-link:hover {
    color: #2a241f;
}

.telegram-link {
    color: #a1a1aa;
}

.telegram-link:hover {
    color: #0088cc;
    background: #e4e4e7;
    box-shadow: 0 0 12px rgba(0, 136, 204, 0.15);
}

.telegram-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.61, 1, 0.88, 1);
}

.telegram-link:hover::after {
    border-color: rgba(0, 136, 204, 0.3);
}

.stats {
    margin-top: 2rem;
    min-height: 120px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.61, 1, 0.88, 1);
    pointer-events: none;
}

.stats.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.stats.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.61, 1, 0.88, 1);
    height: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
}

.loader {
    width: 24px;
    height: 24px;
    border: 2px solid #e4e4e7;
    border-top-color: #e4b592;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.gh-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.61, 1, 0.88, 1);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.gh-card:hover {
    border-color: #d4d4d8;
    background: #fafafa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.gh-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.gh-card-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: block;
}

.gh-card-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.gh-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2a241f;
}

.gh-card-login {
    font-size: 0.875rem;
    color: #a1a1aa;
}

.gh-card-bio {
    font-size: 0.8rem;
    color: #71717a;
    margin-top: 0.25rem;
}

.gh-card-stats {
    font-size: 0.75rem;
    color: #a1a1aa;
    margin-top: 0.25rem;
    display: flex;
    gap: 0.75rem;
}

.langs-container {
    width: 100%;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.61, 1, 0.88, 1) 0.2s;
}

.langs-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.lang-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s cubic-bezier(0.61, 1, 0.88, 1);
}

.lang-row.visible {
    opacity: 1;
    transform: translateX(0);
}

.lang-name {
    width: 70px;
    font-size: 0.875rem;
    color: #52525b;
    text-align: right;
}

.lang-bar {
    flex: 1;
    height: 6px;
    background: #e4e4e7;
    border-radius: 3px;
    overflow: hidden;
}

.lang-fill {
    height: 100%;
    background: linear-gradient(90deg, #e4b592, #d4a87a);
    border-radius: 3px;
}

.lang-percent {
    width: 35px;
    font-size: 0.875rem;
    color: #a1a1aa;
    text-align: right;
}

.error {
    color: #ef4444;
    font-size: 0.875rem;
}

.terminal {
    position: relative;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    width: 100%;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    text-align: left;
    line-height: 1.7;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.61, 1, 0.88, 1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.terminal.show {
    opacity: 1;
    transform: translateY(0);
}

.terminal-header {
    display: flex;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #333;
}

.mac-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f57;
}

.dot-yellow {
    background: #febc2e;
}

.dot-green {
    background: #28c840;
}

.terminal-body {
    color: #fff3ea;
    min-height: 1.7em;
    padding: 1rem 1.2rem;
    -webkit-filter: blur(0.5px);
    filter: blur(0.5px);
}

.terminal-body .prompt {
    color: #e4b592;
}

.terminal-body .arg {
    color: #c0b0a0;
}

.terminal-body .item {
    color: #c0b0a0;
}

.terminal-body .num {
    color: #e4b592;
}

/* cursor styles defined above */

.terminal-hint {
    color: #888;
    font-style: italic;
    margin-bottom: 0.3rem;
}

.terminal-input-line {
    display: flex;
    align-items: center;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: inherit;
    color: #fff3ea;
    caret-color: #e4b592;
    padding: 0;
}

.terminal-input::placeholder {
    color: #555;
}

.terminal-input.done {
    color: #c0b0a0;
}

.terminal-thinking {
    color: #888;
}

.terminal-error {
    color: #ef4444;
    margin-top: 0.5rem;
}

.terminal-answer {
    color: #e4b592;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.terminal-answer.terminal-error {
    color: #ef4444;
}

.terminal-answer-prefix {
    margin-top: 0.5rem;
}

.terminal-cursor {
    color: #e4b592;
}

.terminal-cursor.blink {
    animation: blink 0.7s steps(1) infinite;
}

.fc {
    position: absolute;
    width: 32px;
    height: 32px;
    pointer-events: none;
    opacity: 0.4;
    transition: opacity 0.5s cubic-bezier(0.61, 1, 0.88, 1);
}

.fc-tl { top: -4px; left: -4px; }
.fc-tr { top: -4px; right: -4px; }
.fc-bl { bottom: -4px; left: -4px; }
.fc-br { bottom: -4px; right: -4px; }

.fc path {
    fill: none;
    stroke: #e4b592;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 56;
    stroke-dashoffset: 56;
    transition: stroke-dashoffset 0.5s cubic-bezier(0.61, 1, 0.88, 1);
}

.terminal:hover .fc {
    opacity: 1;
}

.terminal:hover .fc path {
    stroke-dashoffset: 0;
}

.content-row {
    display: flex;
    gap: 1.5rem;
    max-width: 860px;
    width: 100%;
    margin: 0 auto 1.5rem;
    align-items: stretch;
}

.hero .content-row {
    min-height: 0;
    max-width: 1100px;
    margin: 0 auto 1rem;
}

.content-column {
    flex: 1;
    min-width: 0;
}

.hero .content-column {
    display: flex;
    flex-direction: column;
}

.hero .content-column:last-child {
    justify-content: center;
}

.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 0.2rem 0.3rem;
    padding: 0.5rem;
    min-height: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.61, 1, 0.88, 1);
}

.skills-cloud.show {
    opacity: 1;
    transform: translateY(0);
}

.tag {
    font-family: 'Fira Code', monospace;
    color: #2a241f;
    transition: all 0.3s cubic-bezier(0.61, 1, 0.88, 1);
    display: inline-block;
    line-height: 1.3;
    cursor: default;
}

.hero .tag {
    color: #c0b0a0;
}

.tag::before {
    content: "{ ";
    color: #e4b592;
}

.tag::after {
    content: " }";
    color: #e4b592;
}

.tag:hover {
    color: #e4b592;
}

.tag:hover::before,
.tag:hover::after {
    color: #e4b592;
}

.tag-xl {
    font-size: 1.5rem;
    padding: 0.4rem 0.9rem;
}

.tag-lg {
    font-size: 1.35rem;
    padding: 0.35rem 0.8rem;
}

.tag-md {
    font-size: 1.2rem;
    padding: 0.3rem 0.7rem;
}

.tag-sm {
    font-size: 1rem;
    padding: 0.25rem 0.6rem;
}

@media (max-width: 640px) {
    .content-row {
        flex-direction: column;
    }
}

.skills {
    text-shadow: 0 0 8px rgba(228, 181, 146, 0.3);
}

.dot {
    color: #d4d4d8;
    margin: 0 0.35rem;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.portfolio-link:hover {
    color: #e4b592;
    background: #e4e4e7;
}

.hero .telegram-link:hover,
.hero .github-link:hover,
.hero .portfolio-link:hover,
.hero .contact-link:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.hero .telegram-link:hover {
    color: #0088cc;
}

.hero .github-link:hover {
    color: #fff;
}

.hero .portfolio-link:hover {
    color: #e4b592;
}

.hero .telegram-link::after {
    display: none;
}

.hero-timeline {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 0 1.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.61, 1, 0.88, 1);
}

.hero-timeline.show {
    opacity: 1;
    transform: translateY(0);
}

.hero-timeline .tl-line {
    background: #333;
}

.hero-timeline .tl-dot {
    background: #1a1a1a;
    border-color: #555;
}

.hero-timeline .tl-dot:hover {
    border-color: #e4b592;
}

.hero-timeline .tl-dot.active {
    background: #e4b592;
    border-color: #e4b592;
}

.hero-timeline .tl-dot-job {
    border-color: #e4b592;
}

.hero-timeline .tl-dot-job.active {
    background: #e4b592;
    border-color: #e4b592;
    box-shadow: 0 0 0 3px rgba(228, 181, 146, 0.3), 0 0 12px rgba(228, 181, 146, 0.2);
}

.hero-timeline .tl-label-job {
    color: #e4b592;
}

.hero-timeline .tl-label {
    color: #888;
}

.tl-details {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

.portfolio {
    width: 100%;
    max-width: none;
    padding: 0 2rem;
    position: relative;
    margin-top: 0.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.25rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.61, 1, 0.88, 1);
    pointer-events: none;
    box-sizing: border-box;
}

.portfolio::before {
    content: '';
    position: absolute;
    inset: -0.75rem;
    border-radius: 20px;
    background: radial-gradient(
        circle 600px at var(--mx, 50%) var(--my, 50%),
        rgba(228, 181, 146, 0.12) 0%,
        transparent 60%
    );
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 900px) {
    .portfolio {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .portfolio {
        grid-template-columns: 1fr;
    }
}

.portfolio.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.portfolio.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    display: none;
    transition: all 0.3s cubic-bezier(0.61, 1, 0.88, 1);
}

.portfolio-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid #e4e4e7;
    border-left: 3px solid #e4b592;
    border-radius: 12px;
    text-align: left;
    animation: cardFadeIn 0.5s cubic-bezier(0.61, 1, 0.88, 1) forwards;
    opacity: 0;
    transform: translateY(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.61, 1, 0.88, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.portfolio-card:hover {
    border-color: #d4d4d8;
    border-left-color: #d4a87a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

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

.portfolio-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: #e4e4e7;
}

.portfolio-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
}

.portfolio-card-body {
    padding: 1rem 1.25rem 1.25rem;
}

.portfolio-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portfolio-card-title-wrap {
    overflow: hidden;
}

.portfolio-card-title-wrap h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #2a241f;
    line-height: 1.3;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.61, 1, 0.88, 1);
    transition-delay: calc(var(--card-index, 0) * 0.1s + 0.2s);
}

.portfolio-card.show .portfolio-card-title-wrap h3 {
    transform: translateY(0);
}

.portfolio-stars {
    font-size: 0.8rem;
    color: #e4b592;
    white-space: nowrap;
    margin-left: 0.75rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}

.portfolio-tagline {
    margin: 0;
    font-size: 0.95rem;
    color: #a1a1aa;
    line-height: 1.4;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.portfolio-tag {
    font-size: 0.8rem;
    font-family: 'Fira Code', monospace;
    padding: 0.25rem 0.65rem;
    background: #e4e4e7;
    color: #52525b;
    border-radius: 4px;
}

.portfolio-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    line-height: 1;
    border-radius: 3px;
    overflow: hidden;
}

.badge-label {
    padding: 0.25rem 0.45rem;
    background: #e4e4e7;
    color: #52525b;
}

.badge-value {
    padding: 0.25rem 0.45rem;
    background: #e4b592;
    color: #fff;
}

.badge--single {
    padding: 0.25rem 0.55rem;
    background: #e4b592;
    color: #fff;
}

.badge-role {
    padding: 0.4rem 0.85rem;
    background: rgba(228, 181, 146, 0.12);
    color: #e4b592;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.portfolio-divider {
    border: none;
    height: 1px;
    background: #e4e4e7;
    margin: 0;
}

.portfolio-features {
    margin: 0;
    padding: 0;
    list-style: none;
}

.portfolio-features li {
    font-size: 0.95rem;
    color: #52525b;
    padding: 0.15rem 0;
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.5;
}

.portfolio-features li::before {
    content: '\25C6';
    position: absolute;
    left: 0;
    color: #e4b592;
    font-size: 0.7rem;
    top: 0.3rem;
}

.portfolio-links {
    display: flex;
    gap: 0.25rem;
    justify-content: flex-end;
}

.portfolio-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #a1a1aa;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.61, 1, 0.88, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.portfolio-link-icon svg {
    transition: transform 0.3s cubic-bezier(0.61, 1, 0.88, 1);
}

.portfolio-link-icon::after {
    content: '→';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateX(200%);
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.61, 1, 0.88, 1);
    color: #e4b592;
}

.portfolio-link-icon:hover svg {
    transform: translateX(-200%);
}

.portfolio-link-icon:hover::after {
    transform: translate(-50%, -50%) translateX(0);
}

.portfolio-link-icon:hover {
    color: #e4b592;
    background: #f5f0eb;
}

.timeline-track {
    position: relative;
    height: 80px;
    margin: 0 1rem;
}

.tl-line {
    position: absolute;
    top: 38px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e4e4e7;
}

.tl-progress {
    position: absolute;
    top: 38px;
    left: 0;
    height: 2px;
    background: #e4b592;
    transition: width 0.5s cubic-bezier(0.61, 1, 0.88, 1);
}

.tl-dots {
    position: relative;
    height: 100%;
}

.tl-dot {
    position: absolute;
    top: 31px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #d4d4d8;
    cursor: pointer;
    z-index: 2;
    transform: translateX(-50%);
    transition: all 0.3s cubic-bezier(0.61, 1, 0.88, 1);
}

.tl-dot:hover {
    border-color: #e4b592;
    transform: translateX(-50%) scale(1.25);
}

.tl-dot.active {
    background: #e4b592;
    border-color: #e4b592;
    box-shadow: 0 0 0 3px rgba(228, 181, 146, 0.3);
}

.tl-dot-present {
    border-color: #e4b592;
    background: #e4b592;
    box-shadow: 0 0 0 4px rgba(228, 181, 146, 0.2);
}

.tl-dot-present.active {
    box-shadow: 0 0 0 6px rgba(228, 181, 146, 0.35);
}

.tl-label-present {
    font-weight: 600;
}

.tl-label {
    position: absolute;
    top: 54px;
    font-size: 0.65rem;
    color: #a1a1aa;
    transform: translateX(-50%);
    white-space: nowrap;
    font-family: 'Fira Code', monospace;
}

.tl-dot.active + .tl-label {
    color: #e4b592;
}

.tl-details {
    margin-top: 0.25rem;
    min-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.61, 1, 0.88, 1);
}

.tl-details-card {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid #e4e4e7;
    border-left: 3px solid #e4b592;
    border-radius: 12px;
    text-align: left;
}

.tl-details-card--job {
    border-left-color: #d4a87a;
}

.tl-details-card--present {
    border-left-color: #e4b592;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 248, 240, 0.82) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.tl-details-date {
    font-size: 0.8rem;
    color: #a1a1aa;
    font-family: 'Fira Code', monospace;
    margin-bottom: 0.35rem;
}

.tl-details-title {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #2a241f;
}

.tl-details-job-range {
    font-size: 0.8rem;
    color: #a1a1aa;
    font-family: 'Fira Code', monospace;
    margin-bottom: 0.35rem;
}

.tl-details-job-role {
    font-size: 1rem;
    color: #e4b592;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tl-details-desc {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: #71717a;
    line-height: 1.5;
}

.tl-details-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #e4b592;
    text-decoration: none;
    transition: opacity 0.3s cubic-bezier(0.61, 1, 0.88, 1);
}

.tl-details-link:hover {
    opacity: 0.7;
}

.contact {
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.61, 1, 0.88, 1);
    pointer-events: none;
}

.contact.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.contact.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    height: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.61, 1, 0.88, 1);
}

.contact-card {
    max-width: 400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid #e4e4e7;
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(250, 250, 250, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    text-decoration: none;
    color: #27272a;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.61, 1, 0.88, 1);
}

.contact-item:hover {
    background: #f5f0eb;
    color: #e4b592;
}

.contact-item svg {
    flex-shrink: 0;
    color: #a1a1aa;
    transition: color 0.2s ease;
}

.contact-item:hover svg {
    color: #e4b592;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e4e4e7;
    background: #ffffff;
    color: #a1a1aa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.61, 1, 0.88, 1);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    color: #e4b592;
    border-color: #e4b592;
}

@media (max-width: 640px) {
    .timeline-track {
        margin: 0 0.5rem;
        height: 70px;
    }
    .tl-label {
        font-size: 0.55rem;
        top: 48px;
    }
    .tl-dot {
        width: 14px;
        height: 14px;
        top: 26px;
    }
    .tl-dot.active {
        box-shadow: 0 0 0 2px rgba(228, 181, 146, 0.3);
    }
    .tl-details-card {
        padding: 0.75rem 1rem;
    }
    .tl-line, .tl-progress {
        top: 32px;
    }
}

@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 5rem;
    }
    .hero-text .title {
        font-size: 1.25rem;
    }
    .tag-xl { font-size: 1.3rem; padding: 0.35rem 0.7rem; }
    .tag-lg { font-size: 1.2rem; }
    .tag-md { font-size: 1.1rem; }
    .tag-sm { font-size: 0.9rem; }
    .hero .content-row {
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }
    .hero-text .title {
        font-size: 1rem;
        min-height: 1.5rem;
    }
    .hero-text {
        gap: 0.75rem;
    }
    .hero {
        padding: 1.5rem 1rem 0;
    }
    .tag-xl { font-size: 1.1rem; padding: 0.25rem 0.5rem; }
    .tag-lg { font-size: 1rem; }
    .tag-md { font-size: 0.9rem; }
    .tag-sm { font-size: 0.8rem; }
    .social-links {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
}

@media (max-width: 640px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .hero-text .title {
        font-size: 0.8rem;
        min-height: 1.2rem;
    }
    .hero-text {
        gap: 0.5rem;
        flex-direction: column;
        align-items: center;
        margin-bottom: 1rem;
    }
    .hero {
        padding-top: 1.5rem;
    }
}

[data-theme="light"] {
    --accent: #0969da;
    --accent-soft: rgba(9, 105, 218, 0.12);
    --accent-ring: rgba(9, 105, 218, 0.3);
    --border: #d0d7de;
    --bg-card: #ffffff;
    --text-primary: #1F2328;
    --text-secondary: #656d76;
    --text-muted: #8b949e;
    --hero-bg: #ffffff;
    --hero-text: #1F2328;
    --hero-text-subtle: #656d76;
    --hero-grid: rgba(208, 215, 222, 0.3);
    --page-bg: #ffffff;
}

[data-theme="light"] body {
    background-color: var(--page-bg);
}

[data-theme="light"] .hero {
    background: var(--hero-bg);
    background-image:
        radial-gradient(ellipse 800px 500px at 30% 45%, rgba(9, 105, 218, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 500px 700px at 70% 55%, rgba(9, 105, 218, 0.02) 0%, transparent 60%);
}

[data-theme="light"] .hero::after {
    background-image:
        linear-gradient(var(--hero-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
    background-size: 80px 80px;
}

[data-theme="light"] .hero-text h1 {
    color: #1F2328;
    background-image: none;
    -webkit-text-fill-color: unset;
}

[data-theme="light"] .hero-text .title {
    color: var(--hero-text-subtle);
}

[data-theme="light"] .hero-text .cursor {
    color: var(--hero-text-subtle);
}

[data-theme="light"] .hero .social-link {
    color: var(--text-muted);
}

[data-theme="light"] .hero .social-link:hover {
    background: #e8e8eb;
    color: #24292f;
}

[data-theme="light"] .hero .social-label {
    color: var(--text-muted);
}

[data-theme="light"] .hero .social-link:hover .social-label {
    color: #24292f;
}

[data-theme="light"] .hero .telegram-link:hover {
    color: #0088cc;
}

[data-theme="light"] .hero .github-link:hover {
    color: #1F2328;
}

[data-theme="light"] .hero .portfolio-link:hover {
    color: var(--accent);
}

[data-theme="light"] .ghost-skill {
    color: #d0d7de;
    opacity: 0;
    mix-blend-mode: normal;
    --ghost-opacity: 0.18;
}

[data-theme="light"] .hero-blur {
    display: none;
}

[data-theme="light"] .terminal {
    background: #ffffff;
    border-color: var(--border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

[data-theme="light"] .terminal-header {
    background: #f6f8fa;
    border-bottom-color: var(--border);
}

[data-theme="light"] .terminal-header .current-time {
    color: var(--text-muted);
}

[data-theme="light"] .terminal-body {
    color: var(--text-primary);
}

[data-theme="light"] .terminal-body .prompt {
    color: var(--accent);
}

[data-theme="light"] .terminal-body .arg {
    color: var(--text-secondary);
}

[data-theme="light"] .terminal-body .item {
    color: var(--text-secondary);
}

[data-theme="light"] .terminal-body .num {
    color: var(--accent);
}

[data-theme="light"] .terminal-hint {
    color: var(--text-muted);
}

[data-theme="light"] .terminal-input {
    color: var(--text-primary);
    caret-color: var(--accent);
}

[data-theme="light"] .terminal-input::placeholder {
    color: var(--text-muted);
}

[data-theme="light"] .terminal-input.done {
    color: var(--text-secondary);
}

[data-theme="light"] .terminal-thinking {
    color: var(--text-muted);
}

[data-theme="light"] .terminal-answer {
    color: var(--accent);
}

[data-theme="light"] .terminal-cursor {
    background: var(--accent);
}

[data-theme="light"] .fc path {
    stroke: var(--accent);
}

[data-theme="light"] .hero .tag {
    color: var(--accent);
}

[data-theme="light"] .hero-timeline .tl-line {
    background: var(--border);
}

[data-theme="light"] .hero-timeline .tl-dot {
    background: #ffffff;
    border-color: var(--border);
}

[data-theme="light"] .hero-timeline .tl-dot:hover {
    border-color: var(--accent);
}

[data-theme="light"] .hero-timeline .tl-dot.active {
    background: var(--accent);
    border-color: var(--accent);
}

[data-theme="light"] .hero-timeline .tl-dot-job {
    border-color: var(--accent);
    background: #ffffff;
}

[data-theme="light"] .hero-timeline .tl-dot-job.active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-ring), 0 0 12px rgba(9,105,218,0.15);
}

[data-theme="light"] .hero-timeline .tl-label-job {
    color: var(--accent);
}

[data-theme="light"] .hero-timeline .tl-label {
    color: var(--text-muted);
}

[data-theme="light"] .hero-timeline .tl-dot.active + .tl-label {
    color: var(--accent);
}

[data-theme="light"] .content-body {
    background: repeating-linear-gradient(
        0deg,
        #f0f0f0 0px, #f0f0f0 1px,
        transparent 1px, transparent 40px
    ),
    repeating-linear-gradient(
        90deg,
        #f0f0f0 0px, #f0f0f0 1px,
        transparent 1px, transparent 40px
    );
}

[data-theme="light"] .gh-card,
[data-theme="light"] .portfolio-card,
[data-theme="light"] .tl-details-card,
[data-theme="light"] .contact-card {
    background: #ffffff;
    border-color: var(--border);
}

[data-theme="light"] .portfolio-card {
    border-left-color: var(--accent);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

[data-theme="light"] .portfolio-card:hover {
    border-color: var(--border);
    border-left-color: #0550ae;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

[data-theme="light"] .tl-details-card {
    border-left-color: var(--accent);
}

[data-theme="light"] .tl-details-card--present {
    background: #ffffff;
    border-left-color: var(--accent);
}

[data-theme="light"] .contact-item {
    background: #f6f8fa;
}

[data-theme="light"] .contact-item:hover {
    background: #f0f0f0;
    color: var(--accent);
}

[data-theme="light"] .tl-progress {
    background: var(--accent);
}

[data-theme="light"] .tl-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-ring);
}

[data-theme="light"] .tl-dot-present {
    background: var(--accent);
    border-color: var(--accent);
}

[data-theme="light"] .tl-dot-present.active {
    box-shadow: 0 0 0 6px var(--accent-ring);
}

[data-theme="light"] .tl-details-link {
    color: var(--accent);
}

[data-theme="light"] .badge-value,
[data-theme="light"] .badge--single {
    background: var(--accent);
}

[data-theme="light"] .badge-role {
    background: var(--accent-soft);
    color: var(--accent);
}

[data-theme="light"] .portfolio-stars {
    color: var(--accent);
}

[data-theme="light"] .portfolio-link-icon:hover {
    color: var(--accent);
    background: #f0f0f0;
}

[data-theme="light"] .portfolio-link-icon::after {
    color: var(--accent);
}

[data-theme="light"] .back-to-top {
    background: #ffffff;
    border-color: var(--border);
    color: var(--text-muted);
}

[data-theme="light"] .back-to-top:hover {
    color: var(--accent);
    border-color: var(--accent);
}

[data-theme="light"] .lang-fill {
    background: linear-gradient(90deg, var(--accent), #0550ae);
}

[data-theme="light"] .loader {
    border-color: var(--border);
    border-top-color: var(--accent);
}

[data-theme="light"] .portfolio-tag {
    background: #f0f0f0;
    color: var(--text-secondary);
}

[data-theme="light"] .badge-label {
    background: #f0f0f0;
    color: var(--text-secondary);
}

[data-theme="light"] .portfolio-divider {
    background: var(--border);
}

[data-theme="light"] .tl-line {
    background: var(--border);
}

[data-theme="light"] .skills {
    text-shadow: 0 0 8px rgba(9, 105, 218, 0.2);
}

[data-theme="light"] .tag::before,
[data-theme="light"] .tag::after {
    color: var(--accent);
}

[data-theme="light"] .tag:hover {
    color: var(--accent);
}

[data-theme="light"] .tag:hover::before,
[data-theme="light"] .tag:hover::after {
    color: var(--accent);
}

[data-theme="light"] .portfolio-features li::before {
    color: var(--accent);
}
