:root {
    --bg-theme: #0f172a;
    --text-color: #f1f5f9;
    --text-secondary: #94a3b8;
    --btn-bg: rgba(30, 41, 59, 0.4);
    --btn-border: rgba(255, 255, 255, 0.08);
    --btn-hover-bg: rgba(30, 41, 59, 0.6);
    --btn-hover-border: rgba(255, 255, 255, 0.2);
    --font-primary: 'Outfit', sans-serif;
    --transition-bounce: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-smooth: 0.3s ease;
    --accent-glow: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html,
body {
    height: 100%;
}

body {
    font-family: var(--font-primary);
    background: #0f172a;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(236, 72, 153, 0.1) 0%, transparent 30%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
    background-attachment: fixed;
}

/* Background Noise Texture */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 600px;
    /* Slightly narrower for mobile feel on desktop */
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

/* Profile Header */
.profile-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.avatar-container {
    width: 110px;
    height: 110px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.avatar-container::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--accent-glow);
    z-index: -1;
    animation: spin 10s linear infinite;
    opacity: 0.8;
    filter: blur(8px);
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #0f172a;
    display: block;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.profile-name {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.profile-bio {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    width: 100%;
    margin: 0 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Links List */
.links-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centered visually */
    position: relative;
    padding: 1rem 1.25rem;
    background: var(--btn-bg);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--btn-border);
    transition: all var(--transition-bounce);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    min-height: 56px;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Shine effect */
.link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.05),
            transparent);
    transition: 0.5s;
    pointer-events: none;
}

.link-btn:hover::before {
    left: 100%;
}

.link-btn:hover {
    transform: translateY(-4px) scale(1.01);
    background: var(--btn-hover-bg);
    border-color: var(--btn-hover-border);
    box-shadow: var(--card-hover-shadow);
}

/* Featured item styling */
.link-btn.featured {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.1);
}

.link-btn.featured::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(90deg, #6366f1, #ec4899);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
}

.link-icon {
    position: absolute;
    left: 1.25rem;
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.link-btn:hover .link-icon {
    color: #fff;
    transform: scale(1.1);
}

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

/* Section Divider */
.section-title {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 2rem 0 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
}

/* Socials Footer */
.socials-list {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.social-link {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: var(--transition-bounce);
    padding: 0.5rem;
    border-radius: 50%;
    background: transparent;
}

.social-link:hover {
    color: #fff;
    transform: translateY(-3px) rotate(8deg);
    background: rgba(255, 255, 255, 0.05);
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.6;
    text-align: center;
    font-weight: 300;
}

/* Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@media (max-width: 480px) {
    .container {
        padding: 2rem 1.25rem;
    }

    .profile-name {
        font-size: 1.5rem;
    }
}