/* Premium Experience Theme - BioLink */
:root {
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --neon-glow: 0 0 15px rgba(255, 215, 0, 0.5);
    /* Gold Glow */
    --premium-font: 'Outfit', 'Inter', sans-serif;

    /* B2MKT Brand Colors */
    --brand-blue: #003366;
    --brand-gold: #FFD700;
    --brand-gold-gradient: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
    --brand-blue-gradient: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

/* Base Override */
body {
    font-family: var(--premium-font) !important;
    overflow-x: hidden;
}

/* Background Animation */
.profile-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 80% 20%, rgba(0, 51, 102, 0.2) 0%, transparent 20%);
    animation: rotateBg 15s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes rotateBg {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Container Enhancement */
.profile-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    /* Prevent canvas overflow */
    overflow-y: auto;
    /* Allow scrolling content */
}

.profile-container {
    position: relative;
    z-index: 1;
    backdrop-filter: blur(4px);
    /* Slight blur for depth */
}

/* Header Animations */
.profile-header {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.profile-avatar {
    border: 3px solid var(--brand-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    animation: pulseAvatar 3s infinite ease-in-out;
    transition: transform 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05) rotate(5deg);
}

.profile-name {
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-top: 1rem;
}

.profile-bio {
    font-weight: 400;
    opacity: 0.9;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Link Cards Premium Style */
.profile-links {
    perspective: 1000px;
}

.profile-link {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
    opacity: 0;
    animation: staggerSlide 0.5s ease forwards;
    animation-delay: calc(var(--i) * 0.1s + 0.3s);
    border-radius: 16px !important;
    /* Modern softer curve */
}

/* Special Highlighting for certain links (optional via class) */
.profile-link.highlight {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2)) !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.profile-link:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.profile-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.profile-link:hover::after {
    left: 100%;
    transition: 0.7s;
}

/* Icon Enhancement */
.profile-link i {
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.profile-link:hover i {
    transform: scale(1.2) rotate(-10deg);
}

/* Social Icons */
.social-icons {
    margin-top: 1.5rem;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1s;
    opacity: 0;
}

.social-icon {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-icon:hover {
    background: white;
    color: var(--primary-color, #333);
    /* Fallback color */
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* "Verified" Badge Mock */
.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    width: 20px;
    height: 20px;
    background: var(--brand-gold);
    color: #000;
    border-radius: 50%;
    font-size: 10px;
    margin-left: 6px;
    vertical-align: middle;
    box-shadow: 0 2px 5px rgba(255, 215, 0, 0.4);
}

/* Animations Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes staggerSlide {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulseAvatar {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .profile-link {
        margin-bottom: 0.8rem;
        padding: 1rem !important;
        /* Larger touch targets */
    }

    .profile-name {
        font-size: 1.5rem;
    }
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background-color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* vCard FAB */
.vcard-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--brand-gold-gradient);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #003366;
    /* Blue Icon */
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulseFab 2s infinite;
}

.vcard-fab:hover {
    transform: scale(1.1) rotate(10deg);
}

@keyframes pulseFab {
    0% {
        box-shadow: 0 0 0 0 rgba(246, 79, 89, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(246, 79, 89, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(246, 79, 89, 0);
    }
}

@media (max-width: 480px) {
    .vcard-fab {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}