:root {
    --ux-bg: #f6f5f2;
    --ux-surface: rgba(255, 255, 255, 0.72);
    --ux-surface-strong: rgba(255, 255, 255, 0.92);
    --ux-line: rgba(23, 23, 23, 0.08);
    --ux-line-strong: rgba(23, 23, 23, 0.16);
    --ux-text: #242428;
    --ux-muted: #8d8b95;
    --ux-shadow: 0 18px 60px rgba(24, 27, 44, 0.06);
    --ux-radius-lg: 28px;
    --ux-radius-md: 22px;
    --ux-sidebar-width: 246px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.uxpilot-body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ux-text);
    background:
        radial-gradient(circle at 20% 15%, rgba(219, 229, 255, 0.8), transparent 24%),
        radial-gradient(circle at 86% 16%, rgba(247, 235, 255, 0.85), transparent 22%),
        radial-gradient(circle at 50% 74%, rgba(235, 241, 255, 0.72), transparent 28%),
        linear-gradient(180deg, #fcfbfa 0%, #f8f7f4 100%);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.uxpilot-site-shell {
    min-height: 100vh;
    position: relative;
    overflow: clip;
}

.uxpilot-site-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 20%, rgba(219, 229, 255, 0.9), transparent 20%),
        radial-gradient(circle at 80% 25%, rgba(241, 228, 255, 0.85), transparent 18%),
        radial-gradient(circle at 42% 80%, rgba(235, 241, 255, 0.6), transparent 22%);
    filter: blur(36px);
    opacity: 0.9;
}

.portfolio-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--ux-sidebar-width);
    padding: 0;
    background: var(--ux-surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid rgba(255, 255, 255, 0.66);
    box-shadow: 12px 0 42px rgba(40, 41, 61, 0.04);
    z-index: 30;
}

.portfolio-sidebar__inner {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 34px 16px 24px;
    position: relative;
}

.portfolio-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 2px;
}

.portfolio-profile__avatar-wrap {
    position: relative;
    flex: 0 0 auto;
}

.portfolio-profile__avatar-link {
    display: block;
    border-radius: 50%;
    transition: transform 0.25s ease;
}

.portfolio-profile__avatar-link:hover {
    transform: translateY(-1px) scale(1.03);
}

.portfolio-profile__avatar {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    background: #eef1f8;
}

.portfolio-profile__avatar.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ux-muted);
    font-size: 18px;
    font-weight: 700;
}

.portfolio-profile__initial {
    font-size: 1rem;
    line-height: 1;
}

.portfolio-profile__status {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #57d983;
    border: 2px solid #fff;
}

.portfolio-profile__content h2 {
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.portfolio-profile__content p {
    margin: 0;
    font-size: 11px;
    color: var(--ux-muted);
}

.sidebar-nav {
    margin-top: 42px;
}

.sidebar-nav__label {
    display: inline-block;
    margin: 0 0 14px 6px;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--ux-muted);
    font-weight: 700;
}

.sidebar-nav__list,
.sidebar-nav .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.sidebar-nav .menu-item a,
.sidebar-nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 14px 12px;
    border-radius: 16px;
    color: var(--ux-muted);
    transition: 0.25s ease;
    font-size: 15px;
    font-weight: 600;
}

.sidebar-nav__bullet {
    width: 10px;
    height: 10px;
    border: 1.5px solid #5c86ff;
    border-radius: 2px;
    display: inline-flex;
    flex: 0 0 10px;
}

.sidebar-nav__icon-home {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5c86ff;
    flex: 0 0 14px;
}

.sidebar-nav__icon-home svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sidebar-nav__icon-fa {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5c86ff;
    flex: 0 0 14px;
    font-size: 13px;
    line-height: 1;
}

.sidebar-nav .current-menu-item > a,
.sidebar-nav .current_page_item > a,
.sidebar-nav .menu-item a:hover,
.sidebar-nav__link:hover,
.sidebar-nav__link.is-active {
    color: var(--ux-text);
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.sidebar-nav__icon {
    width: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5c86ff;
    font-size: 16px;
    flex: 0 0 18px;
}

.sidebar-nav__text {
    display: inline-flex;
    align-items: center;
}

.portfolio-sidebar__footer {
    padding-top: 20px;
}

.sidebar-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 20px;
    border-radius: 16px;
    background: #1f1f24;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sidebar-cta__plus {
    position: relative;
    width: 12px;
    height: 12px;
    display: inline-block;
    flex: 0 0 12px;
}

.sidebar-cta__plus::before,
.sidebar-cta__plus::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.sidebar-cta__plus::before {
    width: 12px;
    height: 1.5px;
}

.sidebar-cta__plus::after {
    width: 1.5px;
    height: 12px;
}

.sidebar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(31, 31, 36, 0.2);
}

.portfolio-main {
    margin-left: var(--ux-sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.portfolio-socials {
    position: fixed;
    top: 26px;
    right: 28px;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 18px;
    color: #8c8d96;
}

.portfolio-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.portfolio-socials a:hover {
    color: var(--ux-text);
    transform: translateY(-1px);
}

.portfolio-socials__icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    color: currentColor;
}

.portfolio-socials__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    display: block;
}

.portfolio-hero {
    flex: 1 1 auto;
    padding: 92px 40px 40px;
}

.portfolio-hero__content {
    max-width: 900px;
    padding: 18px 0 22px;
}

.portfolio-hero__content h1 {
    margin: 0;
    font-size: clamp(3rem, 6.4vw, 6rem);
    line-height: 0.94;
    font-weight: 700;
    max-width: 760px;letter-spacing: -4px;
}

.portfolio-hero__content p {
    margin: 28px 0 0;
    max-width: 768px;
    color: var(--ux-muted);
    font-size: clamp(1rem, 2vw, 1rem);
    line-height: 1.55;
    font-weight: 400;
}

.portfolio-projects {
    padding-top: 60px;
    max-width: 1320px;
}

.project-card {
    position: relative;
    min-height: 178px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(214, 220, 231, 0.7);
    border-radius: var(--ux-radius-md);
    box-shadow: 0 14px 34px rgba(24, 27, 44, 0.045);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card__link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    cursor: pointer;
}

.project-card__content {
    position: relative;
    z-index: 2;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 54px rgba(24, 27, 44, 0.085);
    border-color: rgba(194, 203, 218, 0.95);
    background: rgba(255, 255, 255, 0.88);
}

.project-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.project-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-card__icon {
    transform: translateY(-1px) scale(1.06);
}

.project-card__icon-svg {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.project-card__icon-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.project-card__icon-fa {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
}

.project-card__arrow {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d4d8e2;
    transition: color 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card__arrow svg {
    width: 100%;
    height: 100%;
    display: block;
}

.project-card:hover .project-card__arrow {
    color: #22242a;
    transform: translate(2px, -2px);
}

.project-card__body h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.project-card__body p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--ux-muted);
}

.project-card__socials {
    position: relative;
    z-index: 3;
    min-height: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    pointer-events: auto;
}

.project-card__social {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(23, 23, 23, 0.08);
    background: rgba(255, 255, 255, 0.82);
    color: #7f8594;
    box-shadow: 0 8px 18px rgba(24, 27, 44, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    pointer-events: auto;
}

.project-card__social:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(24, 27, 44, 0.1);
}

.project-card__social i {
    font-size: 13px;
    line-height: 1;
}

.project-card__social--facebook {
    color: #1877f2;
    background: rgba(24, 119, 242, 0.1);
    border-color: rgba(24, 119, 242, 0.18);
}

.project-card__social--instagram {
    color: #e1306c;
    background: rgba(225, 48, 108, 0.1);
    border-color: rgba(225, 48, 108, 0.18);
}

.project-card__social--tiktok {
    color: #111111;
    background: linear-gradient(135deg, rgba(37, 244, 238, 0.16), rgba(254, 44, 85, 0.16));
    border-color: rgba(17, 17, 17, 0.12);
}

.project-card__social--youtube {
    color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.18);
}

.project-card__social--linkedin {
    color: #0a66c2;
    background: rgba(10, 102, 194, 0.1);
    border-color: rgba(10, 102, 194, 0.18);
}

.project-card__social--website {
    color: #0f766e;
    background: rgba(15, 118, 110, 0.1);
    border-color: rgba(15, 118, 110, 0.18);
}

.project-card__social--twitter {
    color: #111111;
    background: rgba(17, 17, 17, 0.08);
    border-color: rgba(17, 17, 17, 0.14);
}

.content-panel {
    margin-top: 28px;
    padding: 28px 32px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: var(--ux-radius-lg);
    box-shadow: var(--ux-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.content-panel h2 {
    margin: 0 0 16px;
    font-size: 1.6rem;
}

.content-panel__text {
    color: #555866;
    line-height: 1.75;
}

.portfolio-footer {
    padding: 18px 40px 24px;
}

.portfolio-footer p {
    margin: 0;
    color: var(--ux-muted);
    font-size: 0.82rem;
}

.portfolio-footer__credit i {
    margin: 0 0.18em;
    color: #1f1f24;
    font-style: normal;
}

.portfolio-footer__credit .fa-heart::before {
    content: "♥";
    font-family: inherit;
    font-weight: 700;
}

.inner-page {
    flex: 1 1 auto;
    padding: 132px 40px 40px;
}

.page-header {    margin-bottom: 36px;
}

.page-title {
    margin: 0;
    font-size: clamp(2.25rem, 4.8vw, 4.2rem);
    line-height: 0.98;
    font-weight: 700;
}

.page-wrapper {
    padding: 32px;
    border-radius: var(--ux-radius-lg);
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: var(--ux-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.entry-content {
    color: #555866;
    line-height: 1.8;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

.archive-description {
    margin-bottom: 24px;
}

.archive-list {
    display: grid;
    gap: 18px;
}

.archive-card {
    padding: 22px 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.archive-card__title {
    margin: 0 0 10px;
    font-size: 1.4rem;
    line-height: 1.05;
}

.archive-card__excerpt > *:first-child {
    margin-top: 0;
}

.archive-card__excerpt > *:last-child {
    margin-bottom: 0;
}

.empty-state {
    display: grid;
    gap: 18px;
}

.search-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.search-form label {
    flex: 1 1 280px;
}

.search-form .search-field {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid rgba(31, 31, 36, 0.12);
    background: rgba(255, 255, 255, 0.84);
    font: inherit;
}

.search-form .search-submit {
    min-height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 16px;
    background: #1f1f24;
    color: #fff;
    font: inherit;
    font-weight: 700;
}

.uxpilot-fallback {
    padding: 64px 0;
}

.uxpilot-fallback__content {
    max-width: 860px;
}

.mobile-menu-toggle {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 45;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ux-text);
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(24, 27, 44, 0.12);
    font-size: 18px;
    line-height: 1;
}

body.sidebar-open .mobile-menu-toggle {
    opacity: 0;
    pointer-events: none;
}

.mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 4;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ux-text);
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(24, 27, 44, 0.1);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 1199.98px) {
    .portfolio-hero {
        padding-right: 28px;
        padding-left: 28px;
    }

    .portfolio-footer {
        padding-right: 28px;
        padding-left: 28px;
    }
}

@media (max-width: 991.98px) {
    .mobile-menu-toggle {
        display: inline-flex;
    }

    .mobile-menu-close {
        display: inline-flex;
    }

    .portfolio-sidebar__inner {
        padding-top: 72px;
    }

    .portfolio-sidebar {
        transform: translateX(-100%);
        transition: transform 0.28s ease;
        width: min(84vw, 320px);
        box-shadow: 18px 0 40px rgba(24, 27, 44, 0.12);
    }

    .portfolio-sidebar.is-open {
        transform: translateX(0);
    }

    body.sidebar-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(10, 10, 15, 0.28);
        z-index: 20;
    }

    .portfolio-main {
        margin-left: 0;
    }

    .portfolio-socials {
        top: 22px;
        right: 20px;
        gap: 14px;
    }

    .portfolio-hero {
        padding-top: 108px;
    }

    .inner-page {
        padding: 112px 28px 28px;
    }
}

@media (max-width: 767.98px) {
    .portfolio-socials {
        position: absolute;
        top: 22px;
    }

    .portfolio-hero {
        padding: 108px 18px 28px;
    }

    .portfolio-hero__content h1 {
        line-height: 0.98;
    }

    .portfolio-projects {
        padding-top: 32px;
    }

    .project-card {
        min-height: 164px;
        padding: 20px;
    }

    .project-card__content {
        gap: 16px;
    }

    .project-card__body h3 {
        font-size: 1rem;
    }

    .content-panel {
        padding: 24px 20px;
    }

    .portfolio-footer {
        padding: 12px 18px 26px;
    }

    .inner-page {
        padding: 108px 18px 28px;
    }

    .page-wrapper {
        padding: 22px 18px;
    }
}
