:root {
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-bg-strong: rgba(255, 255, 255, 0.86);
    --glass-border: rgba(255, 255, 255, 0.58);
    --ink: #12212c;
    --muted: #667782;
    --accent: #00a88f;
    --accent-2: #1677ff;
    --shadow: 0 24px 70px rgba(8, 33, 48, 0.18);
    --soft-shadow: 0 12px 30px rgba(8, 33, 48, 0.12);
}

html,
body {
    color: var(--ink);
    background:
        radial-gradient(circle at 82% 12%, rgba(0, 168, 143, 0.20), transparent 32%),
        radial-gradient(circle at 58% 88%, rgba(22, 119, 255, 0.16), transparent 38%),
        linear-gradient(145deg, #e8f6f5 0%, #eef5ff 48%, #f8fbff 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(115deg, rgba(255,255,255,.22), transparent 46%);
}

.floor {
    background: transparent !important;
}

.cv-left-slider {
    top: 6px;
    bottom: 6px;
    height: auto;
    left: calc(5em + 6px);
    width: calc(50% - 2.5em - 12px);
    border: 1px solid rgba(255,255,255,.46);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(8,33,48,.10);
}

.cv-left-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(7,28,39,.06), rgba(7,28,39,.26));
}

.cv-left-slider img {
    filter: saturate(.92) contrast(1.04);
}

#cv-menu {
    top: 50%;
    left: 14px;
    height: auto;
    transform: translateY(-50%);
    padding: 10px;
    border: 1px solid rgba(255,255,255,.48);
    border-radius: 22px;
    background: rgba(15, 31, 43, 0.76) !important;
    box-shadow: 0 18px 45px rgba(8, 26, 38, .28);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
}

#cv-main-menu ul li a {
    width: 4.1em;
    height: 4.1em;
    line-height: 4.1em;
    margin: 4px 0;
    border: 0 !important;
    border-radius: 15px;
    color: rgba(255,255,255,.82);
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

#cv-main-menu ul li:first-child a,
#cv-main-menu ul li.cv-active a,
#cv-main-menu ul li a:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 24px rgba(16, 116, 200, .28);
    transform: translateY(-1px);
}

.cv-page-content {
    width: calc(100% - 44px);
    min-height: calc(100% - 44px);
    margin: 22px;
    padding: 56px;
    border: 1px solid var(--glass-border) !important;
    border-radius: 28px;
    background: var(--glass-bg) !important;
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px) saturate(135%);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ink);
}

h1.border::after,
h2.border::after,
h3.border::after,
h4.border::after,
h5.border::after,
h6.border::after {
    height: 4px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

p,
.cv-table li,
.skillbar-title,
.skill-bar-percent {
    color: var(--muted);
}

.floor-4 .portfolio-app-link {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    direction: ltr;
    text-align: left;
}

.floor-4 .portfolio-app-link a {
    display: block;
    max-width: 100%;
    font-size: clamp(12px, 1.25vw, 15px);
    line-height: 1.65;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#home-image {
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    margin: 6px;
    border: 1px solid rgba(255,255,255,.46);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(8,33,48,.10);
}

#home-title {
    top: calc(100% - 344px);
    bottom: auto;
    left: -7px;
    transform: none;
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 26px;
    background: rgba(0, 0, 0, .78);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px) saturate(145%);
    -webkit-backdrop-filter: blur(20px) saturate(145%);
}

#home-title h1 span,
#home-title p,
#home-slide-title span {
    color: #fff !important;
    background: transparent !important;
}

#home-title h1 span {
    padding: 20px 34px 10px;
}

#home-title h1 span:not(.mobile-title) {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

#home-title p {
    display: block;
    padding: 6px 34px 14px;
    font-size: 24px;
    color: rgba(255,255,255,.82) !important;
}

#home-slide-title {
    top: calc(100% - 344px);
    bottom: auto;
    right: -7px;
    transform: none;
}

#home-slide-title span {
    display: block;
    padding: 16px 24px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 18px;
    background: rgba(198, 28, 48, .84) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

#cv-home-social-bar-container {
    left: 42px;
    bottom: 34px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 18px;
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

#cv-home-social-bar ul li a,
#cv-home-social-bar ul li:first-child a,
#cv-home-social-bar ul li:nth-child(2) a,
#cv-home-social-bar ul li:nth-child(3) a {
    border: 0 !important;
    background: rgba(255,255,255,.82) !important;
}

.cv-table li,
.cv-resume-box,
.cv-icon-block,
.cv-box,
.postcontent,
.accordion-content {
    border-color: rgba(255,255,255,.74) !important;
}

.cv-table li {
    margin-bottom: 9px;
    padding: 15px 18px;
    border: 1px solid rgba(255,255,255,.72) !important;
    border-radius: 14px;
    background: rgba(255,255,255,.45);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.cv-table li:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.72);
    box-shadow: var(--soft-shadow);
}

.cv-icon-block {
    padding-top: 24px;
    padding-bottom: 24px;
    border-radius: 22px;
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.cv-icon-block:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,.5);
    box-shadow: var(--soft-shadow);
}

.cv-icon-container {
    border: 1px solid rgba(255,255,255,.7);
    background: linear-gradient(145deg, rgba(255,255,255,.78), rgba(255,255,255,.34)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), var(--soft-shadow);
}

.cv-icon-container a::before {
    color: var(--accent) !important;
}

.cv-resume-box {
    padding: 22px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 18px;
    background: rgba(255,255,255,.40);
    box-shadow: 0 8px 22px rgba(8,33,48,.07);
}

.cv-resume-title {
    border-bottom-color: rgba(18,33,44,.09) !important;
}

.floor-3 .cv-resume-box figure,
.floor-3 .cv-resume-box ul {
    max-width: 100%;
}

.floor-3 .cv-resume-box figure img {
    display: block;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 18px auto 0;
    border-radius: 12px;
    object-fit: contain;
}

.floor-3 .cv-resume-box figure img[src="#"] {
    display: none !important;
}

.skillbar {
    height: 46px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.72) !important;
    border-radius: 14px;
    background: rgba(255,255,255,.48) !important;
}

.skillbar-bar {
    height: 44px;
    background: linear-gradient(90deg, rgba(0,168,143,.72), rgba(22,119,255,.72)) !important;
}

.skillbar-title span,
.skill-bar-percent {
    height: 44px;
    line-height: 44px;
}

.cv-button {
    border: 1px solid rgba(18,33,44,.14) !important;
    border-radius: 14px;
    background: rgba(255,255,255,.58) !important;
    color: var(--ink) !important;
    box-shadow: 0 8px 20px rgba(8,33,48,.08);
}

.cv-button.primary,
.cv-button:hover {
    color: #fff !important;
    border-color: transparent !important;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
    box-shadow: 0 12px 28px rgba(12,119,179,.24);
    transform: translateY(-2px);
}

input,
textarea {
    border: 1px solid rgba(18,33,44,.10) !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.56) !important;
    color: var(--ink) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

input:focus,
textarea:focus {
    border-color: rgba(0,168,143,.55) !important;
    background: rgba(255,255,255,.82) !important;
    box-shadow: 0 0 0 4px rgba(0,168,143,.10);
}

.cvfilters li {
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 12px;
    background: rgba(255,255,255,.48) !important;
}

.cvfilters li.gridactive,
.cvfilters li:hover {
    color: #fff !important;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
}

.cvgrid li figure {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: var(--soft-shadow);
}

.cvgrid li figure figcaption {
    background: rgba(255,255,255,.78) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

hr {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(18,33,44,.15), transparent) !important;
}

@media only screen and (max-width: 1170px) {
    .cv-left-slider {
        left: 6px;
        width: calc(40% - 12px);
    }
}

@media only screen and (max-width: 1024px) {
    #cv-menu {
        left: 10px;
    }

    .cv-page-content {
        width: calc(100% - 30px);
        min-height: calc(100% - 30px);
        margin: 15px;
        padding: 42px;
        border-radius: 22px;
    }

    .img-mobile-only {
        margin: -42px -42px 38px;
        overflow: hidden;
        border-radius: 22px 22px 0 0;
    }
}

@media only screen and (max-width: 640px) {
    #cv-menu {
        top: auto;
        right: 10px;
        bottom: 10px;
        left: 10px;
        transform: none;
        padding: 6px;
        border-radius: 18px;
    }

    #cv-main-menu ul {
        display: flex;
        justify-content: space-between;
    }

    #cv-main-menu ul li a {
        width: 3.3em;
        height: 3.3em;
        line-height: 3.3em;
        margin: 0;
    }

    .floor {
        padding-left: 0;
        padding-bottom: 76px;
    }

    .cv-page-content {
        width: calc(100% - 20px);
        min-height: calc(100% - 20px);
        margin: 10px;
        padding: 28px 22px;
        border-radius: 20px;
    }

    .img-mobile-only {
        margin: -28px -22px 30px;
        border-radius: 20px 20px 0 0;
    }

    #home-title {
        right: 22px;
        left: 22px;
        top: 44%;
        bottom: auto;
        text-align: center;
    }

    #home-title h1 span {
        padding: 20px 8px 10px;
    }

    #home-title p {
        padding: 8px 14px 20px;
        font-size: 18px;
    }

    #cv-home-social-bar-container {
        left: 50%;
        bottom: 98px;
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Remove the legacy text sidebar (submenu, search, posts, categories and tags). */
#cv-sidebar,
#cv-sidebar-inner,
.cv-menu-button {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
