:root {
    --text: #f8fafc;
    --muted: #b9c4d5;
    --card: rgba(5, 15, 29, .78);
    --border: rgba(255,255,255,.17);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        linear-gradient(135deg, rgba(2, 9, 18, .76), rgba(4, 16, 31, .62)),
        url("coding-workspace.webp") center center / cover fixed no-repeat;
}

.page-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 15%, rgba(13,110,253,.22), transparent 30%),
        radial-gradient(circle at 85% 80%, rgba(111,66,193,.20), transparent 30%);
}

.profile-card {
    max-width: 620px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: var(--card);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow:
        0 30px 100px rgba(0,0,0,.45),
        inset 0 1px 0 rgba(255,255,255,.08);
}

.avatar-wrap {
    width: 112px;
    height: 112px;
    padding: 4px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #7c3aed, #06b6d4);
    box-shadow: 0 0 35px rgba(13,110,253,.35);
}

.avatar {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #091322;
}

.profile-name {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.03em;
}

.username {
    color: #8db9ff;
    margin-top: 4px;
    font-weight: 600;
}

.bio {
    max-width: 470px;
    margin: 14px auto 18px;
    color: var(--muted);
    line-height: 1.65;
}

.social-btn {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    background: rgba(255,255,255,.09);
    transition: .2s ease;
}

.social-btn:hover {
    color: #fff;
    transform: translateY(-4px);
    background: rgba(13,110,253,.65);
    border-color: rgba(255,255,255,.3);
    box-shadow: 0 10px 25px rgba(13,110,253,.25);
}

.links {
    display: grid;
    gap: 14px;
}

.link-item {
    position: relative;
    min-height: 76px;
    display: grid;
    grid-template-columns: 50px 1fr 24px;
    align-items: center;
    gap: 13px;
    padding: 12px 16px 12px 12px;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 19px;
    background: rgba(255,255,255,.075);
    box-shadow: 0 10px 25px rgba(0,0,0,.18);
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.link-item::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .16;
    pointer-events: none;
    background: linear-gradient(110deg, var(--accent, #0d6efd), transparent 55%);
}

.link-item:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.008);
    border-color: rgba(255,255,255,.32);
    box-shadow: 0 17px 35px rgba(0,0,0,.28);
}

.link-item.clicked { transform: scale(.985); }

.link-icon {
    position: relative;
    z-index: 1;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    font-size: 1.25rem;
    background: var(--accent, #0d6efd);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--accent, #0d6efd) 30%, transparent);
}

.link-content {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.link-content strong {
    display: block;
    font-size: 1rem;
    font-weight: 750;
}

.link-content small {
    display: block;
    margin-top: 2px;
    color: #b9c4d5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.arrow {
    position: relative;
    z-index: 1;
    color: #cbd5e1;
    font-size: 1.1rem;
}

.blue   { --accent: #0d6efd; }
.green  { --accent: #16c784; }
.purple { --accent: #7c3aed; }
.orange { --accent: #f59e0b; }
.red    { --accent: #ef4444; }
.cyan   { --accent: #06b6d4; }
.dark   { --accent: #64748b; }

.quote {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 5px 18px;
    color: #d7e1ef;
    font-size: .9rem;
}

.quote span {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,.13);
}

footer {
    color: #7f8da3;
    font-size: .8rem;
}

@media (max-width: 575.98px) {
    body { background-attachment: scroll; }
    .profile-card {
        padding: 23px 15px;
        border-radius: 24px;
    }
    .link-item {
        min-height: 72px;
        border-radius: 17px;
    }
}
