:root {
    --primary-bg: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-hover-bg: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-color: #38bdf8;
    --gradient-1: #ec4899;
    --gradient-2: #8b5cf6;
    --gradient-3: #06b6d4;
    --font-family: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--primary-bg);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

/* Dynamic Background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 10% 20%, rgba(236, 72, 153, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.3) 0%, transparent 60%);
    filter: blur(60px);
    animation: bgPulse 10s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.container {
    width: 100%;
    max-width: 680px;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeInDown 0.8s ease-out;
}

.profile-image-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, var(--gradient-1), var(--gradient-2));
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-bg);
    background-color: var(--card-bg);
    /* Placeholder bg */
}

.profile-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.profile-bio {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.social-link {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}

.social-link:hover {
    color: var(--text-primary);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Links Section */
.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    perspective: 1000px;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    padding: 1.25rem;
    border-radius: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out backwards;
}

/* Stagger animations for cards */
.link-card:nth-child(1) {
    animation-delay: 0.1s;
}

.link-card:nth-child(2) {
    animation-delay: 0.2s;
}

.link-card:nth-child(3) {
    animation-delay: 0.3s;
}

.link-card:nth-child(4) {
    animation-delay: 0.4s;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.link-card:hover {
    transform: scale(1.02) translateY(-2px);
    background: var(--card-hover-bg);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.3);
}

.link-card:hover::before {
    transform: translateX(100%);
}

.link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
}

.link-text {
    flex-grow: 1;
    text-align: center;
    font-weight: 500;
    font-size: 1.05rem;
    z-index: 1;
}

.link-action {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.link-card:hover .link-action {
    opacity: 1;
    transform: translateX(0);
}

.link-card:hover .link-icon {
    color: var(--text-primary);
}

/* Footer */
.footer {
    margin-top: 3rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    opacity: 0.7;
    text-align: center;
}

/* Animations */
@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);
    }
}

/* Section Headers */
.section-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    padding-left: 0.5rem;
    opacity: 0.9;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-left: 3px solid var(--accent-color);
    padding-left: 10px;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .container {
        padding: 2rem 1rem;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .link-card {
        padding: 1rem;
    }
}

/* Online Indicator */
.profile-image-container {
    position: relative;
    display: inline-block;
}

.online-indicator {
    position: absolute;
    bottom: 0px;
    /* Aligned to border */
    right: 0px;
    /* Aligned to border */
    width: 24px;
    /* Slightly larger */
    height: 24px;
    background-color: #22c55e;
    /* Green-500 */
    border: 4px solid var(--primary-bg);
    /* Match bg to create cut-out effect */
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-green 2s infinite;
    z-index: 10;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Visitor Counter */
.visitor-counter {
    margin-top: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.visitor-counter:hover {
    opacity: 1;
}

.visitor-counter img {
    height: 24px;
    border-radius: 4px;
}