:root {
    color-scheme: dark;
    --bg: #05060c;
    --panel: rgba(19, 22, 32, 0.64);
    --panel-strong: rgba(25, 28, 43, 0.78);
    --panel-border: rgba(255, 255, 255, 0.16);
    --white: #f7fbff;
    --muted: #a8b0c2;
    --soft: #747d92;
    --pink: #ff3da8;
    --pink-soft: #ff8bd0;
    --lime: #c7ff3f;
    --lime-soft: #dfff8e;
    --green: #37ff41;
    --cyan: #66f1ff;
    --shadow-pink: rgba(255, 61, 168, 0.34);
    --shadow-lime: rgba(199, 255, 63, 0.22);
    --radius: 8px;
    --radius-lg: 18px;
    --blur: blur(22px) saturate(1.25);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

* {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

@keyframes splashFade {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }

    30% {
        opacity: 0.8;
        transform: translateY(0);
    }

    70% {
        opacity: 0.8;
        transform: translateY(0);
    }

    90% {
        opacity: 0;
        transform: translateY(-12px);
    }

    100% {
        opacity: 0;
        transform: translateY(12px);
    }
}

.splash-box {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 0 16px;
    text-align: center;
}

#splash-content {
    font-size: clamp(1.5rem, 3vw, 2.85rem);
    line-height: 1.1;
    font-weight: 800;
    background: linear-gradient(90deg, var(--pink), var(--lime));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: splashFade 4s infinite;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--white);
    min-width: 320px;
}

.desktop {
    position: relative;
    width: 100vw;
    height: 100dvh;
    min-height: 640px;
    padding: clamp(16px, 2.4vw, 30px);
    overflow: hidden;
    background: radial-gradient(circle at center, #141424 0%, #10111a 42%, #06070d 100%);
    isolation: isolate;
}

.desktop::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(135deg, rgba(255, 61, 168, 0.16) 0 1px, transparent 1px 18px);
    background-size: 8px 8px, 18px 18px;
    mask-image: radial-gradient(circle at center, black 0%, transparent 78%);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 3.85rem);
    line-height: 0.96;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(1.15rem, 2.4vw, 2rem);
    line-height: 1.05;
}

h3 {
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.2;
}

p {
    color: var(--muted);
    line-height: 1.55;
}

.glass-panel,
.glass-window {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)), var(--panel);
    border: 1px solid var(--panel-border);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 24px 80px rgba(0, 0, 0, 0.44),
        0 0 38px rgba(255, 61, 168, 0.08);
    backdrop-filter: var(--blur);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    animation: fadeInUp 1s ease forwards;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    display: grid;
    place-items: center;
    width: 58px;
    aspect-ratio: 1;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 61, 168, 0.95), rgba(199, 255, 63, 0.88)), #161924;
    color: #081009;
    font-weight: 800;
    box-shadow: 0 0 28px var(--shadow-pink);
    font-size: 1.15rem;
}

.eyebrow {
    margin: 0 0 5px;
    color: var(--lime);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-links .icon {
    display: grid;
    place-items: center;
    width: 40px;
    aspect-ratio: 1;
    border-radius: 8px;
    color: var(--white);
    transition: 0.3s ease;
}

.social-links .icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.social-links .icon:nth-child(1):hover {
    background: linear-gradient(145deg, rgba(61, 145, 255, 0.95), rgba(63, 108, 255, 0.88)), #161924;
    box-shadow: 0 0 28px var(rgba(63, 108, 255, 0.22));
    transform: scale(1.1);
}

.social-links .icon:nth-child(2):hover {
    background: linear-gradient(145deg, rgba(135, 61, 255, 0.95), rgba(255, 23, 100, 0.911), rgba(255, 220, 63, 0.88)), #161924;
    box-shadow: 0 0 28px var(rgba(255, 23, 100, 0.22));
    transform: scale(1.1);
}

.social-links .icon:nth-child(3):hover {
    background: linear-gradient(145deg, rgba(63, 146, 255, 0.95), rgba(53, 236, 36, 0.88)), #161924;
    box-shadow: 0 0 28px var(--shadow-lime);
    transform: scale(1.1);
}

.window-stack {
    position: absolute;
    inset: 104px clamp(16px, 2.4vw, 30px) 94px clamp(16px, 2.4vw, 30px);
    pointer-events: none;
    z-index: 10;
}

.window {
    position: absolute;
    inset: 0;
    max-width: 980px;
    max-height: 650px;
    margin: auto;
    border-radius: var(--radius-lg);
    opacity: 0;
    transform: translateY(22px) scale(0.97);
    pointer-events: none;
    transition: opacity 260ms ease, transform 260ms ease;
    overflow: hidden;
}

.panel {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    padding: 22px;
    transition: 0.3s ease;
}

.panel:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: scale(1.01);
}

.window-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.window-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--panel-border);
    cursor: pointer;
    transition: 0.3s ease;
}

.window-close-btn:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    transform: scale(1.1);
}

.about-content {
    padding: 22px;
    height: calc(100% - 90px);
    display: flex;
    flex-direction: row;
    gap: 22px;
}

.profile-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 40%;
}

.profile-card h1 {
    font-size: clamp(1.5rem, 3vw, 2.85rem);
}

.profile-card .personal-info {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--lime);
    flex-wrap: wrap;
}

.personal-info h3 {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    vertical-align: middle;
    text-transform: uppercase;
    background-color: rgba(255, 255, 255, 0.08);
    padding: 8px 12px 6px;
    border-radius: 999px;
    margin: 0;
}

.stack-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 60%;
    overflow: auto;
}

.stack-card::-webkit-scrollbar,
.projects-content::-webkit-scrollbar,
.files-content::-webkit-scrollbar,
.posts-content::-webkit-scrollbar,
.arts-content::-webkit-scrollbar {
    background-color: transparent;
    width: 10px;
}

.stack-card::-webkit-scrollbar-thumb,
.projects-content::-webkit-scrollbar-thumb,
.files-content::-webkit-scrollbar-thumb,
.posts-content::-webkit-scrollbar-thumb,
.arts-content::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

.stack-card::-webkit-scrollbar-thumb:hover,
.projects-content::-webkit-scrollbar-thumb:hover,
.files-content::-webkit-scrollbar-thumb:hover,
.posts-content::-webkit-scrollbar-thumb:hover,
.arts-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.16);
}

.tag-row,
.project-tags,
.file-meta,
.art-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span,
.project-tags span,
.file-meta span,
.art-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.skill-meter {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.skill-meter span {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
}

.skill-meter i,
.progress-bar {
    display: block;
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.skill-meter i::before,
.progress-bar i {
    content: "";
    display: block;
    width: var(--fill);
    height: 100%;
    border-radius: inherit;
    box-shadow: 0 0 16px var(--shadow-pink);
}

.skill-meter.coding i::before {
    background: linear-gradient(90deg, var(--lime), var(--lime-soft));
}

.skill-meter.language i::before {
    background: linear-gradient(90deg, var(--pink), var(--pink-soft));
}

.timeline {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.timeline div {
    display: grid;
    grid-template-columns: 105px 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.055);
}

.timeline time {
    color: var(--lime);
    font-weight: 800;
}

.timeline span {
    color: var(--muted);
    font-size: 0.9rem;
}

.projects-content {
    height: calc(100% - 90px);
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 22px;
    gap: 12px;
    overflow: auto;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: fit-content;
    padding: 18px;
}

.project-card p {
    flex: 1;
}

.project-card.highlighted {
    background:
        linear-gradient(150deg, rgba(255, 61, 168, 0.18), rgba(199, 255, 63, 0.08)),
        rgba(255, 255, 255, 0.07);
}

.card-topline,
.post-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.project-type,
.progress-label {
    color: var(--lime);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.progress-label {
    color: var(--pink-soft);
}

.progress-bar {
    margin-bottom: 14px;
}

.progress-bar i {
    background: linear-gradient(90deg, var(--pink), var(--pink-soft));
}

.open-project{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 12px;
}

.open-project a {
    width: fit-content;
    display: inline-flex;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--lime), var(--green));
    color: #071107;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 0 20px var(--shadow-lime);
    transition: 0.3s ease;
}

.open-project a:hover {
    background: linear-gradient(135deg, var(--lime), var(--green));
    box-shadow: 0 0 28px var(--shadow-lime);
    transform: scale(1.05);
}

.files-content {
    height: calc(100% - 90px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 13px;
    padding: 22px;
    overflow: auto;
}

.file-card {
    display: grid;
    grid-template-columns: 64px 1fr auto auto;
    height: fit-content;
    align-items: center;
    gap: 15px;
    padding: 16px;
}

.file-icon {
    display: grid;
    place-items: center;
    width: 58px;
    aspect-ratio: 1;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(102, 241, 255, 0.24), rgba(255, 61, 168, 0.22));
    color: var(--white);
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.file-card a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--lime), var(--green));
    color: #071107;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 0 20px var(--shadow-lime);
    transition: 0.3s ease;
}

.file-card a:last-of-type {
    background: linear-gradient(135deg, var(--pink-soft), var(--pink));
    box-shadow: 0 0 20px var(--shadow-pink);
}

.file-card a:hover {
    transform: scale(1.05);
}

.posts-content {
    height: calc(100% - 90px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 22px;
    overflow: auto;
}

.post-card {
    display: flex;
    flex-direction: column;
    max-height: 500px;
    padding: 18px;
}

.publish-date {
    color: var(--muted);
    font-size: 0.7rem;
    letter-spacing: 0;
    text-shadow: 0 0 12px var(--shadow-lime);
    white-space: nowrap;
}

.post-card img {
    text-align: center;
    width: 100%;
    max-height: 250px;
    border-radius: var(--radius);
    margin: 12px 0;
    object-fit: cover;
}

.reaction-panel {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    gap: 18px;
    margin-top: auto;
    padding: 5px 12px;
    border-radius: 999px;
}

.reaction-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 3px 15px 3px 11px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--panel-border);
    cursor: pointer;
    transition: 0.3s ease;
}

.reaction-button span {
    font-size: 1.1rem;
}

.reaction-count {
    margin: 0;
    font-size: 0.82rem;
}

.reaction-button:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.reaction-button.reacting {
    pointer-events: none;
    background: linear-gradient(135deg, var(--lime-soft), var(--pink-soft));
    transform: scale(1.1);
}

.reaction-button.reacting .reaction-count {
    color: #071107;
}

.arts-content {
    height: calc(100% - 90px);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    padding: 22px;
    overflow: auto;
}

.art-card {
    display: flex;
    flex-direction: column;
    max-height: 375px;
    padding: 18px;
    gap: 12px;
}

.art-card img {
    text-align: center;
    width: 100%;
    max-height: 250px;
    border-radius: var(--radius);
    object-fit: cover;
}

.zoomed-image-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    height: 80vh;
    z-index: 30;
    cursor: zoom-out;
    animation: fadeInUp 0.3s ease forwards;
}

.zoomed-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.navigation {
    opacity: 0;
    position: absolute;
    left: 50%;
    bottom: 24px;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    transform: translateX(-50%);
    animation: fadeInUp 0.6s ease 0.4s forwards;
}

.nav-info {
    opacity: 0;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: 0.2s ease;
}

.dock {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 10px 12px;
    border-radius: 999px;
    z-index: 20;
    transition: 0.3s ease;
}

input[type="radio"] {
    display: none;
}

.dock label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}

.dock label:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
}

#panel-home:checked~.desktop label[for="panel-home"],
#panel-about:checked~.desktop label[for="panel-about"],
#panel-projects:checked~.desktop label[for="panel-projects"],
#panel-files:checked~.desktop label[for="panel-files"],
#panel-posts:checked~.desktop label[for="panel-posts"],
#panel-arts:checked~.desktop label[for="panel-arts"] {
    color: #071107;
    background: linear-gradient(135deg, var(--lime), var(--green));
    box-shadow: 0 0 24px var(--shadow-lime);
    transform: scale(1.1);
}

#panel-about:checked~.desktop .window-about,
#panel-projects:checked~.desktop .window-projects,
#panel-files:checked~.desktop .window-files,
#panel-posts:checked~.desktop .window-posts,
#panel-arts:checked~.desktop .window-arts {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media screen and (max-width: 700px) {
    .posts-content {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 550px) {
    .window-stack {
        inset: 104px 16px 120px 16px;
    }

    .about-content {
        flex-direction: column;
        overflow: auto;
    }

    .profile-card,
    .stack-card {
        width: 100%;
        min-height: 400px;
    }
    
    .profile-card {
        height: fit-content;
    }

    .dock {
        gap: 8px;
    }

    .dock label{
        min-width: 64px;
        padding: 0 10px;
        font-size: 0.68rem;
    }

    .file-card {
        grid-template-columns: 48px 1fr;
    }

    .file-card a {
        width: fit-content;
        margin: auto 0 0 auto;
    }
}