@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@400;500;600&display=swap');

:root {
    --bg: #0b0b11;
    --surface: #11111b;
    --surface-raised: #181825;
    --accent: #cdd6f4;
    --text: #a6adc8;
    --muted: #585b70;
    --border: #1e1e2e;
    --hover: #313244;
    --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
    scrollbar-width: thin;
    scrollbar-color: var(--hover) var(--bg);
}

html::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

html::-webkit-scrollbar-track {
    background: var(--bg);
}

html::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

html::-webkit-scrollbar-thumb:hover {
    background: var(--hover);
}

body {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, var(--bg) 500px), url('https://spvcer3ii.space/f/09ebb923d44.png') no-repeat top center;
    background-size: 100% auto, 100% auto;
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    padding: 80px 24px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

header {
    margin-bottom: 48px;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.pfp-container {
    position: relative;
    width: 76px;
    height: 76px;
    flex-shrink: 0;
}

.pfp {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
    border: 1px solid var(--border);
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.pfp-container:hover .pfp {
    transform: scale(1.04) rotate(1deg);
    border-color: #45475a;
}

.status-dot {
    width: 24px;
    height: 24px;
    background: #f9e2af;
    border: 4px solid var(--bg);
    border-radius: 50%;
    position: absolute;
    bottom: -6px;
    right: -6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-info h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.profile-info .handle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: var(--muted);
}

.bio {
    font-size: 0.95rem;
    color: #9399b2;
    margin-bottom: 24px;
}

.bio p {
    margin-bottom: 12px;
}

.bio-meta {
    font-size: 0.8rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'IBM Plex Mono', monospace;
}

.emoji {
    display: inline-block;
    height: 1.1rem;
    vertical-align: middle;
}

.action-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 48px;
}

.action-links a {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 14px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s var(--ease);
    border-radius: 12px;
    letter-spacing: 0.04em;
}

.action-links a:hover {
    background: var(--surface-raised);
    color: var(--accent);
    border-color: #45475a;
    transform: translateY(-2px);
}

.section-title {
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 36px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.music-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.music-art {
    width: 52px;
    height: 52px;
    background: var(--surface-raised);
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.music-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.music-title {
    font-size: 0.95rem;
    font-weight: 500;
    display: block;
    color: var(--accent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.music-artist {
    font-size: 0.82rem;
    color: var(--muted);
    display: block;
    margin-top: 2px;
}

.music-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    user-select: none;
}

#play-btn {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    color: var(--accent);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
    flex-shrink: 0;
}

#play-btn:hover {
    background: var(--hover);
    border-color: #45475a;
    transform: scale(1.04);
}

.progress-container {
    flex: 1;
    height: 4px;
    background: var(--surface-raised);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

#progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    border-radius: 2px;
    position: relative;
    transition: background-color 0.2s var(--ease);
}

.progress-container:hover #progress-bar {
    background: var(--accent);
}

#scrubber {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    transition: transform 0.2s var(--ease);
}

.progress-container:hover #scrubber, .progress-container.dragging #scrubber {
    transform: translateY(-50%) scale(1);
}

.music-timer {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: var(--muted);
    min-width: 40px;
    text-align: right;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 24px;
}

.skills-group h4 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

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

.skills-list li {
    font-size: 0.9rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.skills-list li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--muted);
    border-radius: 50%;
    flex-shrink: 0;
}

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

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    transition: transform 0.2s var(--ease);
}

.project-item:hover {
    transform: translateX(2px);
}

.project-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.project-item:first-child {
    padding-top: 0;
}

.project-name {
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--accent);
}

.project-status {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    padding: 3px 8px;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--muted);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.project-item:has(.status-active) .project-status {
    color: var(--accent);
    border-color: #45475a;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.blog-post {
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
}

.blog-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.post-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.post-title {
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.post-title:hover {
    color: #89b4fa;
}

.post-content {
    font-size: 0.9rem;
    color: #9399b2;
    line-height: 1.65;
}

.button-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 36px;
    flex-wrap: wrap;
    opacity: 0.5;
    transition: opacity 0.3s var(--ease);
    align-items: center;
}

.button-row:hover {
    opacity: 0.9;
}

.button-row img {
    height: 31px;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    filter: grayscale(1);
    transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
}

.button-row img:hover {
    filter: grayscale(0);
    transform: translateY(-1px);
}

footer {
    margin-top: 96px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: var(--muted);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

@media (max-width: 480px) {
    body {
        padding: 56px 16px;
        background-size: 100% auto, auto 220px;
    }
    .action-links {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .pfp-container {
        width: 68px;
        height: 68px;
    }
    .status-dot {
        width: 20px;
        height: 20px;
        bottom: -5px;
        right: -5px;
    }
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .panel {
        padding: 20px;
    }
    .music-controls {
        flex-wrap: wrap;
        gap: 10px;
    }
    .progress-container {
        min-width: 120px;
    }
}
