<style>
.team-card {
    position: relative;
    overflow: hidden;
}

.linkedin-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.team-card:hover .linkedin-overlay {
    opacity: 1;
}

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4a4a4a 0%, #2a2a2a 100%);
    border-radius: 50%;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

.linkedin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.linkedin-btn:hover::before {
    left: 100%;
}

.linkedin-btn:hover {
    background: linear-gradient(135deg, #5a5a5a 0%, #3a3a3a 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
}

.linkedin-btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.linkedin-btn svg {
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    z-index: 1;
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .linkedin-overlay {
        top: 15px;
        right: 15px;
    }
    
    .linkedin-btn {
        width: 45px;
        height: 45px;
        border-width: 1.5px;
    }
    
    .linkedin-btn svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .linkedin-overlay {
        top: 12px;
        right: 12px;
    }
    
    .linkedin-btn {
        width: 40px;
        height: 40px;
    }
    
    .linkedin-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Accessibility improvements */
.linkedin-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(128, 128, 128, 0.5), 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Animation for when card comes into view */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 0.8;
        transform: scale(1);
    }
}

.linkedin-overlay {
    animation: fadeInScale 0.6s ease-out 0.3s both;
}

/* Alternative darker version for more contrast */
.linkedin-btn.dark-variant {
    background: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.linkedin-btn.dark-variant:hover {
    background: linear-gradient(135deg, #404040 0%, #2a2a2a 100%);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Light variant for lighter backgrounds */
.linkedin-btn.light-variant {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #333333;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.linkedin-btn.light-variant:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: #333333;
}

.linkedin-btn.light-variant::before {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}
</style>