/* Ultra Modern Linktree Design v2 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Premium color palette */
    --bg-primary: #0a0a0f;
    --bg-secondary: #13131a;
    --accent-purple: #a855f7;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.4);
    --shadow-color: rgba(168, 85, 247, 0.15);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 1.5rem;
    overflow-x: hidden;
    position: relative;
}

/* Animated gradient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(168, 85, 247, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(59, 130, 246, 0.1), transparent),
        radial-gradient(ellipse 50% 30% at 0% 80%, rgba(236, 72, 153, 0.08), transparent);
    z-index: -2;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Grid pattern overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* Floating orbs */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    top: -100px;
    left: -100px;
    animation: float1 20s ease-in-out infinite;
}

.shape-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
    bottom: -100px;
    right: -100px;
    animation: float2 25s ease-in-out infinite;
}

@keyframes float1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, 30px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 50px) scale(0.95);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-40px, -30px) scale(0.9);
    }

    66% {
        transform: translate(30px, -40px) scale(1.05);
    }
}

/* Main container */
.container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* Avatar with glow */
.avatar-container {
    width: 130px;
    height: 130px;
    margin: 0 auto 1.5rem auto;
    position: relative;
    border-radius: 50%;
    padding: 3px;
    /* Border thickness */
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue), var(--accent-cyan));
    box-shadow:
        0 0 40px rgba(168, 85, 247, 0.3),
        0 20px 40px rgba(0, 0, 0, 0.4);
    animation: avatarFloat 6s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid var(--bg-primary);
    /* Gap between image and gradient */
}

@keyframes avatarFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.avatar-container:hover {
    transform: scale(1.08);
    box-shadow:
        0 0 60px rgba(168, 85, 247, 0.5),
        0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Heading with gradient */
h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Subtitle */
.subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Links container */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Premium button style */
.button {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Gradient border on hover */
.button::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue), var(--accent-cyan));
    -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;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.button:hover::before {
    opacity: 1;
}

/* Shine effect */
.button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transition: left 0.5s ease;
}

.button:hover::after {
    left: 100%;
}

.button:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px) scale(1.01);
    box-shadow:
        0 10px 40px rgba(168, 85, 247, 0.15),
        0 0 0 1px var(--glass-border-hover);
}

.button:active {
    transform: translateY(0) scale(0.99);
}

/* Icon styling */
.button .icon {
    width: 22px;
    height: 22px;
    margin-right: 14px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.button:hover .icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Divider */
.divider {
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            var(--glass-border),
            rgba(168, 85, 247, 0.3),
            var(--glass-border),
            transparent);
    margin: 2rem 0;
    position: relative;
}

.divider::before {
    content: '✦';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-primary);
    padding: 0 10px;
    color: var(--text-muted);
    font-size: 0.7rem;
}

/* Footer */
.footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
}

.footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    transition: width 0.3s ease;
}

.footer a:hover {
    color: var(--text-primary);
}

.footer a:hover::after {
    width: 100%;
}

/* Social links row */
.social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--glass-border-hover);
    transform: translateY(-3px);
}

.social-link img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.social-link:hover img {
    opacity: 1;
}

/* Stagger animation for buttons */
.links-container .button {
    animation: staggerFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.links-container .button:nth-child(1) {
    animation-delay: 0.1s;
}

.links-container .button:nth-child(2) {
    animation-delay: 0.15s;
}

.links-container .button:nth-child(3) {
    animation-delay: 0.2s;
}

.links-container .button:nth-child(4) {
    animation-delay: 0.25s;
}

.links-container .button:nth-child(5) {
    animation-delay: 0.3s;
}

.links-container .button:nth-child(6) {
    animation-delay: 0.35s;
}

.links-container .button:nth-child(7) {
    animation-delay: 0.4s;
}

.links-container .button:nth-child(8) {
    animation-delay: 0.45s;
}

.links-container .button:nth-child(9) {
    animation-delay: 0.5s;
}

.links-container .button:nth-child(10) {
    animation-delay: 0.55s;
}

@keyframes staggerFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: 2rem 1rem;
    }

    .container {
        max-width: 100%;
    }

    .avatar-container {
        width: 100px;
        height: 100px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .button {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        border-radius: 14px;
    }

    .button .icon {
        width: 20px;
        height: 20px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}