:root {
    color-scheme: dark;
    font-family: 'gg sans', system-ui, sans-serif;
    background: #0e0f12;
    color: #ffffff;
    --bg: #0e0f12;
    --surface: #1e2024;
    --surface-strong: #25272c;
    --surface-hover: #2b2d33;
    --text-muted: #b5bac1;
    --text: #f2f3f5;
    --accent: #5865f2;
    --accent-dim: rgba(88, 101, 242, 0.15);
    --radius: 18px;
    --glow: rgba(88, 101, 242, 0.08);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    background-image:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(88, 101, 242, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 110%, rgba(88, 101, 242, 0.07) 0%, transparent 55%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
    background-attachment: fixed;
}

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 ── */

.hero-card {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow:
        0 0 0 1px rgba(88, 101, 242, 0.08),
        0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero-banner {
    height: 240px;
    background: linear-gradient(135deg, #3d45b8 0%, #1e2260 40%, #14161c 100%);
    position: relative;
    overflow: hidden;
}



.hero-avatar-wrap {
    position: absolute;
    left: 1.5rem;
    top: 136px;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    padding: 5px;
    background: var(--surface);
    box-shadow:
        0 0 0 3px rgba(88, 101, 242, 0.4),
        0 16px 36px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #0f1114;
}

.hero-content {
    padding: 4.5rem 1.75rem 2rem;
}

.hero-content h1 {
    margin: 0 0 0.25rem;
    font-size: clamp(1.8rem, 3vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.hero-handle,
.hero-bio,
.status-text {
    color: var(--text-muted);
}

.hero-handle {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.hero-bio {
    margin: 0 0 0.5rem;
    line-height: 1.75;
    max-width: 52ch;
}

.hero-status-row {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    max-width: max-content;
    font-size: 0.875rem;
}

.status-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #3ba55d;
    box-shadow: 0 0 0 3px rgba(59, 165, 93, 0.2), 0 0 8px rgba(59, 165, 93, 0.4);
    flex-shrink: 0;
}

/* ── Portfolio ── */

.portfolio-shell h2 {
    margin: 0 0 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

.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 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.portfolio-item {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 0;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-item:hover {
    border-color: rgba(88, 101, 242, 0.3);
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.12);
}

.portfolio-button {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    display: block;
    width: 100%;
    cursor: pointer;
    position: relative;
    border-radius: 0;
    overflow: hidden;
}

.portfolio-button img {
    transition: transform 0.35s ease;
    width: 100%;
    height: auto;
    display: block;
}

.portfolio-button:hover img {
    transform: scale(1.03);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.1) 100%);
    transition: opacity 0.2s ease;
}

.portfolio-button:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-icon {
    color: #ffffff;
    font-size: 1.75rem;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.portfolio-meta span:first-child {
    font-weight: 700;
    color: var(--text);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portfolio-meta time {
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Lightbox ── */

.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.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.lightbox-image {
    max-width: min(95vw, 1100px);
    max-height: min(85vh, 90vh);
    z-index: 1;
    border-radius: 16px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.06);
}

/* ── CTA ── */

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
    letter-spacing: 0.01em;
}

.hero-cta:hover {
    background: #4752c4;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(88, 101, 242, 0.5);
}

/* ── Footer ── */

.site-footer {
    text-align: center;
    padding: 1rem 0;
    color: rgba(181, 186, 193, 0.5);
    font-size: 0.85rem;
}

/* ── Responsive ── */

@media (min-width: 640px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}