@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,400&display=swap');
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ── THEMES ── */

[data-theme="dark"] {
    --bg: #0c0c0f;
    --bg2: #111116;
    --bg3: #17171e;
    --bg4: #1e1e27;
    --border: rgba(255, 255, 255, 0.07);
    --border2: rgba(255, 255, 255, 0.13);
    --text: #e8e8f2;
    --text2: #8888a8;
    --text3: #484860;
    --chip-bg: rgba(255, 255, 255, 0.05);
    --chip-col: #7070a0;
}

[data-theme="light"] {
    --bg: #f0f0f4;
    --bg2: #ffffff;
    --bg3: #f7f7fa;
    --bg4: #ebebf0;
    --border: rgba(0, 0, 0, 0.07);
    --border2: rgba(0, 0, 0, 0.14);
    --text: #14141a;
    --text2: #5a5a78;
    --text3: #aaaabc;
    --chip-bg: rgba(0, 0, 0, 0.04);
    --chip-col: #606080;
}

:root {
    --hydra: #00d4ff;
    --hydra-bg: rgba(0, 212, 255, 0.07);
    --hydra-bd: rgba(0, 212, 255, 0.16);
    --s707: #ff9f1c;
    --s707-bg: rgba(255, 159, 28, 0.07);
    --s707-bd: rgba(255, 159, 28, 0.18);
}


/* ── BASE ── */

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    transition: background 0.25s, color 0.25s;
}

img {
    user-select: none;
    -webkit-user-select: none;
}

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


/* ── TOPBAR (mobile only) ── */

.topbar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 0 16px;
    height: 54px;
    align-items: center;
    justify-content: flex-start;
}

.topbar-name {
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}


/* ── LANG TOGGLE ── */

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border2);
    background: var(--bg3);
    cursor: pointer;
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text3);
    transition: all 0.2s;
}

.lang-toggle:hover {
    color: var(--text2);
}

.lang-sep {
    opacity: 0.3;
    font-weight: 400;
}

.lang-opt {
    transition: color 0.18s;
}

.lang-opt.lang-active {
    color: var(--text);
}


/* ── THEME TOGGLE ── */

.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border2);
    background: var(--bg3);
    color: var(--text2);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.theme-toggle:hover {
    color: var(--text);
}


/* ── LAYOUT ── */

main {
    display: flex;
    gap: 22px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 44px 22px 48px;
    align-items: flex-start;
}


/* ── SIDEBAR ── */

.sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 26px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 44px;
    transition: background 0.25s, border-color 0.25s;
}

.sidebar-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}


/* Avatar */

.avatar-wrap {
    position: relative;
    width: 100px;
    height: 100px;
}

.avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(var(--text3) 0deg, var(--text2) 180deg, var(--text3) 360deg);
    animation: spin 10s linear infinite;
    opacity: 0.55;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.avatar-wrap img {
    position: relative;
    z-index: 1;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--bg2);
    display: block;
    transition: border-color 0.25s;
}


/* Name & tag */

.sidebar-name-area {
    text-align: center;
}

.sidebar-name-area h1 {
    font-family: 'Syne', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 5px;
}

.owner-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--text3);
    background: var(--chip-bg);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 3px 11px;
}


/* Socials */

.socials {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.soc {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--text3);
    background: var(--bg3);
    border: 1px solid var(--border);
    transition: all 0.18s;
    cursor: pointer;
}

.soc:hover {
    transform: translateY(-2px);
}

.discord:hover {
    color: #5865f2;
    border-color: rgba(88, 101, 242, 0.35);
    background: rgba(88, 101, 242, 0.07);
}

.github:hover {
    color: var(--text);
    border-color: var(--border2);
}

.youtube:hover {
    color: #ff0000;
    border-color: rgba(255, 0, 0, 0.25);
    background: rgba(255, 0, 0, 0.05);
}

.twitch:hover {
    color: #9147ff;
    border-color: rgba(145, 71, 255, 0.3);
    background: rgba(145, 71, 255, 0.06);
}


/* Divider */

.sep {
    height: 1px;
    background: var(--border);
}


/* Info list */

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 11px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 12.5px;
}

.i-ic {
    color: var(--text3);
    width: 13px;
    text-align: center;
    flex-shrink: 0;
    font-size: 11.5px;
}

.i-lb {
    color: var(--text3);
    flex-shrink: 0;
}

.i-vl {
    margin-left: auto;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.i-vl.dim {
    color: var(--text3);
    font-weight: 400;
}

.i-vl.accent {
    color: var(--text2);
    font-weight: 400;
    font-size: 11.5px;
    transition: color 0.15s;
    cursor: pointer;
}

.i-vl.accent:hover {
    color: var(--text);
}


/* Stats */

.stats-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 14px 8px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.stat-lb {
    font-size: 11px;
    color: var(--text3);
}

.stat-div {
    width: 1px;
    height: 28px;
    background: var(--border);
}


/* ── CONTENT ── */

.content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* Cards */

.card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 26px 26px 22px;
    transition: background 0.25s, border-color 0.25s;
}

.card:hover {
    border-color: var(--border2);
}

.card-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.card-hd-left {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.card-hd-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.eyebrow {
    display: block;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--text3);
    margin-bottom: 5px;
}

.card-hd h2 {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}


/* Bio */

.bio {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text2);
}

.bio strong {
    color: var(--text);
    font-weight: 500;
}


/* Skill bars */

.bars {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 18px;
}

.br-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 7px;
}

.br-sub {
    font-size: 11px;
    font-weight: 400;
    color: var(--text3);
    margin-left: 6px;
}

.br-pct {
    font-size: 12px;
    font-weight: 400;
    color: var(--text3);
}

.br-track {
    height: 4px;
    background: var(--bg4);
    border-radius: 99px;
    overflow: hidden;
}

.br-fill {
    height: 100%;
    width: var(--p);
    border-radius: 99px;
    animation: grow 1.1s cubic-bezier(.4, 0, .2, 1) both;
}

[data-theme="dark"] .br-fill {
    background: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .br-fill {
    background: rgba(0, 0, 0, 0.4);
}

@keyframes grow {
    from {
        width: 0;
    }
    to {
        width: var(--p);
    }
}


/* Chips */

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.chips span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 99px;
    background: var(--chip-bg);
    border: 1px solid var(--border);
    color: var(--chip-col);
    transition: border-color 0.18s, color 0.18s;
}

.chips span i {
    font-size: 11px;
}

.chips span:hover {
    border-color: var(--border2);
    color: var(--text2);
}


/* Projects */

.projects {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.proj {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color 0.22s, transform 0.22s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.proj:hover {
    transform: translateX(4px);
}

.hydra-proj:hover {
    border-color: var(--hydra-bd);
}

.s707-proj:hover {
    border-color: var(--s707-bd);
}

.proj-accent-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.hydra-bar {
    background: var(--hydra);
}

.s707-bar {
    background: var(--s707);
}

.proj-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.hydra-ic {
    background: var(--hydra-bg);
    border: 1px solid var(--hydra-bd);
    color: var(--hydra);
}

.s707-ic {
    background: var(--s707-bg);
    border: 1px solid var(--s707-bd);
    color: var(--s707);
}

.proj-body {
    flex: 1;
    min-width: 0;
}

.proj-title-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 7px;
}

.proj-title-row h3 {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.proj-badge {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 99px;
}

.hydra-badge {
    background: var(--hydra-bg);
    border: 1px solid var(--hydra-bd);
    color: var(--hydra);
}

.s707-badge {
    background: var(--s707-bg);
    border: 1px solid var(--s707-bd);
    color: var(--s707);
}

.proj-body p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text2);
    margin-bottom: 10px;
}

.proj-body p strong {
    color: var(--text);
    font-weight: 500;
}

.proj-url {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: var(--text3);
    transition: color 0.18s;
}

.hydra-proj:hover .proj-url {
    color: var(--hydra);
}

.s707-proj:hover .proj-url {
    color: var(--s707);
}


/* ── FOOTER ── */

.page-footer {
    width: 100%;
    border-top: 1px solid var(--border);
    padding: 20px 24px 28px;
    transition: border-color 0.25s;
}

.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12.5px;
    color: var(--text3);
}

.footer-inner strong {
    color: var(--text2);
    font-weight: 500;
}

.footer-inner a {
    color: var(--text3);
    transition: color 0.15s;
    cursor: pointer;
}

.footer-inner a:hover {
    color: var(--text);
}

.footer-dot {
    opacity: 0.35;
}


/* ── RESPONSIVE ── */

@media (max-width: 820px) {
    main {
        flex-direction: column;
        padding: 20px 16px 48px;
        gap: 16px;
    }
    .sidebar {
        width: 100%;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
        padding: 20px;
    }
    .sidebar-top {
        flex-direction: row;
        align-items: center;
        gap: 14px;
        width: 100%;
    }
    .sidebar-name-area {
        text-align: left;
        flex: 1;
    }
    .avatar-ring,
    .avatar-wrap {
        width: 72px;
        height: 72px;
    }
    .avatar-wrap img {
        width: 72px;
        height: 72px;
    }
    .socials {
        width: 100%;
        justify-content: flex-start;
    }
    .sep {
        width: 100%;
    }
    .info-list {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .stats-row {
        width: 100%;
    }
}

@media (max-width: 540px) {
    .topbar {
        display: flex;
    }
    main {
        padding: 14px 12px 48px;
        gap: 12px;
    }
    .sidebar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 22px 16px 18px;
        gap: 14px;
    }
    .sidebar-top {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .sidebar-name-area {
        text-align: center;
    }
    .avatar-ring,
    .avatar-wrap {
        width: 88px;
        height: 88px;
    }
    .avatar-wrap img {
        width: 88px;
        height: 88px;
    }
    .socials {
        justify-content: center;
    }
    .info-list {
        display: flex;
        flex-direction: column;
        gap: 6px;
        width: 100%;
    }
    .stats-row {
        width: 100%;
    }
    .card {
        padding: 18px 16px 16px;
        border-radius: 14px;
    }
    .card-hd h2 {
        font-size: 17px;
    }
    .proj {
        padding: 15px 15px 15px 18px;
        gap: 13px;
    }
    .proj-icon {
        width: 42px;
        height: 42px;
        font-size: 17px;
        border-radius: 11px;
        -webkit-border-radius: 11px;
        -moz-border-radius: 11px;
        -ms-border-radius: 11px;
        -o-border-radius: 11px;
    }
}