@font-face {
    font-family: 'Dethrone';
    src: url('dethrone.ttf') format('truetype'),
         url('dethrone.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'EditUndo';
    src: url('editundo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    background: #000;
    color: #e5e5e5;
    font-family: 'Inter', -apple-system, sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.card {
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    padding: 16px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transition: max-width 0.4s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.tabs {
    display: flex;
    gap: 12px;
    align-items: center;
}

.tab-btn {
    background: none;
    border: none;
    color: #666;
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #aaa;
}

.tab-btn.active {
    color: #fff;
    font-weight: 500;
}

.nav-right {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 10px;
    color: #888;
}

.views {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: default;
}

.views:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

.help {
    cursor: pointer;
}

.tab-content {
    display: none;
    animation: fade 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fade {
    0% {
        opacity: 0;
        transform: translateY(4px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Headings */
.logo-container {
    display: flex;
    align-items: center;
    gap: 8px; /* space between text and badges */
    margin-bottom: 2px;
}

.logo-text {
    font-family: 'EditUndo', 'VT323', monospace;
    font-size: 36px; /* slightly smaller to adjust for the wider blocky pixel font */
    font-weight: 400;
    letter-spacing: 2px;
    color: #fff;
    line-height: 1; /* keeps element box tight */
    text-transform: uppercase;
}

.section-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #fff;
}

.subtitle {
    font-size: 11px;
    color: #777;
    margin-bottom: 12px;
}

.presence-wrapper {
    background: #090a0e;
    border: 1px solid rgba(255, 255, 255, 0.05); /* very subtle */
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

/* Discord Card */
.discord-card {
    background: #111;
    /* fallback */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    max-width: 100%;
}

.discord-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
}

.discord-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.7);
    /* darkens the video heavily */
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
}

.avatar-wrapper {
    position: relative;
    flex-shrink: 0;
    z-index: 1;
}

.avatar-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: #222;
}

.discord-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 13px;
    height: 13px;
    background: #f04747;
    border: 2px solid #181818;
    border-radius: 50%;
}

.discord-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.d-name {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.1;
}

.d-name i {
    color: #888;
    font-size: 16px;
}

.d-badges {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
}

.d-badge {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.d-badge img,
.d-badge i,
.d-badge svg {
    display: block;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.d-badge:hover img,
.d-badge:hover i,
.d-badge:hover svg {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.d-badge .tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #111214;
    color: #dbdee1;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    z-index: 100;
    pointer-events: none;
    line-height: 1;
}

.d-badge .tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: #111214;
    border-bottom-right-radius: 2px;
}

.d-badge.tooltip-container:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.badge-row {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* space between badges */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 3px 9px;
    margin-left: 8px;
    margin-top: 2.9px; /* offset downward to vertically center properly with text */
}

.badge-row img {
    height: 22px; /* increased to make badges more visible */
    width: auto;
    object-fit: contain;
    mix-blend-mode: screen; /* hides any black background from the cropped screenshots */
}

.d-tag {
    font-size: 10px;
    color: #888;
    margin-top: 2px;
    line-height: 1.1;
    display: inline-block;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
    position: relative;
    padding-bottom: 2px;
    width: fit-content;
}

.d-tag::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.d-tag:hover::after {
    width: 100%;
}

.d-tag:hover {
    color: #fff;
}

.d-tag.copied {
    color: #4ade80;
}

.d-tag.copied::after {
    display: none;
}

.d-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.04);
    margin: 6px 0;
    width: 100%;
    display: none;
}

.d-status {
    display: none;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #aaa;
    line-height: 1.1;
}

.d-status img {
    margin-right: 2px;
}

/* Spotify Card */
.spotify-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 4px 4px 4px;
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: 'Inter', -apple-system, sans-serif;
}

.sp-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sp-cover {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    object-fit: cover;
    background: #222;
}

.sp-info {
    flex-grow: 1;
}

.sp-info h3 {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.sp-info p {
    font-size: 11px;
    color: #888;
}

.sp-preview {
    background: #1a1a1a;
    color: #ccc;
    font-size: 11px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.sp-preview:hover {
    background: #222;
}

.sp-lyrics {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.8;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sp-lyric-prev {
    color: #444;
    font-size: 12px;
    transition: all 0.3s ease;
}

.sp-lyric-curr {
    color: #e5e5e5;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sp-lyric-next {
    color: #444;
    font-size: 12px;
    transition: all 0.3s ease;
}

.sp-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 10px;
    color: #666;
    font-variant-numeric: tabular-nums;
}

.sp-progress-bar {
    flex-grow: 1;
    height: 3px;
    background: #222;
    border-radius: 2px;
    position: relative;
    display: flex;
    align-items: center;
}

.sp-progress-fill {
    height: 100%;
    background: #1db954;
    border-radius: 2px;
    width: 0%;
    position: relative;
    transition: width 0.5s linear;
}

.sp-progress-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #1db954;
    font-size: 16px;
    background: #06070a;
    border-radius: 50%;
    padding: 2px;
}

/* Personal Music Player Card */
.pm-card {
    background: #06070a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px 4px 12px 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 1px;
    margin-bottom: 16px;
    font-family: 'Inter', -apple-system, sans-serif;
}

.pm-cover {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    background: #222;
    flex-shrink: 0;
}

.pm-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.pm-info h3 {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pm-info p {
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pm-time {
    font-size: 10px;
    color: #555;
    font-variant-numeric: tabular-nums;
}

.pm-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pm-btn {
    color: #888;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
}

.pm-btn:hover {
    color: #fff;
}

#pm-play {
    font-size: 16px;
    color: #fff;
}

.pm-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left:auto; /* Push to right just in case */
}

.pm-track-idx {
    font-size: 11px;
    color: #666;
    font-variant-numeric: tabular-nums;
}

.pm-volume {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
}

.pm-volume i {
    font-size: 12px;
}

.pm-vol-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 40px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    outline: none;
}

.pm-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

/* Projects Card */
.project-card {
    background: #0a0c14; /* fallback base */
    background: linear-gradient(135deg, #0f1322 0%, #060609 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px;
    opacity: 0;
}

#projects.active .project-card {
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-header {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    position: relative;
}

.p-icon {
    width: 32px;
    height: 32px;
    background: #1a1a1a;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #ccc;
    flex-shrink: 0;
    object-fit: cover;
}

.p-info h3 {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.badge {
    background: rgba(255, 255, 255, 0.08);
    font-size: 9px;
    padding: 2px 7px;
    border-radius: 12px;
    color: #aaa;
    font-weight: 400;
    opacity: 0;
}

#projects.active .badge {
    animation: popInBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.3s;
}

@keyframes popInBounce {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.p-info p {
    font-size: 10px;
    color: #777;
    margin-bottom: 6px;
}

.tech-stack {
    display: flex;
    gap: 4px;
}

.tech {
    background: #111;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #999;
}

.tech svg {
    width: 12px;
    height: 12px;
}

.tech.python {
    color: #63a1c8;
    background: #0f151c;
    border: 1px solid rgba(99, 161, 200, 0.3);
}

.tech.nextjs {
    color: #cfcfcf;
    background: #131313;
    border: 1px solid rgba(207, 207, 207, 0.2);
}

.p-link {
    position: absolute;
    right: 0;
    top: 0;
    color: #555;
    font-size: 11px;
    transition: color 0.2s;
}

.p-link:hover {
    color: #ccc;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    margin: 12px -12px -12px -12px; /* pull border out to edges of card */
    padding: 10px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.pf-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pf-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #222;
}

.pf-title {
    font-size: 11px;
    color: #ddd;
    line-height: 1;
    margin-bottom: 2px;
}

.pf-stats {
    font-size: 9px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dot-online {
    width: 6px;
    height: 6px;
    background: #23a559;
    border-radius: 50%;
    display: inline-block;
}

.dot-gray {
    width: 4px;
    height: 4px;
    background: #444;
    border-radius: 50%;
    display: inline-block;
}

.join-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.join-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Biolinks */
.biolinks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.biolink-card {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(var(--accent), 0.2) 0%, rgba(var(--accent), 0.03) 100%);
    border: 1px solid rgba(var(--accent), 0.3);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 14px;
    opacity: 0; /* hidden initially for the slide-in animation */
}

.biolink-card:hover {
    background: linear-gradient(90deg, rgba(var(--accent), 0.28) 0%, rgba(var(--accent), 0.08) 100%);
    border-color: rgba(var(--accent), 0.6);
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(var(--accent), 0.2);
}

#biolinks.active .biolink-card:nth-child(1) { animation: slideRightFade 0.5s ease forwards 0.05s; }
#biolinks.active .biolink-card:nth-child(2) { animation: slideRightFade 0.5s ease forwards 0.15s; }
#biolinks.active .biolink-card:nth-child(3) { animation: slideRightFade 0.5s ease forwards 0.25s; }
#biolinks.active .biolink-card:nth-child(4) { animation: slideRightFade 0.5s ease forwards 0.35s; }

@keyframes slideRightFade {
    0% {
        opacity: 0;
        transform: translateX(-15px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.b-icon {
    font-size: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(var(--accent), 1);
    text-shadow: 0 0 10px rgba(var(--accent), 0.5); /* subtle glow */
}

.b-info {
    flex-grow: 1;
}

.b-title {
    color: #eee;
    font-size: 13px;
    font-weight: 500;
}

.b-user {
    color: #666;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.b-user .verified {
    color: rgba(var(--accent), 1);
    font-size: 10px;
    text-shadow: 0 0 8px rgba(var(--accent), 0.5);
}

.b-arrow {
    color: #555;
    font-size: 14px;
}

.b-footer {
    text-align: center;
    font-size: 10px;
    color: #555;
    margin-top: 16px;
    opacity: 0; /* hidden initially */
}

#biolinks.active .b-footer {
    animation: fadeInFooter 0.8s ease forwards 1.5s;
}

@keyframes fadeInFooter {
    to { opacity: 1; }
}

/* Contact */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.c-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #999;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.c-link i {
    width: 20px;
    text-align: center;
    color: #666;
}

.c-link:hover {
    color: #fff;
}

/* Music Player */
.music-section {
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 12px;
}

.m-title {
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
}

.player {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 10px 12px;
}

.album-art {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    object-fit: cover;
    background: #222;
}

.track-info {
    flex-grow: 1;
}

.t-title {
    color: #eee;
    font-size: 11px;
    font-weight: 500;
}

.t-artist {
    color: #666;
    font-size: 9px;
    margin-bottom: 4px;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.time {
    font-size: 8px;
    color: #555;
    flex-grow: 1;
}

.bars {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-grow: 1;
}

.bar {
    width: 4px;
    background: #333;
    border-radius: 2px;
}

.bar.dot {
    height: 4px;
}

.bar.dot.active {
    background: #d3d3d3;
}

.bar.line {
    height: 1px;
    width: 10px;
}

.volume-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
    font-size: 10px;
}

.vol-bar {
    width: 30px;
    height: 2px;
    background: #333;
    border-radius: 1px;
    position: relative;
}

.vol-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 60%;
    background: #888;
    border-radius: 1px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.track-count {
    font-size: 9px;
    color: #555;
}

.ctrl-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 12px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctrl-btn:hover {
    color: #fff;
}