:root {
    --textColor: #ffffff;
    --textColorDarker: rgba(255, 255, 255, 0.5);
    --iconColor: #ffffff;
    --backgroundColor: #1b1b1b;
    --containerColor: rgba(28, 28, 28, 0.4);
    --containerBlur: 25px;
    --containerBorder: 2px solid rgba(39, 39, 39, 0.2);
    --containerRadius: 40px;
    --containerWidth: 64rem;
    --containerPadding: 26px;
    --presenceContainerBackground: rgba(255, 255, 255, 0.07);
    --presenceContainerBorder: 2px solid rgba(255, 255, 255, 0.05);
    --badgeContainerBackground: rgba(255, 255, 255, 0.08);
    --badgeContainerBorder: 2px solid rgba(255, 255, 255, 0.04);
    --progessBarFull: rgba(255, 255, 255, 0.3);
    --progessBarPlaying: #ffffff;
    --controlButtonsOther: rgba(255, 255, 255, 0.5);
    --controlButtonPlaying: #ffffff;
    --controlTextColor: rgba(255, 255, 255, 0.7);
    --font: "Chillax", "Onest", system-ui, sans-serif;
}

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

html, body {
    margin: 0;
    height: 100%;
    scrollbar-width: none;
}

body::-webkit-scrollbar,
.portfolio::-webkit-scrollbar { display: none; }

body {
    font-family: var(--font);
    color: var(--textColor);
    background: var(--backgroundColor);
    overflow: hidden;
}

.portfolio {
    position: relative;
    z-index: 1;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.panel {
    min-height: 100vh;
    min-height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem 4.5rem;
    box-sizing: border-box;
}

.panel-inner {
    width: min(100%, 64rem);
    margin: 0 auto;
}

.hero .panel-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
}

.music-inner {
    width: min(100%, 48rem);
}

.panel .panel-inner {
    opacity: 0.35;
    transform: scale(0.94);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.panel.is-active .panel-inner {
    opacity: 1;
    transform: scale(1);
}

.section-dots {
    position: fixed;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.section-dots button {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, height 0.2s ease;
}

.section-dots button.is-active {
    background: #fff;
    height: 22px;
}

.fixed-meta {
    position: fixed;
    z-index: 40;
    left: 15px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 550;
    pointer-events: none;
}

.fixed-meta svg {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    margin-right: 4px;
}

.fixed-meta .sep {
    opacity: 0.45;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(80, 90, 140, 0.35), transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(40, 60, 90, 0.4), transparent 45%),
        linear-gradient(180deg, #0a0c12 0%, #151820 50%, #0b0d12 100%);
    background-size: cover;
    background-position: center;
}

.page-dim {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(0, 0, 0, 0.55);
}

.snow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.flake {
    position: absolute;
    top: -10%;
    color: #fff;
    opacity: 0.55;
    font-size: 10px;
    animation: fall linear infinite;
    text-shadow: 0 0 5px #000;
}

@keyframes fall {
    to { transform: translateY(110vh); }
}

.enter {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.775);
    backdrop-filter: blur(15px);
    transition: opacity 0.75s ease;
}

.enter.hide {
    opacity: 0;
    pointer-events: none;
}

.enter button {
    border: 0;
    background: transparent;
    color: #fafafa;
    font: inherit;
    font-size: 30px;
    font-weight: 700;
    cursor: pointer;
}

.portfolio {
    /* handled above */
}

.section {
    /* panels own spacing */
}

.hero {
    animation: none;
}

@keyframes pop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.avatar {
    width: 118px;
    height: 118px;
    border-radius: 22px;
    object-fit: cover;
    border: 2px solid rgba(39, 39, 39, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}

.hero-title h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    text-shadow: 0 0 16.5px #fff;
}

.badges {
    display: flex;
    gap: 5.5px;
    padding: 6px 10px;
    border-radius: 25px;
    background: var(--badgeContainerBackground);
    border: var(--badgeContainerBorder);
    align-items: center;
}

.badge {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: #ffffff;
    filter: drop-shadow(#ffffff 0 0 2.5px);
}

.badge svg {
    width: 100%;
    height: 100%;
}

.badge-staff { color: #ffffff; filter: drop-shadow(#ffffff 0 0 2.5px); }
.badge-bughunter { color: #ffffff; filter: drop-shadow(#ffffff 0 0 2.5px); }
.badge-verified { color: #ffffff; filter: drop-shadow(#ffffff 0 0 2.5px); }
.badge-og { color: #ffffff; filter: drop-shadow(#ffffff 0 0 2.5px); }
.badge-summer { color: #ffffff; filter: drop-shadow(#ffffff 0 0 2.5px); }

.typewriter {
    margin: 0.2rem 0 0;
    font-size: 17px;
    font-weight: 570;
    min-height: 1.4em;
}

.type-cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin-top: 18px;
}

.soc {
    color: #fff;
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    transition: transform 0.3s;
    filter: drop-shadow(#fff 1px 0 7px);
}

.soc:hover { transform: scale(1.1); }
.soc svg { width: 100%; height: 100%; }
.soc.discord { color: #5865f2; filter: drop-shadow(#5865f2 1px 0 7px); }
.soc.telegram { color: #2aabee; filter: drop-shadow(#2aabee 1px 0 7px); }

.meta-row {
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 550;
}

.meta-row svg {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    margin-right: 4px;
}

.sep { opacity: 0.45; }

.scroll-more {
    margin-top: 2rem;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    opacity: 0.85;
}

.scroll-more svg { width: 1.25rem; height: 1.25rem; }

.about h2,
.projects h2 {
    margin: 0 0 0.75rem;
    font-size: 36px;
    font-weight: 700;
}

.about-text {
    margin: 0 0 1.25rem;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 800px) {
    .about-cards {
        grid-template-columns: 1fr;
    }

    .hero-title h1 {
        font-size: 30px;
    }

    .about h2,
    .projects h2 {
        font-size: 28px;
    }
}

.glass {
    background: var(--containerColor);
    border: var(--containerBorder);
    border-radius: var(--containerRadius);
    backdrop-filter: blur(var(--containerBlur));
    -webkit-backdrop-filter: blur(var(--containerBlur));
}

.presence-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 25px;
    background: var(--presenceContainerBackground);
    border: var(--presenceContainerBorder);
}

.presence-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: cover;
}

.presence-card strong {
    display: block;
    font-size: 18.5px;
    font-weight: 550;
}

.presence-card p {
    margin: 0.15rem 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13.5px;
}

.clock-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 25px;
    background: var(--presenceContainerBackground);
    border: var(--presenceContainerBorder);
}

.clock-face {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #141414;
    border: 1.5px solid #303030;
    flex-shrink: 0;
}

.hand {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform-origin: bottom center;
    border-radius: 999px;
    background: #f0f0f0;
}

.hand.hour { width: 3.5px; height: 18px; margin-left: -1.75px; }
.hand.minute { width: 2.2px; height: 24px; margin-left: -1.1px; }
.hand.second { width: 1.3px; height: 26px; margin-left: -0.65px; background: #f04040; }

.clock-center {
    position: absolute;
    inset: 50%;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: #f04040;
    box-shadow: 0 0 0 1.5px #f0f0f0 inset;
}

.clock-time {
    font-size: 18px;
    font-weight: 450;
}

.clock-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.clock-hint {
    margin-top: 0.35rem;
    font-size: 12px;
    opacity: 0.55;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags span {
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

.audio-player {
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 15px;
    isolation: isolate;
}

.audio-blur {
    position: absolute;
    inset: -18%;
    background-size: cover;
    background-position: center;
    filter: blur(58px) saturate(155%) brightness(0.55);
    opacity: 0.62;
    z-index: 0;
}

.audio-cover {
    position: relative;
    z-index: 1;
    width: 65px;
    height: 65px;
    border-radius: calc(var(--containerRadius) - 10px);
    object-fit: cover;
}

.audio-main {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.audio-main h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-artist {
    margin: 0.15rem 0 0.5rem;
    font-size: 13px;
    color: var(--controlTextColor);
}

.audio-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 9px;
    align-items: center;
    font-size: 14px;
    color: var(--controlTextColor);
}

.seek-wrap {
    display: flex;
    align-items: center;
    height: 18px;
}

.audio-row input[type="range"] {
    width: 100%;
    accent-color: #fff;
    height: 4px;
    cursor: pointer;
}

.audio-controls {
    display: flex;
    gap: 2px;
    align-items: center;
    margin-top: 0.45rem;
}

.audio-controls button {
    border: 0;
    background: transparent;
    color: var(--controlButtonsOther);
    cursor: pointer;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
}

.audio-controls button svg {
    width: 26px;
    height: 26px;
}

#btn-play {
    color: var(--controlButtonPlaying);
    position: relative;
}

#btn-play svg {
    width: 32px;
    height: 32px;
}

#btn-play .icon-pause {
    display: none;
}

#btn-play.is-playing .icon-play {
    display: none;
}

#btn-play.is-playing .icon-pause {
    display: block;
}

.lyrics-box {
    margin-top: 12px;
    padding: 0;
    min-height: 220px;
    height: min(42vh, 280px);
    border-radius: max(5px, calc(var(--containerRadius) - 6px));
    position: relative;
    overflow: hidden;
}

.lyrics-box::before,
.lyrics-box::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 28%;
    z-index: 2;
    pointer-events: none;
}

.lyrics-box::before {
    top: 0;
    background: linear-gradient(180deg, rgba(20, 20, 22, 0.85), transparent);
}

.lyrics-box::after {
    bottom: 0;
    background: linear-gradient(0deg, rgba(20, 20, 22, 0.85), transparent);
}

.lyrics-track {
    position: relative;
    height: 100%;
}

.lyrics-line {
    --lineOpacity: 0.28;
    margin: 0;
    position: absolute;
    left: 40px;
    right: 24px;
    top: 50%;
    color: color-mix(in srgb, var(--textColor) 70%, #aaa);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    transform: translateY(calc((var(--lyrics-offset, 0) * 58px) - 50%)) scale(0.97);
    opacity: var(--lineOpacity);
    filter: blur(1.4px);
    transition: transform 0.44s cubic-bezier(0.22, 0.9, 0.3, 1), opacity 0.32s ease, filter 0.28s ease, color 0.26s ease;
    height: 54px;
    display: flex;
    align-items: center;
}

.lyrics-line.near {
    --lineOpacity: 0.55;
    filter: blur(0.5px);
}

.lyrics-line.active {
    --lineOpacity: 1;
    color: #fff;
    filter: blur(0);
    transform: translateY(calc((var(--lyrics-offset, 0) * 58px) - 50%)) scale(1);
    text-shadow: 0 1px 8px rgba(255, 255, 255, 0.18);
}

.lyrics-line.far {
    --lineOpacity: 0.12;
    filter: blur(2.2px);
}

.project-card {
    position: relative;
    display: block;
    height: 300px;
    border-radius: var(--containerRadius);
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    border: var(--containerBorder);
}

.project-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.45s ease;
}

.project-card:hover .project-bg {
    transform: scale(1.05);
}

.project-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent 55%);
}

.project-tags {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 0.4rem;
    z-index: 1;
}

.project-tags span {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    font-size: 12px;
}

.project-copy {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 1;
    max-width: 80%;
}

.project-copy h3 {
    margin: 0;
    font-size: 28px;
}

.project-copy p {
    margin: 0.35rem 0 0;
    color: rgba(255, 255, 255, 0.8);
}

.project-visit {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.25s ease;
    font-weight: 600;
}

.project-card:hover .project-visit {
    opacity: 1;
}

.meta-row { display: none; }

@media (max-width: 700px) {
    .section-dots {
        right: 0.55rem;
    }

    .fixed-meta {
        left: 10px;
        bottom: 10px;
        font-size: 12.5px;
    }

    .lyrics-box {
        min-height: 220px;
        height: 240px;
    }
}
