:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    --accent-glow: rgba(255, 255, 255, 0.05);
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --premium-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    cursor: none;
}

/* Background Animations */

.particle-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at center, #0a0a0a 0%, #000 100%);
    pointer-events: none;
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.3;
    pointer-events: none;
    animation: float-particle 20s linear infinite;
}

@keyframes float-particle {
    from {
        transform: translateY(0) translateX(0);
    }

    to {
        transform: translateY(-100vh) translateX(50px);
    }
}

.blob {
    position: absolute;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--brand-color, #4f46e5) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.15;
    animation: move 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    --brand-color: #4f46e5;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    --brand-color: #7c3aed;
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    --brand-color: #ec4899;
    width: 30vw;
    height: 30vw;
    animation-delay: -10s;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(20%, 20%) scale(1.2);
    }
}

.bg-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Header */
.profile-header {
    text-align: center;
    margin-bottom: 3rem;
}

.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--glass-border);
    background: var(--glass-bg);
    padding: 5px;
    position: relative;
    z-index: 2;
}

.avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: pulse 4s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

.name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bio {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Links Section */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.link-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.scanline {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.05),
            transparent);
    transform: skewX(-25deg);
    transition: none;
    pointer-events: none;
}

.link-card:hover .scanline {
    animation: scan 1.2s infinite;
}

@keyframes scan {
    100% {
        left: 200%;
    }
}

/* Staggered animation handled by JS now for better control */

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.08) 0%,
            transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.link-card:hover::before {
    opacity: 1;
}

.link-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--brand-color);
    box-shadow: 0 10px 40px -10px var(--brand-color);
}

.icon-wrapper {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    margin-right: 1.25rem;
    font-size: 1.5rem;
    color: var(--brand-color);
    transition: var(--transition);
}

.link-card:hover .icon-wrapper {
    background: var(--brand-color);
    color: var(--brand-hover-color, white);
    transform: rotate(-10deg) scale(1.1);
}

.link-name {
    font-size: 1.1rem;
    font-weight: 600;
    flex-grow: 1;
}

.arrow {
    opacity: 0.3;
    transition: var(--transition);
}

.link-card:hover .arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Share Button & Toast */
.share-btn {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    box-shadow: var(--glass-shadow);
}

.share-btn:hover {
    background: var(--premium-gradient);
    transform: scale(1.1) rotate(15deg);
    border-color: transparent;
}

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--premium-gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

body {
    cursor: none;
    /* Hide default cursor */
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
}

.cursor-hover {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Hide custom cursor on mobile/touch devices */
@media (max-width: 1024px) {
    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem 1.25rem;
    }

    .profile-header {
        margin-bottom: 2rem;
    }

    .avatar-container {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }

    .avatar-glow {
        width: 120px;
        height: 120px;
    }

    .name {
        font-size: 1.75rem;
    }

    .bio {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    .links-section {
        gap: 1rem;
    }

    .link-card {
        padding: 1rem 1.25rem;
        border-radius: 16px;
    }

    .icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        margin-right: 1rem;
    }

    .share-btn {
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 1rem;
    }

    .name {
        font-size: 1.5rem;
    }

    .share-btn {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .avatar-container {
        width: 90px;
        height: 90px;
    }

    .avatar-glow {
        width: 110px;
        height: 110px;
    }
}