/* archivo-regular - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/archivo-v25-latin-regular.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* archivo-500 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/archivo-v25-latin-500.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* archivo-600 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/archivo-v25-latin-600.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* archivo-700 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/archivo-v25-latin-700.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* archivo-800 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/archivo-v25-latin-800.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* archivo-900 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/archivo-v25-latin-900.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* archivo-black-regular - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Archivo Black';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/archivo-black-v23-latin-regular.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
    --bg-main: #f3f3f6;
    --bg-panel: rgba(255, 255, 255, 0.76);
    --bg-panel-strong: rgba(255, 255, 255, 0.92);

    --text-main: #111111;
    --text-soft: #5f6270;
    --text-muted: #888c99;

    --border: rgba(17, 17, 17, 0.08);
    --border-strong: rgba(140, 82, 255, 0.20);

    --accent: #8c52ff;
    --accent-dark: #6f35eb;
    --accent-soft: #c8afff;
    --accent-pale: #efe7ff;

    --gradient-main: linear-gradient(135deg, #8c52ff 0%, #b692ff 48%, #efe7ff 100%);
    --gradient-soft: linear-gradient(135deg, rgba(140, 82, 255, 0.16) 0%, rgba(182, 146, 255, 0.10) 100%);
    --gradient-strong: linear-gradient(135deg, #8c52ff 0%, #6f35eb 100%);

    --shadow-soft: 0 20px 60px rgba(30, 19, 62, 0.08);
    --shadow-card: 0 16px 40px rgba(84, 50, 151, 0.10);

    --radius-xl: 36px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;

    --transition: 180ms ease;
}

.dark-mode {
    --bg-main: #1a1a1a;
    --bg-panel: rgba(30, 30, 30, 0.9);
    --bg-panel-strong: rgba(40, 40, 40, 0.95);

    --text-main: #ffffff;
    --text-soft: #cccccc;
    --text-muted: #888888;

    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(140, 82, 255, 0.30);

    --accent: #a78bfa;
    --accent-dark: #8b5cf6;
    --accent-soft: #c4b5fd;
    --accent-pale: #e9d5ff;

    --gradient-main: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 48%, #e9d5ff 100%);
    --gradient-soft: linear-gradient(135deg, rgba(167, 139, 250, 0.16) 0%, rgba(196, 181, 253, 0.10) 100%);
    --gradient-strong: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);

    --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.2);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Archivo", sans-serif;
    color: var(--text-main);
    background: var(--bg-main);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.55;
}

.bg-orb-1 {
    width: 540px;
    height: 540px;
    background: radial-gradient(circle, rgba(140, 82, 255, 0.38) 0%, rgba(140, 82, 255, 0) 72%);
    top: -120px;
    right: -120px;
}

.bg-orb-2 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(182, 146, 255, 0.30) 0%, rgba(182, 146, 255, 0) 72%);
    bottom: -140px;
    left: -120px;
}

.dark-mode .bg-orb-1 {
    background: radial-gradient(circle, rgba(167, 139, 250, 0.38) 0%, rgba(167, 139, 250, 0) 72%);
}

.dark-mode .bg-orb-2 {
    background: radial-gradient(circle, rgba(196, 181, 253, 0.30) 0%, rgba(196, 181, 253, 0) 72%);
}

.dark-mode .bg-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.site-wrapper {
    position: relative;
    z-index: 1;
    width: min(1400px, calc(100% - 40px));
    margin: 20px auto;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 20px;
    min-height: calc(100vh - 40px);
}

.sidebar-inner {
    height: 100%;
    padding: 36px 30px;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.80) 0%, rgba(239, 231, 255, 0.92) 100%);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.eyebrow {
    margin: 0 0 20px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--accent);
}

.main-title {
    margin: 0;
    font-size: clamp(3rem, 4rem, 5rem);
    line-height: 0.88;
    font-weight: 900;
    letter-spacing: -0.06em;
    text-transform: uppercase;
}

.hero-text {
    margin: 28px 0 0;
    max-width: 24ch;
    font-size: 1rem;
    color: var(--text-soft);
}

.side-nav {
    margin-top: 38px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    font-weight: 700;
    color: var(--text-soft);
    transition: var(--transition);
    width: fit-content;
    background: var(--gradient-soft);
}

.side-nav-link:hover,
.side-nav-link.active {
    background: var(--gradient-main);
    color: var(--text-main);
}

.socials {
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--bg-panel-strong);
    border: 1px solid var(--border);
    font-weight: 700;
    transition: var(--transition);
}

.social-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(140, 82, 255, 0.28);
    box-shadow: 0 10px 30px rgba(140, 82, 255, 0.12);
}

.theme-toggle {
    margin-top: 20px;
}

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(140, 82, 255, 0.9), rgba(111, 53, 235, 0.9));
    color: #ffffff;
    border: 1px solid rgba(167, 139, 250, 0.9);
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
}

.theme-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.theme-text {
    font-size: 0.92rem;
}

.sidebar-meta {
    margin-top: auto;
    padding-top: 28px;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.sidebar-meta p+p {
    margin-top: 8px;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.hero-panel,
.content-section {
    scroll-margin-top: 30px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: 34px;
    min-height: 250px;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 242, 255, 0.96) 46%, rgba(227, 212, 255, 0.92) 100%);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.hero-card::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    top: -130px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(140, 82, 255, 0.30) 0%, rgba(140, 82, 255, 0) 72%);
}

.hero-card-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.hero-kicker {
    margin: 0 0 14px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--accent);
}

.hero-card h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3.3rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 900;
    max-width: 14ch;
}

.hero-card p:last-child {
    margin: 18px 0 0;
    max-width: 58ch;
    color: var(--text-soft);
    font-size: 1rem;
}

.hero-badge {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    min-width: 120px;
    height: 120px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--gradient-main);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 20px 50px rgba(140, 82, 255, 0.28);
}

.section-head {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 14px;
    padding: 0 4px;
}

.section-label {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.16em;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(2rem, 2.4vw, 3rem);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.section-card {
    background: var(--bg-panel);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-card);
}

.section-card-highlight {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.90) 0%, rgba(245, 239, 255, 0.92) 100%);
    border: 1px solid rgba(140, 82, 255, 0.14);
}

.skills-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
}

.skills-group h3 {
    margin: 0 0 20px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.skill-row+.skill-row {
    margin-top: 18px;
}

.skill-row {
    cursor: default;
}

.skill-row span {
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 700;
}

.skill-line {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.08);
    overflow: hidden;
}

.skill-line span {
    display: block;
    height: 100%;
    margin: 0;
    border-radius: inherit;
    background: var(--gradient-strong);
    box-shadow: 0 4px 12px rgba(140, 82, 255, 0.18);
    transition: box-shadow 400ms ease, filter 400ms ease;
}

.skill-row:hover .skill-line span {
    box-shadow:
        0 0 12px rgba(140, 82, 255, 0.50),
        0 0 28px rgba(140, 82, 255, 0.35),
        0 0 48px rgba(140, 82, 255, 0.20);
    filter: brightness(1.2);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--gradient-soft);
    border: none;
    color: var(--text-soft);
    font-weight: 700;
    font-size: 0.92rem;
    transition: all 200ms ease;
    cursor: default;
}

.tag:hover {
    background: var(--gradient-main);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(140, 82, 255, 0.15);
}

.tag-primary {
    background: var(--gradient-main);
    color: var(--text-main);
}

.experience-stack {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 32px;
}

.experience-stack::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 7px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-soft), transparent);
    border-radius: 999px;
}

.experience-card {
    position: relative;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--bg-panel);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    margin-bottom: 18px;
}

.experience-card:last-child {
    margin-bottom: 0;
}

.experience-card::before {
    content: "";
    position: absolute;
    left: -32px;
    top: 34px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 3px solid var(--bg-main);
    box-shadow: 0 0 0 3px rgba(140, 82, 255, 0.18);
    z-index: 1;
}

.experience-card-current::before {
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(140, 82, 255, 0.25), 0 0 16px rgba(140, 82, 255, 0.35);
}

.experience-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 50px rgba(100, 55, 180, 0.14);
}

.experience-card-current {
    border: 1px solid var(--border-strong);
}

.experience-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.experience-year {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.10em;
    color: var(--accent);
    text-transform: uppercase;
}

.experience-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent-pale);
    color: var(--accent-dark);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.experience-card h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.experience-company {
    margin: 8px 0 10px;
    color: var(--accent);
    font-weight: 700;
}

.experience-card p {
    color: var(--text-soft);
}

.section-card h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-card p {
    color: var(--text-soft);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.project-card {
    position: relative;
    overflow: hidden;
    min-height: 310px;
    border-radius: var(--radius-lg);
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(245, 240, 255, 0.88) 100%);
    border: 1px solid rgba(140, 82, 255, 0.14);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.project-card::before {
    content: "";
    position: absolute;
    inset: auto -60px -90px auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(140, 82, 255, 0.18) 0%, rgba(140, 82, 255, 0) 72%);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(100, 55, 180, 0.14);
}

.project-card-featured {
    background:
        linear-gradient(145deg, rgba(140, 82, 255, 0.96) 0%, rgba(111, 53, 235, 0.96) 60%, rgba(87, 35, 196, 0.98) 100%);
    color: #ffffff;
    border: none;
}

.project-card-featured .project-description,
.project-card-featured .project-type,
.project-card-featured .project-link {
    color: rgba(255, 255, 255, 0.88);
}

.project-card-featured .project-skills span {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.project-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.project-status,
.project-type {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.project-status.live {
    color: #ffffff;
}

.project-status.concept {
    color: var(--accent);
}

.project-type {
    color: var(--text-muted);
}

.project-card h3 {
    margin: 0 0 12px;
    font-size: 1.55rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.project-description {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.98rem;
    line-height: 1.55;
}

.project-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.project-skills span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.05);
    border: 1px solid rgba(17, 17, 17, 0.06);
    font-size: 0.85rem;
    font-weight: 700;
}

.project-link {
    margin-top: auto;
    padding-top: 28px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-dark);
}

.about-intro {
    margin-bottom: 18px;
}

.about-intro p {
    margin: 0;
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.75;
}

.hobby-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.hobby-grid-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.hobby-card-full {
    margin-bottom: 18px;
}

.travel-maps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.hobby-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(250, 248, 255, 1) 0%, rgba(243, 236, 255, 1) 100%);
    border: 1px solid rgba(140, 82, 255, 0.12);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.hobby-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(100, 55, 180, 0.14);
}

.hobby-card h3 {
    margin: 0 0 12px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hobby-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.55;
}

.hobby-card .tag-cloud {
    margin-top: auto;
    padding-top: 18px;
}

.hobby-card-map {
    grid-column: 1 / -1;
}

.hobby-card-full {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(250, 248, 255, 1) 0%, rgba(243, 236, 255, 1) 100%);
    border: 1px solid rgba(140, 82, 255, 0.12);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.hobby-card-full h3 {
    margin: 0 0 12px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hobby-card-full p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.55;
}

.hobby-card-full .tag-cloud {
    padding-top: 18px;
}

.travel-map {
    position: relative;
    margin: 20px 0 16px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(17, 17, 17, 0.03);
    border: 1px solid var(--border);
}

.dark-mode .travel-map {
    background: rgba(255, 255, 255, 0.03);
}

#geochart,
#geochart-cities {
    width: 100%;
    min-height: 300px;
}

#geochart svg,
#geochart-cities svg {
    border-radius: var(--radius-sm);
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-legend {
    font-size: 0.72rem;
    padding: 3px 10px;
    opacity: 0.8;
}

.map-counter {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.map-count {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    background: var(--gradient-strong);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.map-count-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cv-card {
    margin-top: 0;
}

.cv-card-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cv-card h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 800;
}

.cv-card p {
    margin: 0;
    color: var(--text-soft);
}

.cv-download {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--gradient-strong);
    color: #fff;
    font-weight: 800;
    transition: var(--transition);
}

.cv-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(140, 82, 255, 0.28);
}

.dark-mode .tag {
    background: rgba(167, 139, 250, 0.15);
    color: var(--accent-soft);
}

.dark-mode .tag-primary {
    background: rgba(167, 139, 250, 0.28);
    color: #ffffff;
}

.dark-mode .tag:hover {
    background: rgba(167, 139, 250, 0.35);
    color: #ffffff;
}

.dark-mode .hobby-card {
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(167, 139, 250, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.contact-card {
    text-align: center;
    padding: 60px 36px;
}

.contact-card h3 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.contact-card p {
    margin: 0 auto 40px;
    max-width: 44ch;
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.6;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 999px;
    background: var(--gradient-strong);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(140, 82, 255, 0.28);
}

.contact-btn-outline {
    background: var(--bg-panel-strong);
    color: var(--accent);
    border: 2px solid var(--accent);
}

.contact-btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 24px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-link {
    color: var(--accent);
    font-weight: 700;
    border: 1px solid transparent;
    padding: 6px 10px;
    border-radius: 8px;
    transition: var(--transition);
}

.footer-link:hover {
    border-color: var(--accent);
    background: rgba(140, 82, 255, 0.14);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(10, 10, 18, 0.55);
    padding: 24px;
    overflow-y: auto;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.modal:target {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: min(600px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 42px 36px;
    border-radius: var(--radius-xl);
    background: var(--bg-panel-strong);
    border: 1px solid var(--border-strong);
    box-shadow: 0 32px 80px rgba(30, 19, 62, 0.22);
    color: var(--text-main);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(140, 82, 255, 0.08);
    font-size: 1.4rem;
    line-height: 1;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(140, 82, 255, 0.16);
    color: var(--accent);
}

.modal-content h2 {
    margin: 0 0 28px;
    font-size: clamp(1.6rem, 2.2vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.modal-content h3 {
    margin: 24px 0 8px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.modal-content h2 + h3 {
    margin-top: 0;
}

.modal-content p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.65;
    font-size: 0.95rem;
}

.modal-content p + p {
    margin-top: 6px;
}

.modal-content a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.modal-content a:hover {
    text-decoration: underline;
}

.dark-mode .modal {
    background: rgba(0, 0, 0, 0.65);
}

.dark-mode .modal-content {
    background: rgba(28, 28, 32, 0.97);
    border: 1px solid rgba(167, 139, 250, 0.20);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.50);
}

.dark-mode .modal-close {
    background: rgba(167, 139, 250, 0.12);
}

.dark-mode .sidebar-inner {
    background:
        linear-gradient(180deg, rgba(25, 25, 25, 0.92) 0%, rgba(30, 30, 30, 0.94) 100%);
    border: 1px solid rgba(167, 139, 250, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.dark-mode .side-nav-link {
    background: rgba(80, 80, 80, 0.24);
    color: var(--text-soft);
}

.dark-mode .side-nav-link.active,
.dark-mode .side-nav-link:hover {
    background: var(--gradient-main);
    color: var(--text-main);
}

.dark-mode .hero-card,
.dark-mode .section-card,
.dark-mode .project-card,
.dark-mode .about-card,
.dark-mode .mini-card {
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(167, 139, 250, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.dark-mode .section-card-highlight {
    background: rgba(50, 50, 50, 0.72);
    border: 1px solid rgba(167, 139, 250, 0.30);
}

.dark-mode .experience-badge {
    background: rgba(167, 139, 250, 0.20);
    color: var(--accent);
}

.dark-mode .project-card-featured {
    background:
        linear-gradient(145deg, rgba(122, 77, 255, 0.95) 0%, rgba(94, 52, 206, 0.95) 60%, rgba(72, 34, 171, 0.98) 100%);
}

.dark-mode .project-card h3,
.dark-mode .project-card-featured h3,
.dark-mode .section-card h3,
.dark-mode .experience-company,
.dark-mode .project-type,
.dark-mode .project-link,
.dark-mode .hero-card-content h2,
.dark-mode .hero-card p,
.dark-mode .about-intro p,
.dark-mode .footer,
.dark-mode .sidebar-meta,
.dark-mode .main-title,
.dark-mode .eyebrow,
.dark-mode .hero-text,
.dark-mode .section-label,
.dark-mode .project-skills span,
.dark-mode .experience-year,
.dark-mode .experience-company {
    color: var(--text-soft);
}

.dark-mode .main-title,
.dark-mode .hero-card h2,
.dark-mode .section-head h2,
.dark-mode .project-card h3,
.dark-mode .experience-year {
    color: var(--text-main);
}

.dark-mode .social-btn,
.dark-mode .theme-toggle-btn {
    background: rgba(55, 55, 55, 0.9);
    border-color: rgba(167, 139, 250, 0.35);
    color: #fff;
}

.dark-mode .page-bg {
    background: #0f0f14;
}

@media (max-width: 1180px) {
    .site-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        top: 0;
        min-height: auto;
    }

    .sidebar-inner {
        height: auto;
    }

    .sidebar-meta {
        margin-top: 30px;
    }

    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hobby-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hobby-grid-half {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .site-wrapper {
        width: min(100% - 24px, 1400px);
        margin: 12px auto;
    }

    .sidebar-inner,
    .hero-card,
    .section-card,
    .project-card {
        padding: 22px;
    }

    .modal-content {
        padding: 28px 22px;
    }

    .hero-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .skills-layout {
        grid-template-columns: 1fr;
    }

    .hobby-grid {
        grid-template-columns: 1fr;
    }

    .hobby-grid-half {
        grid-template-columns: 1fr;
    }

    .travel-maps-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .experience-stack {
        padding-left: 24px;
    }

    .experience-card::before {
        left: -24px;
        width: 12px;
        height: 12px;
    }

    .experience-stack::before {
        left: 5px;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    html {
        font-size: 14px;
    }

    .main-title {
        font-size: 3.3rem;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .side-nav {
        gap: 8px;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .side-nav-link {
        min-height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}