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

body {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0f;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px 60px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 10%, rgba(88, 28, 220, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(236, 72, 153, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 100% 60% at 50% 50%, rgba(15, 23, 42, 0.95) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,0.012) 40px, rgba(255,255,255,0.012) 41px),
        repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,0.012) 40px, rgba(255,255,255,0.012) 41px);
    pointer-events: none;
    z-index: 0;
}

.page-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Main Card ── */
.card-main {
    background: rgba(18, 18, 28, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px 36px 36px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
    overflow: hidden;
}

.card-main::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.6) 40%, rgba(236, 72, 153, 0.4) 70%, transparent 100%);
}

.header { text-align: center; margin-bottom: 28px; }

.monogram {
    font-family: 'Geist Mono', monospace;
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #e2e8f0 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    line-height: 1;
}

.subtitle {
    color: rgba(148, 163, 184, 0.7);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.bio {
    color: #94a3b8;
    line-height: 1.65;
    font-size: 0.9rem;
    font-weight: 400;
}

.bio strong { color: #e2e8f0; font-weight: 600; }

/* ── Links ── */
.links { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }

.link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    text-decoration: none;
    color: #e2e8f0;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    cursor: pointer;
}

.link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.link.primary {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9) 0%, rgba(236, 72, 153, 0.85) 100%);
    border-color: transparent;
}

.link.primary:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 1) 0%, rgba(219, 39, 119, 1) 100%);
}

.link-left { display: flex; align-items: center; gap: 11px; }

.link-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
}

.link-icon svg { width: 18px; height: 18px; fill: currentColor; }

.link-text { font-size: 0.88rem; font-weight: 500; }

.link-detail {
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.65);
    font-family: 'Geist Mono', monospace;
}

.link.primary .link-detail { color: rgba(255, 255, 255, 0.65); }

/* ── Projects Section ── */
.section-label {
    font-family: 'Geist Mono', monospace;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.4);
    padding: 0 4px;
    margin-top: 6px;
}

.project-card {
    background: rgba(18, 18, 28, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
    display: flex;
    align-items: stretch;
    transition: border-color 0.2s, transform 0.2s;
    position: relative;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.35) 50%, transparent 100%);
}

.project-thumb {
    width: 96px;
    min-height: 96px;
    flex-shrink: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    position: relative;
}

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

.project-thumb .thumb-placeholder {
    width: 100%;
    height: 100%;
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.08) 100%);
}

.project-body {
    flex: 1;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.project-title {
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-desc {
    color: rgba(148, 163, 184, 0.7);
    font-size: 0.78rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    padding: 5px 13px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #a78bfa;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 7px;
    text-decoration: none;
    align-self: flex-start;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    letter-spacing: 0.02em;
}

.project-btn:hover {
    background: rgba(139, 92, 246, 0.28);
    border-color: rgba(139, 92, 246, 0.6);
    color: #c4b5fd;
}

.project-btn svg {
    width: 11px;
    height: 11px;
    fill: currentColor;
    opacity: 0.8;
}

/* ── Footer ── */
.footer {
    text-align: center;
    color: rgba(100, 116, 139, 0.5);
    font-size: 0.75rem;
    padding: 4px 0 2px;
    font-family: 'Geist Mono', monospace;
}

.footer a {
    color: rgba(100, 116, 139, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover { color: #94a3b8; }

@media (max-width: 500px) {
    body { padding: 24px 14px 48px; }
    .card-main { padding: 30px 22px 28px; }
    .monogram { font-size: 2.1rem; }
    .project-thumb { width: 80px; }
}