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

:root {
    --bg-1: #0a0a0f;
    --bg-2: #12121a;
    --accent: #7c6cff;
    --accent-soft: rgba(124, 108, 255, 0.15);
    --accent-glow: rgba(124, 108, 255, 0.35);
    --text: #f4f4f8;
    --text-muted: #9898a8;
    --card: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(255, 255, 255, 0.08);
    --radius: 16px;
    --max-width: 480px;
    --font: "Outfit", system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100dvh;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg-1);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.bg__orb--1 {
    width: 420px;
    height: 420px;
    background: #5b4fd4;
    top: -120px;
    left: 50%;
    transform: translateX(-60%);
}

.bg__orb--2 {
    width: 320px;
    height: 320px;
    background: #2d6a9f;
    bottom: 10%;
    right: -80px;
}

.bg__orb--3 {
    width: 240px;
    height: 240px;
    background: #9b4fd4;
    bottom: 30%;
    left: -60px;
    opacity: 0.3;
}

.page {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.25rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Profile */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    animation: fadeUp 0.6s ease both;
}

.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--card-border);
    box-shadow: 0 0 40px var(--accent-glow);
}

.avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), #4a3db8);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.profile__name {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.profile__tagline {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 28ch;
}

/* Links */
.links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
}

.link-card {
    animation: fadeUp 0.6s ease both;
}

.link-card:nth-child(1) { animation-delay: 0.08s; }
.link-card:nth-child(2) { animation-delay: 0.14s; }
.link-card:nth-child(3) { animation-delay: 0.2s; }
.link-card:nth-child(4) { animation-delay: 0.26s; }
.link-card:nth-child(5) { animation-delay: 0.32s; }
.link-card:nth-child(6) { animation-delay: 0.38s; }
.link-card:nth-child(7) { animation-delay: 0.44s; }
.link-card:nth-child(8) { animation-delay: 0.5s; }

.link-card__anchor {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    color: inherit;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(12px);
}

.link-card__anchor:hover {
    background: var(--card-hover);
    border-color: rgba(124, 108, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--accent-soft);
}

.link-card__anchor:active {
    transform: translateY(0);
}

.link-card--featured .link-card__anchor {
    border-color: rgba(124, 108, 255, 0.25);
    background: linear-gradient(135deg, rgba(124, 108, 255, 0.12), rgba(124, 108, 255, 0.04));
}

.link-card__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: 10px;
    color: var(--accent);
}

.link-card__icon svg {
    width: 18px;
    height: 18px;
}

.link-card__body {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.link-card__title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.link-card__desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-card__arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: color 0.2s, transform 0.2s;
}

.link-card__anchor:hover .link-card__arrow {
    color: var(--accent);
    transform: translate(2px, -2px);
}

.link-card__arrow svg {
    width: 16px;
    height: 16px;
}

/* Social */
.social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeUp 0.6s ease 0.4s both;
}

.social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}

.social__link:hover {
    color: var(--accent);
    border-color: rgba(124, 108, 255, 0.35);
    background: var(--accent-soft);
    transform: translateY(-2px);
}

.social__link svg {
    width: 20px;
    height: 20px;
}

.footer {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
    animation: fadeUp 0.6s ease 0.5s both;
}

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
