/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&display=swap');

:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-hover-bg: rgba(255, 255, 255, 0.1);
    --card-border: rgba(255, 255, 255, 0.1);
    --accent-color: #38bdf8;
    --gradient-1: #8b5cf6;
    --gradient-2: #3b82f6;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Dynamic Background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #1e293b, #0f172a);
    z-index: -1;
}

.background-animation::before,
.background-animation::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: drift 10s infinite alternate ease-in-out;
}

.background-animation::before {
    background: var(--gradient-1);
    top: -50px;
    left: -50px;
}

.background-animation::after {
    background: var(--gradient-2);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    z-index: 1;
}

/* Share Button */
.share-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.share-btn:hover {
    background: var(--card-hover-bg);
    transform: scale(1.05);
}

/* Profile Section */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.profile-img-container {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-color);
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 600;
}

.profile-bio {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* Links Section */
.links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Space out elements */
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1rem 1.25rem;
    border-radius: 30px;
    /* Fully rounded pills */
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.link-card:hover {
    background: var(--card-hover-bg);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Icon & Text Alignment */
.link-icon {
    font-size: 1.2rem;
    width: 24px;
    display: flex;
    justify-content: center;
}

.link-text {
    flex-grow: 1;
    text-align: center;
    font-weight: 500;
}

/* Hide share icon on default, maybe show on hover? 
   Currently set to just be there subtly */
.link-share {
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 24px;
    /* Balance left icon */
    display: flex;
    justify-content: center;
}

.link-card:hover .link-share {
    opacity: 0.7;
}

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

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

.link-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Socials */
.socials {
    display: flex;
    gap: 1.5rem;
    font-size: 1.5rem;
}

.socials a {
    color: var(--text-color);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.socials a:hover {
    opacity: 1;
    transform: scale(1.2);
    color: var(--accent-color);
}

.branding {
    font-size: 0.75rem;
    color: #475569;
    margin-top: 1rem;
}

.brand-highlight {
    font-weight: 600;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* SVG Icon Styling */
.icon-svg {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Ensure SVG is white */
}