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

:root {
    --darker: #121217;
    --dark: #1b1b21;
    --darkless: #252429;
    --muted: #8492a6;
    --cyan: #5bc0de;
    --blue: #338eda;
    --purple: #a633d6;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.35);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: radial-gradient(80% 70% at 20% 10%, rgba(166, 51, 214, 0.25), transparent),
                radial-gradient(70% 60% at 80% 0%, rgba(51, 142, 218, 0.22), transparent),
                var(--darker);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 48px 20px;
    color: #ffffff;
}

.container {
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Profile Section */
.profile {
    text-align: center;
}

.avatar {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 48px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
}

.avatar::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h1 {
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.tagline {
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--darkless);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.social-icons a:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(166, 51, 214, 0.18), rgba(51, 142, 218, 0.18));
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

/* Links Container */
.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.loading {
    text-align: center;
    color: var(--muted);
    padding: 20px;
}

/* Link Button */
.link-button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 18px;
    background: var(--darkless);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow-soft);
}

.link-button:hover {
    transform: translateY(-2px);
    border-color: rgba(166, 51, 214, 0.5);
    box-shadow: 0 14px 34px rgba(166, 51, 214, 0.25);
}

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

.link-button .link-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    margin-right: 16px;
    object-fit: cover;
    flex-shrink: 0;
}

.link-button .link-icon-placeholder {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    margin-right: 16px;
    background: linear-gradient(135deg, rgba(166, 51, 214, 0.9), rgba(51, 142, 218, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    flex-shrink: 0;
}

.link-button .link-text {
    flex: 1;
    text-align: center;
    padding-right: 52px;
}

.link-button .link-arrow {
    position: absolute;
    right: 18px;
    color: var(--muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

.link-button:hover .link-arrow {
    transform: translateX(3px);
    color: #ffffff;
}

/* Featured Link */
.link-button.featured {
    background: linear-gradient(135deg, rgba(166, 51, 214, 0.16), rgba(51, 142, 218, 0.16));
    border-color: rgba(166, 51, 214, 0.55);
}

.link-button.featured:hover {
    box-shadow: 0 16px 38px rgba(166, 51, 214, 0.35);
}

/* Footer */
.footer {
    margin-top: 12px;
    text-align: center;
}

.footer p {
    color: var(--muted);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: 28px 16px;
    }

    .avatar {
        width: 88px;
        height: 88px;
        font-size: 40px;
    }

    h1 {
        font-size: 20px;
    }

    .tagline {
        font-size: 14px;
    }

    .social-icons {
        gap: 12px;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .link-button {
        padding: 14px 16px;
        border-radius: 18px;
    }

    .link-button .link-icon,
    .link-button .link-icon-placeholder {
        width: 40px;
        height: 40px;
    }

    .link-button .link-text {
        font-size: 14px;
        padding-right: 44px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link-button {
    animation: fadeInUp 0.45s ease forwards;
}

.link-button:nth-child(1) { animation-delay: 0.08s; }
.link-button:nth-child(2) { animation-delay: 0.16s; }
.link-button:nth-child(3) { animation-delay: 0.24s; }
.link-button:nth-child(4) { animation-delay: 0.32s; }
.link-button:nth-child(5) { animation-delay: 0.40s; }
.link-button:nth-child(6) { animation-delay: 0.48s; }
