@import url('https://fonts.cdnfonts.com/css/chillax');

:root {
    --fg: 255, 255, 255;
    --text-color: #fff;
    --text-muted: rgba(var(--fg), 0.75);
    --text-dim: rgba(var(--fg), 0.4);
    --text-faint: rgba(var(--fg), 0.28);
    --bg: #000;
    --surface: #0c0c0e;
    --border-color: rgba(var(--fg), 0.12);
    --border-hover: rgba(var(--fg), 0.22);
    --card-shadow: 0 18px 44px rgba(0,0,0,0.45);
    --card-shadow-hover: 0 22px 54px rgba(0,0,0,0.5);
    --radius: 8px;
    --t-fast: 0.15s ease;
    --t-med: 0.2s ease;
    --card-radius: 18px;
}

html[data-theme="light"] {
    --fg: 20, 20, 24;
    --text-color: #141418;
    --text-muted: rgba(20,20,24,0.82);
    --text-dim: rgba(20,20,24,0.62);
    --text-faint: rgba(20,20,24,0.48);
    --bg: #f6f6f7;
    --surface: #fff;
    --card-shadow: 0 20px 60px rgba(0,0,0,0.16);
    --card-shadow-hover: 0 22px 54px rgba(0,0,0,0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scrollbar-width: none;
    height: 100%;
    overflow: hidden;
}

html::-webkit-scrollbar { display: none; }

body {
    font-family: 'Chillax', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-color);
    height: 100%;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
    transition: background-color 0.5s cubic-bezier(0.22,1,0.36,1);
    cursor: default;
}

a, button, [role="button"] {
    cursor: pointer;
}

::selection {
    background: rgba(var(--fg), 0.1);
    color: var(--text-color);
}

/* ─── Nav Dots ─── */
.nav-dots {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-dim);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.nav-dot.active {
    background: var(--text-color);
    transform: scale(1.4);
    box-shadow: 0 0 6px var(--text-color);
}

/* ─── Sections wrapper ─── */
.sections {
    position: relative;
    z-index: 1;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}

.sections::-webkit-scrollbar { display: none; }

/* ─── Individual section ─── */
.section {
    position: relative;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* ═══ HERO SECTION ═══ */
.hero-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 2;
    animation: heroEntrance 0.8s cubic-bezier(0.22,1,0.36,1) 0.3s both;
}

@keyframes heroEntrance {
    0% { opacity: 0; transform: translateY(20px) scale(0.98); filter: blur(6px); }
    100% { opacity: 1; transform: none; filter: blur(0); }
}

/* ─── Discord Card ─── */
.dc-card {
    width: 560px;
    max-width: 92vw;
    background: rgba(0,0,0,0.45);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 24px;
    box-shadow: var(--card-shadow);
    transition: border-color 0.25s ease;
}

.dc-top {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dc-av {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.dc-av-img {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    object-fit: cover;
    display: block;
}

.dc-status-pip {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2.5px solid #000;
    display: block;
}

.dc-status-pip.online { background: #3ba55c; }
.dc-status-pip.idle { background: #faa81a; }
.dc-status-pip.dnd { background: #ed4245; }
.dc-status-pip.offline { background: #747f8d; }

.dc-meta {
    flex: 1;
    min-width: 0;
}

.dc-name-line {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.dc-name {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--text-color);
}

.dc-name-line #dcBadges {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.dc-name-line .badge-badge .iconify {
    width: 16px;
    height: 16px;
    opacity: 0.9;
}

.dc-name-line #dcClientStatus {
    font-size: 0.85em;
    color: var(--text-dim);
}

.dc-last {
    font-size: 0.8em;
    color: var(--text-muted);
    margin-top: 2px;
}

.dc-tag {
    font-size: 0.78em;
    color: var(--text-faint);
    margin-top: 1px;
}

.dc-divider {
    height: 1px;
    background: var(--border-color);
    margin: 14px 0 12px;
}

.dc-activity {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

.act-empty {
    display: none;
    padding: 6px 0;
    font-size: 0.85em;
    color: var(--text-muted);
}

.act-card {
    display: none;
    background: rgba(var(--fg), 0.04);
    border-radius: 12px;
    overflow: hidden;
    transition: background 0.2s ease;
}

.act-card:hover {
    background: rgba(var(--fg), 0.08);
}

.act-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
}

.act-cover {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.act-info {
    flex: 1;
    min-width: 0;
}

.act-tag {
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 2px;
}

.act-title {
    font-size: 0.9em;
    color: var(--text-color);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.act-sub {
    font-size: 0.8em;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.act-time {
    font-size: 0.75em;
    color: var(--text-faint);
    margin-top: 1px;
}

#activityLabelNothing {
    color: var(--text-muted);
}

/* ═══ CARD SECTIONS (About, Recent, Skills, Links) ═══ */
.sec-cards {
    padding: 70px 20px;
}

.sec-inner {
    width: 640px;
    max-width: 92vw;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sec-inner > * {
    opacity: 0;
    visibility: hidden;
    transform: translateY(26px);
    transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1), visibility 0s 0.65s;
}

.sec-in .sec-inner > * {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1), visibility 0s;
}

.sec-inner > :nth-child(1) { transition-delay: 0s; }
.sec-inner > :nth-child(2) { transition-delay: 0.07s; }
.sec-inner > :nth-child(3) { transition-delay: 0.14s; }
.sec-inner > :nth-child(4) { transition-delay: 0.21s; }
.sec-inner > :nth-child(5) { transition-delay: 0.28s; }
.sec-inner > :nth-child(6) { transition-delay: 0.35s; }

/* Section Title */
.sec-title {
    position: relative;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-align: center;
    color: var(--text-color);
    text-transform: uppercase;
    padding: 10px 0 14px;
}

.sec-title::before {
    content: "\2726\2002";
    opacity: 0.35;
    font-size: 0.8em;
}

.sec-title::after {
    content: "\2002\2726";
    opacity: 0.35;
    font-size: 0.8em;
}

/* Base Card */
.card {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

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

/* About Card */
.about-card {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* Recent Card */
.recent-card {
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.recent-empty {
    font-size: 12px;
    color: var(--text-faint);
    text-align: center;
    padding: 28px 20px;
    font-style: italic;
}

.recent-list {
    display: flex;
    flex-direction: column;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-muted);
    transition: background var(--t-fast), color var(--t-fast);
}

.recent-item + .recent-item {
    border-top: 1px solid var(--border-color);
}

.recent-item:hover {
    background: rgba(var(--fg), 0.04);
    color: var(--text-color);
}

.recent-idx {
    font-size: 12px;
    color: var(--text-faint);
    font-variant-numeric: tabular-nums;
    width: 24px;
    flex-shrink: 0;
}

.recent-art {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.recent-art-wrap {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recent-art-wrap .recent-art {
    width: 100%;
    height: 100%;
}

.recent-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.recent-track {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-artist {
    font-size: 11px;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-time {
    font-size: 10px;
    color: var(--text-faint);
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

/* Stats Card */
.stats-card {
    padding: 24px 28px;
}

.stats-empty {
    font-size: 12px;
    color: var(--text-faint);
    text-align: center;
    padding: 28px 20px;
    font-style: italic;
}

.stats-hero {
    text-align: center;
    padding: 8px 0 20px;
}

.stats-hero-num {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-color);
    display: block;
}

.stats-hero-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-dim);
    margin-top: 2px;
}

.stats-hero-sub {
    font-size: 12px;
    color: var(--text-faint);
    margin-top: 6px;
    display: block;
}

.stats-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 480px) {
    .stats-cols {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.stats-col-title {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-muted);
    transition: background var(--t-fast), color var(--t-fast);
    font-size: 13px;
}

.stats-item:hover {
    background: rgba(var(--fg), 0.04);
    color: var(--text-color);
}

.stats-item-idx {
    font-size: 10px;
    color: var(--text-faint);
    font-variant-numeric: tabular-nums;
    width: 16px;
    flex-shrink: 0;
    text-align: right;
}

.stats-item-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stats-item-count {
    font-size: 10px;
    color: var(--text-faint);
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

/* Skills Card */
.skills-card {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.skills-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skills-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.skills-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all var(--t-med);
    background: rgba(var(--fg), 0.03);
}

.skill-pill:hover {
    border-color: var(--border-hover);
    color: var(--text-color);
    background: rgba(var(--fg), 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.skill-pill .iconify {
    font-size: 16px;
    opacity: 0.8;
}

.skill-pill:hover .iconify {
    opacity: 1;
}

/* Contact Card */
.contact-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--card-radius);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--text-muted);
    border-left: 3px solid transparent;
    transition: all 0.25s cubic-bezier(0.22,1,0.36,1);
    position: relative;
}

.contact-item::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: rgba(var(--fg), 0.04);
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.contact-item + .contact-item {
    border-top: 1px solid var(--border-color);
}

.contact-item:hover {
    color: var(--hover-color, var(--text-color));
    border-left-color: var(--hover-color, currentColor);
    padding-left: 24px;
}

.contact-item:hover::before {
    opacity: 1;
}

.ci-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
}

.ci-icon-wrap .iconify {
    font-size: 18px;
    color: #fff;
}

.contact-item:hover .ci-icon-wrap {
    transform: scale(1.15) rotate(-4deg);
    box-shadow: 0 6px 20px rgba(0,0,0,0.45), 0 0 30px var(--hover-color, transparent);
}

.contact-label {
    font-size: 15px;
    font-weight: 600;
    flex: 1;
}

.contact-sub {
    font-size: 11px;
    color: var(--text-faint);
    flex-shrink: 0;
}

/* ─── Toast ─── */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    font-size: 12px;
    color: var(--text-muted);
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 22px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 200;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .nav-dots {
        flex-direction: row;
        right: auto;
        top: auto;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        gap: 8px;
    }

    .section {
        height: 100vh;
        height: 100dvh;
        padding: 30px 14px;
    }

    .dc-card {
        width: 100%;
    }

    .dc-av {
        width: 64px;
        height: 64px;
    }

    .dc-av-img {
        width: 64px;
        height: 64px;
        border-radius: 14px;
    }

    .dc-status-pip {
        width: 16px;
        height: 16px;
    }

    .dc-name {
        font-size: 1.1em;
    }

    .sec-inner {
        width: 100%;
    }

    .sec-title {
        font-size: 17px;
        padding: 8px 0 10px;
    }

    .about-card {
        padding: 18px 20px;
    }

    .about-card p {
        font-size: 12px;
    }

    .contact-item {
        padding: 12px 16px;
    }

    .contact-label {
        font-size: 13px;
    }

    .ci-icon-wrap {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }

    .ci-icon-wrap .iconify {
        font-size: 15px;
    }
}
