:root {
    color-scheme: dark;
    font-family: 'gg sans', system-ui, sans-serif;
    background: #16171b;
    color: #ffffff;
    --bg: #1e1f22;
    --surface: #2b2d31;
    --surface-strong: #313338;
    --text-muted: #b5bac1;
    --text: #ffffff;
    --accent: #5865f2;
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    background: #16171b;
    color: var(--text);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--text-muted);
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

.page-shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.hero-shell,
.portfolio-shell {
    margin-bottom: 2rem;
}

.hero-card {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.hero-banner {
    height: 200px;
    background: linear-gradient(135deg, var(--accent), #32353b);
}

.hero-card[style] .hero-banner {
    background: inherit;
}

.hero-avatar-wrap {
    position: absolute;
    left: 1.5rem;
    top: 136px;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, rgba(88,101,242,0.85), rgba(255,255,255,0.07));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.hero-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #1e1f22;
    object-fit: cover;
    background: #0f1114;
}

.hero-content {
    padding: 4.5rem 1.75rem 2rem;
}

.hero-content h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
}

.hero-handle,
.hero-bio,
.status-text {
    color: var(--text-muted);
}

.hero-handle {
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.hero-bio {
    margin: 0 0 1.5rem;
    line-height: 1.7;
}

.hero-status-row {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: max-content;
}

.status-dot {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    background: #3ba55d;
    box-shadow: 0 0 0 4px rgba(59, 165, 93, 0.12);
}

.portfolio-shell h2 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    color: var(--text);
}

.portfolio-empty {
    padding: 1.6rem 1.2rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.04);
    color: var(--text-muted);
}

.portfolio-grid {
    column-gap: 1rem;
    column-count: 1;
}

.portfolio-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem;
    overflow: hidden;
    break-inside: avoid;
    position: relative;
}

.portfolio-button {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    display: block;
    width: 100%;
    cursor: pointer;
    position: relative;
}

.portfolio-button img {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
    display: block;
}

.portfolio-button:hover img {
    transform: scale(1.025);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    background: rgba(0, 0, 0, 0.35);
    transition: opacity 0.2s ease;
}

.portfolio-button:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-icon {
    color: #ffffff;
    font-size: 1.75rem;
}

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.site-footer {
    text-align: center;
    padding: 1rem 0;
    color: rgba(181, 186, 193, 0.8);
}

.lightbox {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 50;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-image {
    max-width: min(95vw, 1100px);
    max-height: min(85vh, 90vh);
    z-index: 1;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

@media (min-width: 640px) {
    .portfolio-grid {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .portfolio-grid {
        column-count: 3;
    }
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    background: #5865f2;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.35);
}

.hero-cta:hover {
    background: #4752c4;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(88, 101, 242, 0.45);
}
