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

:root {
    --bg: #0a0a0f;
    --surface: rgba(10, 10, 15, 0.75);
    --surface-hover: rgba(10, 10, 15, 0.85);
    --border: rgba(255, 255, 255, 0.12);
    --text: #f4f4f5;
    --text-muted: #a1a1aa;
    --accent: #6366f1;
    --accent-soft: rgba(99, 102, 241, 0.15);
    --green: #22c55e;
    --green-soft: rgba(34, 197, 94, 0.15);
    --amber: #f59e0b;
    --amber-soft: rgba(245, 158, 11, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg) url('../image/pp2.jpg') center center / cover no-repeat fixed;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}

/* Subtle noise texture overlay */
.noise {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Ambient glow behind the card */
body::before {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px 36px 36px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: fadeUp 0.6s ease-out;
}

.card-glow {
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), transparent 40%, transparent 60%, rgba(99, 102, 241, 0.05));
    z-index: -1;
    pointer-events: none;
}

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

/* Avatar */
.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}

.avatar-text {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

/* Typography */
.name {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.handle {
    text-align: center;
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
    margin-top: 4px;
}

.tagline {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 8px;
    font-weight: 400;
}

/* Bio */
.bio {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bio-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}

.bio-marker {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
}

.bio-marker.current {
    background: var(--green);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.bio-marker.former {
    background: var(--text-muted);
    opacity: 0.4;
}

.bio-item a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Social links */
.social {
    margin-top: 32px;
    display: flex;
    gap: 12px;
}

.social-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

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

.social-link svg {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 520px) {
    body {
        overflow: auto;
        align-items: flex-start;
    }

    .container {
        padding: 0;
        /* Push card below the face area so the portrait is visible above it */
        padding-top: max(42vh, 220px);
        max-width: 100%;
    }

    .card {
        padding: 40px 24px 48px;
        border-radius: 24px 24px 0 0;
        /* Solid opaque sheet on mobile so the fixed background does not bleed
           through behind or below the content while scrolling */
        background: var(--bg);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: none;
        /* Ensure the sheet always reaches the bottom of the viewport */
        min-height: 100vh;
    }

    .card-glow {
        display: none;
    }

    .name {
        font-size: 24px;
    }

    .avatar {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }

    .avatar-text {
        font-size: 20px;
    }
}
