:root {
    --bg: #0a0a12;
    --sidebar-bg: rgba(14, 14, 22, 0.8);
    --card-bg: rgba(22, 22, 35, 0.6);
    --card-bg-solid: #16161f;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --accent: #e94560;
    --accent-soft: rgba(233, 69, 96, 0.12);
    --accent-border: rgba(233, 69, 96, 0.3);
    --accent-glow: rgba(233, 69, 96, 0.15);
    --purple: #7b2ff7;
    --purple-glow: rgba(123, 47, 247, 0.15);
    --text-primary: #f1f1f5;
    --text-secondary: #8892a4;
    --text-muted: #4e5a6e;
}

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

html {
    scroll-behavior: smooth;
}

html, body {
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-primary);
    background: var(--bg);
    word-break: break-word;
}

.container {
    overflow-x: clip;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse 600px 600px at 20% 20%, rgba(233, 69, 96, 0.06), transparent),
        radial-gradient(ellipse 500px 500px at 80% 80%, rgba(123, 47, 247, 0.06), transparent),
        radial-gradient(ellipse 400px 400px at 60% 30%, rgba(80, 160, 255, 0.03), transparent);
    animation: bgShift 20s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes bgShift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(30px, -20px) rotate(3deg); }
}

.container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 290px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--sidebar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.photo-wrapper {
    padding: 3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent), var(--purple), #50a0ff, var(--accent));
    flex-shrink: 0;
    animation: photoRotate 8s linear infinite;
    box-shadow:
        0 0 30px var(--accent-glow),
        0 0 60px var(--purple-glow);
    transition: box-shadow 0.4s;
}

.photo-wrapper:hover {
    box-shadow:
        0 0 40px rgba(233, 69, 96, 0.25),
        0 0 80px rgba(123, 47, 247, 0.2);
}

@keyframes photoRotate {
    to { background: conic-gradient(from 360deg, var(--accent), var(--purple), #50a0ff, var(--accent)); }
}

@property --photo-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.photo-wrapper {
    --photo-angle: 0deg;
    background: conic-gradient(from var(--photo-angle), var(--accent), var(--purple), #50a0ff, var(--accent));
    animation: photoSpin 4s linear infinite;
}

@keyframes photoSpin {
    to { --photo-angle: 360deg; }
}

.photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid var(--bg);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.contacts {
    width: 100%;
}

.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contacts-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 10px;
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.contacts-title::-webkit-details-marker {
    display: none;
}

.contacts-title:hover {
    color: var(--text-secondary);
}

.contacts-title::before {
    content: '▸';
    font-size: 12px;
    color: var(--accent);
    transition: transform 0.2s;
    flex-shrink: 0;
}

details.contacts[open] > .contacts-title::before {
    transform: rotate(90deg);
}

.contacts-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.25s ease;
}

.contact-item:hover {
    background: var(--accent-soft);
    color: var(--text-primary);
    transform: translateX(4px);
}

.contact-item .icon {
    width: 16px;
    text-align: center;
    color: var(--accent);
    flex-shrink: 0;
    font-size: 14px;
    transition: transform 0.25s;
}

.contact-item:hover .icon {
    transform: scale(1.2);
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}

.header-mobile {
    display: none;
}

.main {
    padding: 48px 52px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.header h1 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-primary) 0%, #c8c8d4 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header .position {
    font-size: 16px;
    color: var(--accent);
    margin-top: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header .position::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    border-radius: 2px;
    flex-shrink: 0;
}

.section,
details.contacts {
    interpolate-size: allow-keywords;
}

.section::details-content,
details.contacts::details-content {
    overflow: hidden;
    height: 0;
    opacity: 0;
    content-visibility: hidden;
    transition: height 0.3s ease, opacity 0.3s ease, content-visibility 0.3s ease allow-discrete;
}

.section[open]::details-content,
details.contacts[open]::details-content {
    height: auto;
    opacity: 1;
    content-visibility: visible;
    overflow: visible;
}

@supports not selector(::details-content) {
    .section[open],
    details.contacts[open] {
        animation: fadeSlideIn 0.3s ease both;
    }
}

.section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    margin-bottom: 4px;
}

.section summary::-webkit-details-marker {
    display: none;
}

.section summary h2 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.2s;
}

.section summary:hover h2 {
    color: var(--text-secondary);
}

.section summary h2::before {
    content: '▸';
    font-size: 12px;
    color: var(--accent);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.section[open] > summary h2::before {
    transform: rotate(90deg);
}

.section summary h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

.about p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.language-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.badge-lang {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border-color: rgba(255, 255, 255, 0.1);
}

.badge-lang i {
    color: var(--text-muted);
    margin-right: 2px;
}

.badge-lang:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    background: var(--card-bg);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.25s ease;
    cursor: default;
}

.badge:hover {
    border-color: var(--accent-border);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.badge-backend {
    background: rgba(245, 158, 66, 0.08);
    color: #f59e42;
    border-color: rgba(245, 158, 66, 0.2);
}

.badge-backend:hover {
    border-color: rgba(245, 158, 66, 0.5);
    color: #ffb86c;
    box-shadow: 0 4px 20px rgba(245, 158, 66, 0.15);
}

.badge-data {
    background: rgba(80, 160, 255, 0.08);
    color: #50a0ff;
    border-color: rgba(80, 160, 255, 0.2);
}

.badge-data:hover {
    border-color: rgba(80, 160, 255, 0.5);
    color: #7ab8ff;
    box-shadow: 0 4px 20px rgba(80, 160, 255, 0.15);
}

.badge-monitoring {
    background: rgba(80, 220, 140, 0.08);
    color: #50dc8c;
    border-color: rgba(80, 220, 140, 0.2);
}

.badge-monitoring:hover {
    border-color: rgba(80, 220, 140, 0.5);
    color: #7aeaaa;
    box-shadow: 0 4px 20px rgba(80, 220, 140, 0.15);
}

.badge-devops {
    background: rgba(160, 120, 255, 0.08);
    color: #a078ff;
    border-color: rgba(160, 120, 255, 0.2);
}

.badge-devops:hover {
    border-color: rgba(160, 120, 255, 0.5);
    color: #bea0ff;
    box-shadow: 0 4px 20px rgba(160, 120, 255, 0.15);
}

.badge-ai {
    background: rgba(233, 69, 96, 0.08);
    color: #e94560;
    border-color: rgba(233, 69, 96, 0.2);
}

.badge-ai:hover {
    border-color: rgba(233, 69, 96, 0.5);
    color: #ff6b85;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.15);
}

.experience-item {
    padding: 20px 24px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.3s ease;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.experience-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-border), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.experience-item:hover {
    border-color: var(--accent-border);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px var(--accent-border);
}

.experience-item:hover::before {
    opacity: 1;
}

.experience-item .role {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.exp-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 10px;
}

.experience-item .company {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.experience-item .company:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
    color: #ff6b85;
}

.exp-meta .sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.experience-item .period {
    font-size: 12px;
    color: var(--text-muted);
}

.experience-item .desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    list-style: none;
    padding: 0;
}

.experience-item .desc li {
    padding-left: 16px;
    position: relative;
    transition: color 0.2s;
}

.experience-item .desc li:hover {
    color: var(--text-primary);
}

.experience-item .desc li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
}

.desc-divider {
    padding-left: 0;
    margin: 8px 0 4px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-border), var(--purple-glow), transparent);
    border-radius: 1px;
}

.desc-divider::before {
    display: none;
}

.experience-item .desc li.desc-subheading {
    list-style: none;
    font-weight: 600;
    color: var(--text-primary);
    padding-left: 0;
    margin-top: 6px;
    margin-bottom: 2px;
}

.experience-item .desc li.desc-subheading::before {
    display: none;
}

.project-info {
    margin-bottom: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.06), rgba(123, 47, 247, 0.04));
    border-left: 3px solid;
    border-image: linear-gradient(180deg, var(--accent), var(--purple)) 1;
    border-radius: 0 10px 10px 0;
}

.project-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 4px;
}

.project-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 2px 7px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    line-height: 1.2;
}

.project-name a {
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.project-name a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
    color: #ff6b85;
}

ul.project-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 15px;
    margin: 0;
    list-style-position: outside;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.project-stack .inline-tech {
    font-size: 11px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.2s;
}

.project-stack .inline-tech:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.08);
}

.inline-tech {
    color: var(--text-primary);
    font-weight: 500;
}

.inline-tech-inactive {
    color: var(--text-muted);
    font-weight: 400;
    opacity: 0.6;
}

.education-item {
    padding: 12px 16px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.education-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-border), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.education-item:hover {
    border-color: var(--accent-border);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.education-item:hover::before {
    opacity: 1;
}

.education-item .degree {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.edu-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 2px;
}

.edu-meta .sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.education-item .university {
    font-size: 13px;
    color: var(--accent);
}

.edu-meta .period {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.edu-location {
    font-size: 12px;
    color: var(--text-secondary);
}

.edu-location i {
    font-size: 10px;
    color: var(--text-muted);
    margin-right: 2px;
}

.career-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
}

.career-switch .arrow-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2ecc71, transparent);
    border-radius: 2px;
}

.career-switch .arrow-label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.25);
    color: #2ecc71;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.25s;
}

.career-switch .arrow-label:hover {
    background: rgba(46, 204, 113, 0.12);
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.1);
}

.career-switch .arrow-label i {
    font-size: 11px;
}

.career-switch .arrow-label a {
    color: #2ecc71;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.career-switch .arrow-label a:hover {
    color: #5dde9e;
}

@media (prefers-reduced-motion: no-preference) {
    .section {
        animation: fadeSlideIn 0.5s ease both;
    }

    .section:nth-child(1) { animation-delay: 0s; }
    .section:nth-child(2) { animation-delay: 0.08s; }
    .section:nth-child(3) { animation-delay: 0.16s; }
    .section:nth-child(4) { animation-delay: 0.24s; }
    .section:nth-child(5) { animation-delay: 0.32s; }

    .header {
        animation: fadeSlideIn 0.5s ease both;
    }

    .sidebar {
        animation: fadeIn 0.6s ease both;
    }
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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


.print-btn {
    width: 100%;
    padding: 10px 16px;
    background: rgba(80, 160, 255, 0.12);
    border: 1px solid rgba(80, 160, 255, 0.3);
    border-radius: 10px;
    color: #50a0ff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.print-btn:hover {
    background: rgba(80, 160, 255, 0.2);
    color: #7ab8ff;
}

.print-btn i {
    color: #50a0ff;
    font-size: 14px;
}

.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg-solid);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.25s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
}

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

.back-to-top:hover {
    border-color: var(--accent-border);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.15);
}

.easter-egg {
    position: absolute;
    top: 16px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    font-style: italic;
    color: var(--text-muted);
    opacity: 0.3;
    z-index: 10;
    text-align: left;
    transition: opacity 0.3s, color 0.3s;
}

.easter-egg:hover {
    opacity: 1;
    color: var(--text-secondary);
}

.easter-egg-mobile {
    display: none;
}

html.lang-ru [data-lang="en"],
html.lang-en [data-lang="ru"] {
    display: none;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.lang-switch button {
    flex: 1;
    padding: 8px 0;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lang-switch button:hover {
    color: var(--text-secondary);
}

.lang-switch button.active {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent-border);
}

.lang-switch-mobile {
    display: none;
}

.print-btn-mobile {
    display: none;
}

@media print {
    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    html, body {
        background: #fff;
        color: #1a1a1a;
        min-height: 0;
    }

    body::before {
        display: none;
    }

    .container {
        display: block;
    }

    .sidebar {
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        position: static;
        height: auto;
        padding: 20px 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .photo-wrapper {
        animation: none;
        box-shadow: none;
        flex-shrink: 0;
    }

    .photo {
        width: 80px;
        height: 80px;
        border-color: #ddd;
    }

    .header-mobile {
        display: block;
        text-align: left;
    }

    .header-mobile h1 {
        background: none;
        -webkit-text-fill-color: #1a1a1a;
        font-size: 24px;
    }

    .header-mobile .position {
        color: #555;
    }

    .header-mobile .position::before {
        display: none;
    }

    .main .header {
        display: none;
    }

    .contacts {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px 16px;
    }

    .contacts-title {
        display: none;
    }

    .contact-item {
        padding: 2px 0 !important;
        font-size: 11px !important;
        color: #333 !important;
        background: none !important;
        border: none !important;
        border-radius: 0 !important;
    }

    .contact-item .icon {
        color: #555;
    }

    .contact-item a {
        color: #1a5dab;
        text-decoration: underline;
    }

    .contact-item a::after {
        content: " (" attr(href) ")";
        font-size: 9px;
        color: #777;
        text-decoration: none;
    }

    .print-btn,
    .print-btn-mobile,
    .back-to-top,
    .lang-switch,
    .lang-switch-mobile,
    .easter-egg,
    .easter-egg-mobile {
        display: none !important;
    }

    .main {
        padding: 0;
    }

    .section,
    .section summary,
    .section summary h2 {
        animation: none;
    }

    .section summary h2 {
        color: #1a1a1a;
        font-size: 12px;
    }

    .section summary h2::before {
        color: #555;
    }

    .badge {
        border-color: #ccc;
        color: #333;
        background: #f5f5f5;
    }

    .badge-backend,
    .badge-data,
    .badge-monitoring,
    .badge-devops,
    .badge-ai {
        background: #f5f5f5;
        color: #333;
        border-color: #ccc;
    }

    .badge-lang {
        background: #f5f5f5;
        color: #333;
        border-color: #ccc;
    }

    .experience-item,
    .education-item {
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-color: #ddd;
        box-shadow: none;
        page-break-inside: avoid;
    }

    .experience-item .role,
    .education-item .degree {
        color: #1a1a1a;
    }

    .experience-item .company,
    .project-name a {
        color: #c0392b;
    }

    .project-label {
        color: #666;
        border-color: #d0d0d0;
        background: #f2f2f2;
    }

    .experience-item .period,
    .edu-meta .period {
        color: #777;
    }

    .experience-item .desc {
        color: #333;
    }

    .experience-item .desc li::before {
        background: #555;
    }

    .project-info {
        background: #f8f8f8;
        border-color: #c0392b;
        border-image: none;
    }

    .project-desc {
        color: #333;
    }

    .career-switch .arrow-label {
        color: #27ae60;
        border-color: #27ae60;
        background: #f0faf4;
    }

    .career-switch .arrow-label a {
        color: #27ae60;
    }

    .career-switch .arrow-line {
        background: linear-gradient(90deg, transparent, #27ae60, transparent);
    }

    .about p {
        color: #333;
    }

    .education-item .university {
        color: #c0392b;
    }

    .edu-location {
        color: #555;
    }

    .inline-tech {
        color: #333;
    }

    .inline-tech-inactive {
        color: #999;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        grid-template-columns: 218px 1fr;
    }

    .sidebar {
        padding: 36px 16px;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .easter-egg {
        display: none;
    }

    .easter-egg-mobile {
        display: flex;
        position: static;
        align-items: flex-start;
        opacity: 0.3;
    }

    .container {
        grid-template-columns: 1fr;
        min-height: unset;
    }

    .sidebar {
        padding: 32px 20px 16px;
        gap: 24px;
        border-right: none;
        border-bottom: none;
        position: static;
        height: auto;
    }

    .photo {
        width: 100px;
        height: 100px;
    }

    .header-mobile {
        display: block;
        text-align: center;
    }

    .header-mobile h1 {
        font-size: 28px;
        background: linear-gradient(135deg, var(--text-primary) 0%, #c8c8d4 40%, var(--accent) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .header-mobile .position {
        font-size: 14px;
        color: var(--accent);
        margin-top: 8px;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .header-mobile .position::before {
        content: '';
        display: inline-block;
        width: 20px;
        height: 2px;
        background: linear-gradient(90deg, var(--accent), var(--purple));
        border-radius: 2px;
        flex-shrink: 0;
    }

    .main .header {
        display: none;
    }

    .print-btn {
        display: none;
    }

    .print-btn-label {
        display: none;
    }

    .lang-switch {
        display: none;
    }

    .lang-switch-mobile {
        display: inline-flex;
        align-items: center;
        gap: 0;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--border);
        border-radius: 20px;
        overflow: hidden;
        margin-top: 12px;
    }

    .lang-switch-mobile button {
        padding: 5px 12px;
        background: none;
        border: none;
        color: var(--text-muted);
        font-family: inherit;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 1px;
        cursor: pointer;
        transition: all 0.25s ease;
    }

    .lang-switch-mobile button:hover {
        color: var(--text-secondary);
    }

    .lang-switch-mobile button.active {
        background: var(--accent-soft);
        color: var(--accent);
    }

    .print-btn-mobile {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 5px 10px;
        background: rgba(80, 160, 255, 0.12);
        border: 1px solid rgba(80, 160, 255, 0.3);
        border-radius: 20px;
        color: #50a0ff;
        font-family: inherit;
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.25s ease;
    }

    .print-btn-mobile:hover {
        background: rgba(80, 160, 255, 0.2);
        color: #7ab8ff;
    }

    .print-btn-mobile i {
        font-size: 12px;
    }

    .contacts-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
    }

    .contact-item {
        padding: 5px 10px;
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: 20px;
        gap: 6px;
        font-size: 12px;
    }

    .contact-item:hover {
        transform: none;
    }

    .main {
        padding: 16px 20px 28px;
        gap: 24px;
    }

    .header h1 {
        font-size: 28px;
    }

    .header .position {
        font-size: 14px;
    }

    .skills-list {
        gap: 6px;
    }

    .badge {
        font-size: 12px;
        padding: 4px 10px;
    }

    .experience-item {
        padding: 14px 16px;
    }

    .experience-item .role {
        font-size: 14px;
    }

    .exp-meta {
        flex-wrap: wrap;
        gap: 4px 8px;
    }

    .career-switch .arrow-label {
        font-size: 11px;
        padding: 5px 12px;
        text-align: center;
    }

    .career-switch .arrow-line {
        display: none;
    }

    .education-item {
        padding: 10px 14px;
    }

    .edu-meta {
        gap: 4px 8px;
    }

    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
    }
}
