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

/* ===== Base ===== */
html, body {
    width: 100%;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #131313;
    color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px 20px;
    position: relative;
}

/* ===== Liquid Background ===== */
.liquid-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    filter: blur(90px);
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: .1;
    transition: transform .8s cubic-bezier(.25,.46,.45,.94);
    will-change: transform;
}

.blob-1 {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(255,255,255,.3) 0%, transparent 70%);
    top: -12%;
    left: -8%;
    animation: drift1 16s ease-in-out infinite alternate;
}

.blob-2 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(255,255,255,.22) 0%, transparent 70%);
    bottom: -6%;
    right: -6%;
    animation: drift2 20s ease-in-out infinite alternate;
}

.blob-3 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255,255,255,.18) 0%, transparent 70%);
    top: 45%;
    left: 55%;
    animation: drift3 13s ease-in-out infinite alternate;
}

@keyframes drift1 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(70px, 50px) scale(1.18); }
}
@keyframes drift2 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-60px, -35px) scale(1.12); }
}
@keyframes drift3 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-40px, 30px) scale(1.22); }
}

/* ===== Noise Overlay ===== */
.noise {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .03;
    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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px;
}

/* ===== Container ===== */
.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    transition: transform .35s cubic-bezier(.25,.46,.45,.94);
    transform-style: preserve-3d;
}

/* ===== Staggered Fade-In ===== */
.avatar-wrap,
h1,
.tag,
.bio,
.link-btn,
.footer-note {
    opacity: 0;
    transform: translateY(18px);
    animation: staggerIn .6s cubic-bezier(.16,1,.3,1) forwards;
    animation-delay: calc(var(--i, 0) * .1s + .15s);
}

@keyframes staggerIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Profile ===== */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 44px;
}

.avatar-wrap {
    position: relative;
    margin-bottom: 22px;
}

.avatar-glow {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: .4; transform: scale(1); }
    50%      { opacity: .9; transform: scale(1.1); }
}

.avatar {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.08);
    display: block;
    transition: transform .4s cubic-bezier(.16,1,.3,1), border-color .3s, box-shadow .4s;
}

.avatar:hover {
    transform: scale(1.06);
    border-color: rgba(255,255,255,.2);
    box-shadow: 0 0 40px rgba(255,255,255,.06);
}

/* Status dot */
.status-dot {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 13px;
    height: 13px;
    background: #3dd68c;
    border: 2.5px solid #131313;
    border-radius: 50%;
    z-index: 3;
    animation: statusPulse 2.5s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(61,214,140,.35); }
    50%      { box-shadow: 0 0 0 6px rgba(61,214,140,0); }
}

h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.2;
    background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tag {
    font-size: .75rem;
    font-weight: 500;
    color: rgba(255,255,255,.28);
    margin-top: 5px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.bio {
    font-size: .92rem;
    color: rgba(255,255,255,.4);
    text-align: center;
    line-height: 1.55;
    margin-top: 14px;
    max-width: 300px;
}

/* ===== Glass Buttons ===== */
.links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.glass {
    background: rgba(255,255,255,.035);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255,255,255,.06);
}

.link-btn {
    --mx: 50%;
    --my: 50%;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    border-radius: 14px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition:
        background .25s cubic-bezier(.16,1,.3,1),
        border-color .25s ease,
        transform .25s cubic-bezier(.16,1,.3,1),
        box-shadow .3s ease;
    position: relative;
    overflow: hidden;
}

/* Cursor spotlight */
.btn-spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(
        160px circle at var(--mx) var(--my),
        rgba(255,255,255,.08) 0%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity .3s ease;
}

.link-btn:hover .btn-spotlight {
    opacity: 1;
}

/* Shine sweep on hover */
.link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,.04) 50%,
        transparent 100%
    );
    transition: none;
}

.link-btn:hover::before {
    animation: shineSweep .6s ease forwards;
}

@keyframes shineSweep {
    from { left: -60%; }
    to   { left: 120%; }
}

.link-btn:hover {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(0,0,0,.2), 0 0 0 1px rgba(255,255,255,.04);
}

.link-btn:active {
    transform: translateY(0) scale(.98);
    transition-duration: .1s;
}

.btn-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.04);
    font-size: 1rem;
    flex-shrink: 0;
    transition: background .25s, border-color .25s;
}

.link-btn:hover .btn-icon {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.08);
}

.btn-icon i {
    opacity: .65;
    transition: opacity .25s;
}

.link-btn:hover .btn-icon i {
    opacity: .9;
}

.btn-text {
    flex: 1;
    margin-left: 14px;
    transition: opacity .2s;
}

.btn-arrow {
    font-size: .72rem;
    opacity: .18;
    transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .3s;
}

.link-btn:hover .btn-arrow {
    transform: translateX(4px);
    opacity: .5;
}

/* Copy feedback */
.link-btn.copied {
    border-color: rgba(61,214,140,.25) !important;
}

.link-btn.copied .btn-icon {
    background: rgba(61,214,140,.1);
    border-color: rgba(61,214,140,.15);
}

.link-btn.copied .btn-arrow {
    opacity: .7;
    color: #3dd68c;
    transform: translateX(0);
}

/* ===== Footer ===== */
.footer-note {
    text-align: center;
    font-size: .68rem;
    color: rgba(255,255,255,.12);
    margin-top: 52px;
    letter-spacing: .07em;
    font-weight: 500;
}

/* ===== Responsive ===== */
@media screen and (max-width: 500px) {
    body { padding: 24px 16px; }

    .blob-1 { width: 300px; height: 300px; }
    .blob-2 { width: 240px; height: 240px; }
    .blob-3 { width: 180px; height: 180px; }

    .avatar { width: 92px; height: 92px; }
    .status-dot { width: 11px; height: 11px; bottom: 4px; right: 4px; }

    h1 { font-size: 1.5rem; }

    .link-btn {
        padding: 14px 16px;
        border-radius: 12px;
    }

    .btn-icon {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .blob { animation: none !important; }
}
